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: stdOut maxBuffer exceeded #12

Closed
Arcnor opened this issue Jul 21, 2016 · 3 comments
Closed

Error: stdOut maxBuffer exceeded #12

Arcnor opened this issue Jul 21, 2016 · 3 comments

Comments

@Arcnor
Copy link

Arcnor commented Jul 21, 2016

Hi,

I'm getting the error in the title when play-sound uses something like mplayer to play. The error is defined a bit here: robrich/gulp-exec#27 (not sure if play-sound uses that module or not).

My guess is that the "progress bar" (not really, just a count of the elapsed time) that mplayer generates is filling the output buffer for the process. Using something like afplay (which doesn't output anything at all) works perfectly.

Not sure how to fix it, but if possible, piping all the output of the commands to something like /dev/null (for UNIX systems, obviously :D) should fix the issue (or adding a parameter to every supported player to work in silent mode, but I'm not sure that's possible for all of them :P)

@ghost ghost mentioned this issue Jul 27, 2016
@shime
Copy link
Owner

shime commented Oct 23, 2016

Sorry for not getting back sooner. Looks like we have to start using child_process.spawn instead of child_process.execFile.

@alexbjorlig
Copy link

alexbjorlig commented Nov 17, 2017

would this be a possible work around?

const player = require('play-sound')(opts = {maxBuffer: 1024 * 1000})

@shime
Copy link
Owner

shime commented Dec 13, 2017

Closed by #22.

@shime shime closed this as completed Dec 13, 2017
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