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

PhantomJS crashes on a large graph #380

Closed
agladysh opened this issue Aug 22, 2016 · 2 comments
Closed

PhantomJS crashes on a large graph #380

agladysh opened this issue Aug 22, 2016 · 2 comments

Comments

@agladysh
Copy link

agladysh commented Aug 22, 2016

OS X 10.11.6
Mermaid 6.0.0
PhantomJS 2.1.1

$ mermaid all.mermaid
<...>
CONSOLE: [11:45:53 (716)]  Got edge twp/schedule/period/create twp/schedule/schedule (from line # in "")
CONSOLE: [11:45:53 (716)]  Got edge twp/main twp/schedule/schedule (from line # in "")
PHANTOM ERROR: TypeError: null is not an object (evaluating 'oDOM.documentElement.attributes.getNamedItem('width').value')
TRACE:
 -> phantomjs://code/phantomscript.js: 112
 -> undefined: 0 (in function forEach) 

Smaller files render fine on this setup.

The same large file renders fine on Ubuntu. The setup there is identical:

Ubuntu 15.10
Mermaid 6.0.0
PhantomJS 2.1.1

I can try to clean out the sensitive information from the file to show you, if this will help. I can also collect any other diagnostics for you, as needed.

@aquacash5
Copy link

Ubuntu: 16.10
Mermaid: 7.0.0
PhantomJS 2.1.1

$ mermaid collatz.mmd -p -w 9000

TypeError: null is not an object (evaluating 'oDOM.documentElement.attributes.getNamedItem('width').value')

never seems to actually finish.

I included the file i used.
collatz.mmd.zip

@tylerlong
Copy link
Collaborator

We do not use PhantomJS any more. Ref: https://github.com/mermaidjs/mermaid.cli

mgenereu pushed a commit to mgenereu/mermaid that referenced this issue Jun 25, 2022
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

3 participants