Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible recursion beyond call stack size #21

Open
benjamintd opened this issue Dec 27, 2024 · 0 comments
Open

Possible recursion beyond call stack size #21

benjamintd opened this issue Dec 27, 2024 · 0 comments

Comments

@benjamintd
Copy link

benjamintd commented Dec 27, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant