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

Error: stderr maxBuffer exceeded #5

Open
Globegitter opened this issue Aug 20, 2018 · 4 comments
Open

Error: stderr maxBuffer exceeded #5

Globegitter opened this issue Aug 20, 2018 · 4 comments
Labels
bug Something isn't working

Comments

@Globegitter
Copy link

Was just trying out this addon and getting the following error:

Error: stderr maxBuffer exceeded

Looks very interesting, so thought it would be useful to post :)

@dprogm
Copy link
Owner

dprogm commented Sep 12, 2018

Hey @Globegitter
thank you for reporting the finding. Can you tell me on which platform this error message came up? Did it happen all the time you are using the plugin?

@Globegitter
Copy link
Author

I am in Ubuntu 16.04, will try again to see if it happened all the time.

@zaucy
Copy link
Contributor

zaucy commented Sep 13, 2018

@dprogm This is likely due to the use of child_process.exec. If possible use child_process.spawn.

child_process.exec has this option:

  • maxBuffer Largest amount of data in bytes allowed on stdout or stderr. If exceeded, the child process is terminated. See caveat at maxBuffer and Unicode. Default: 200 * 1024.

child_process.spawn has no such limitation.

@quentingodeau
Copy link
Contributor

quentingodeau commented Sep 14, 2018

@Globegitter Hi I try to patch that part by simply add, maxBuffer: Infinity it does not break anything, but I not able to reproduce your issue in my environment so can you test it? here the branch. If it solve your issue, please notify me I will create the PR, thanks.

@dprogm dprogm added the bug Something isn't working label Sep 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants