-
Notifications
You must be signed in to change notification settings - Fork 88
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
Maximum call stack size exceeded in $connectedComponentsDFS #755
Comments
Extra info: |
Since this keeps re-occurring, it may be a good idea to replace the recursion by an iteration. Further places:
|
Thank you very much for these fixes. Is there an idea of when these changes will get into a release? |
Note that they are not on master yet. Coffman graham is still missing as well. There's no timeline for the next ELK release, however, I can assemble a dev release based on the current master for elkjs any time. |
Just to fully understand. The dev release you are suggesting would be for cherry picking the changes into |
Yes. |
That would be awesome |
Friendly Ping. Will you have time to |
@B3rn475, just published elkjs 0.7.3-dev which hopefully contains a fix. |
Version 0.7.3-dev solved the problem with Which is also recursive |
:/ Either my simple test didn't cover this or it's part of node placement? I.e. does changing |
I tried to change the strategy to any other value, e.g.: layoutOptions: {
// ...
'elk.layered.nodePlacement.strategy': 'LINEAR_SEGMENTS',
} But nothing changes. (let me know if I'm doing it wrong). I guess that, in general, all these recursive functions are there waiting to trigger a |
Yes. I tried to remove those that affected your graphs but obviously missed at least one. |
Hello, any updates on this issue? I encountered it now with about 37k nodes, as well in ElkJS. |
Sadly there are no updates. |
bump |
Fixed by using the java version of elk. |
@daydayhappychao the main problem is tail recursion. |
Getting the same error with |
I'm reporting here, even if I'm experiencing the problem with
elkjs
, as in #472 it was reported that this is the correct way to do it.I'm encountering
Maximum call stack size exceeded
in function$connectedComponentsDFS
, while running a layered layout.The Java counterpart of this function is at https://github.com/eclipse/elk/blob/3630e23fa5abc253233296e2bdf5e18828e5dba7/plugins/org.eclipse.elk.alg.layered/src/org/eclipse/elk/alg/layered/p2layers/NetworkSimplexLayerer.java#L103-L133
and is, unfortunately, recursive.
The text was updated successfully, but these errors were encountered: