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

Get mystic error when rendering with layered algorithm #228

Open
geohuz opened this issue Jun 13, 2023 · 4 comments
Open

Get mystic error when rendering with layered algorithm #228

geohuz opened this issue Jun 13, 2023 · 4 comments
Labels

Comments

@geohuz
Copy link

geohuz commented Jun 13, 2023

I'm using elkjs with react to write an App in which user can add nodes interactively, the app crash occasionally when adding about more than 50 nodes. The ELK version: elkjs": "^0.8.2", the config option:

"elk.algorithm": 'layered',
      "layering.strategy": "BF_MODEL_ORDER",
      "elk.direction": direction,
      "nodePlacement.strategy": "BRANDES_KOEPF",  / 
      "spacing.edgeNodeBetweenLayers": 15,
      'elk.layered.nodePlacement.bk.fixedAlignment': 'BALANCED',  
      'elk.layered.crossingMinimization.forceNodeModelOrder': 'false',  
      'considerModelOrder.strategy': 'NODES_AND_EDGES'

The error message:

elk-worker.min.js:3668 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'he')
    at Xpd (elk-worker.min.js:3668:52)
    at hrd (elk-worker.min.js:5069:130)
    at drd (elk-worker.min.js:5106:124)
    at lqd (elk-worker.min.js:4729:155)
    at Zqd (elk-worker.min.js:3907:75)
    at drd (elk-worker.min.js:5106:202)
    at qvd (elk-worker.min.js:5776:142)
    at h.dispatch (elk-worker.min.js:6081:473)
    at h.saveDispatch (elk-worker.min.js:6081:603)
    at elk-worker.min.js:6082:162
Xpd @ elk-worker.min.js:3668
hrd @ elk-worker.min.js:5069
drd @ elk-worker.min.js:5106
lqd @ elk-worker.min.js:4729
Zqd @ elk-worker.min.js:3907
drd @ elk-worker.min.js:5106
qvd @ elk-worker.min.js:5776
dispatch @ elk-worker.min.js:6081
saveDispatch @ elk-worker.min.js:6081
(anonymous) @ elk-worker.min.js:6082
await in (anonymous) (async)
@geohuz geohuz added the bug label Jun 13, 2023
@geohuz geohuz changed the title Get mystic error when rendering layed engine Get mystic error when rendering with layered algorithm Jun 13, 2023
@hovik-geodakyan
Copy link

Hi, did you manage to find a solution?

@RemiKalbe
Copy link

Same error !

@soerendomroes
Copy link
Member

@RemiKalbe How do you use elkjs? Do you use it as specified in the readme or differently.

@rob-gordon
Copy link

@RemiKalbe @hovik-geodakyan I had a really similar error that was caused by the nodes I passed in not having a width/height. Adding a fallback width/height fixed the issue.
Screenshot 2024-08-01 at 12 26 58 PM

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

No branches or pull requests

5 participants