Skip to content

Possible recursion beyond call stack size #21

@benjamintd

Description

@benjamintd

When using polyclip-ts on large polygons, the maximum call stack size is sometimes reached:

RangeError: Maximum call stack size exceeded
    at _Segment.afterState (/project/node_modules/polyclip-ts/src/segment.ts:466:3)
    at _Segment.beforeState (/project/node_modules/polyclip-ts/src/segment.ts:461:31)
    at _Segment.afterState (/project/node_modules/polyclip-ts/src/segment.ts:469:30)
    at _Segment.beforeState (/project/node_modules/polyclip-ts/src/segment.ts:461:31)
    at _Segment.afterState (/project/node_modules/polyclip-ts/src/segment.ts:469:30)
    at _Segment.beforeState (/project/node_modules/polyclip-ts/src/segment.ts:461:31)
    at _Segment.afterState (/project/node_modules/polyclip-ts/src/segment.ts:469:30)
    at _Segment.beforeState (/project/node_modules/polyclip-ts/src/segment.ts:461:31)
    at _Segment.afterState (/project/node_modules/polyclip-ts/src/segment.ts:469:30)
    at _Segment.beforeState (/project/node_modules/polyclip-ts/src/segment.ts:461:31)

Example : running union on the features of this collection:
union.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions