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

importing dot content > 256 mb fails #3

Open
AydinChavez opened this issue May 26, 2017 · 0 comments
Open

importing dot content > 256 mb fails #3

AydinChavez opened this issue May 26, 2017 · 0 comments

Comments

@AydinChavez
Copy link

I can not import dot content> 256 MB due to the string limitation in V8
(according to: https://stackoverflow.com/questions/40382268/error-tostring-failed-node-js-buffer )

My code:

fs.readFile(argv.f, 'utf8', function(err, data) {
 var graph = dot(data);

...

leads to:

dir ./graph_data/FFM/2017-05-26T09:57:20.821Z created
buffer.js:385
    throw new Error('toString failed');
    ^

Error: toString failed
    at Buffer.toString (buffer.js:385:11)
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:378:21)

Any chance for an additional dot(filename) approach instead of dot(string_content) with a streaming line-by-line processing parser for avoiding this buffer limitation?

Thx

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