question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

LiveSync for Android throws stdout maxBuffer exceeded

See original GitHub issue

When running tns livesync android I get

Error: stdout maxBuffer exceeded.

After the Applying changes… message.

Tablet: Asus MeMO Pad 7 K013

My solution - I changed the maxBuffer size inside lib/child-process.js

ChildProcess.prototype.exec = function (command, options) {
    options = options || {};
    options.maxBuffer = 1024 * 2048;

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
maganiuscommented, Aug 29, 2018

I have same problem I can’t fix it, I put the maxBuffer on exec command but it still fails.

`exec(command, options, execOptions) { return __awaiter(this, void 0, void 0, function* () { return new Promise((resolve, reject) => { options = options || {}; options.maxBuffer = 1024 * 2048; const callback = (error, stdout, stderr) => {

                this.$logger.trace("Exec %s \n stdout: %s \n stderr: %s", command, stdout.toString(), stderr.toString());
                if (error) {
                    reject(error);
                }
                else {
                    const output = execOptions && execOptions.showStderr ? { stdout, stderr } : stdout;
                    resolve(output);
                }
            };
            if (options) {
                child_process.exec(command, options, callback);
            }
            else {
                child_process.exec(command, callback);
            }
        });
    });
}`
0reactions
Fatmecommented, Aug 3, 2015

C:\Users{username}\AppData\Roaming\npm\lib\node_modules\nativescript\lib\common\child-process.js

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - exec error: Error: stdout maxBuffer exceeded if using ...
I want to get data continuously from monitor processes and system resource usage on Linux using top with child_process.exec . Code : const...
Read more >
nativescript/CHANGELOG.md - UNPKG
28, * With older CLI versions you were able to run `tns debug android` and continue debugging ... `tns livesync android` throws stdout...
Read more >
Source - GitHub
[Fixed #730](https://github.com/NativeScript/nativescript-cli/issues/730): `tns livesync android` throws stdout maxBuffer exceeded.
Read more >
"stdout maxBuffer length exceeded" - HELP PLEASE : r/node
I am trying to build an iOS app in Xcode and getting the above error. I have tried updating node however this causes...
Read more >
Untitled
Vplayer android 2.3. ... Scotland pastmap, Soundpeats qy7 how to wear, Sdcard/android/obb, Lukia watch, White and silver ... Stdout maxbuffer exceeded?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found