-
Notifications
You must be signed in to change notification settings - Fork 106
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
Error: "toString()" failed #120
Comments
The relevant source is:
so I'm guessing the trouble is that the If this sounds like the only problem here I will submit a PR to safely read the file line by line instead. |
davisjam
added a commit
to davisjam/0x
that referenced
this issue
Apr 17, 2018
Problem: If the file with trace stacks is larger than the maximum string length, then traceStacksToTicks chokes on a call to toString. Solution: Split buffer on newlines via repeated indexOf rather than via buf.toString.split('\n') Test: I ran assert.deepEqual to compare the stacks generated by the old and new approaches. It said they were equivalent. Fixes: davidmarkclements#120
Once the graph is generated, visualizing it is problematic. See #113. But certainly generating it is better than crashing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am running 0x on the Node-DC EIS benchmark.
After Ctrl-C'ing to deliver SIGINT I got this
toString
failure:A bit of Googling suggests the problem may be a Buffer larger than the V8 string limit, see this Node issue.
The text was updated successfully, but these errors were encountered: