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

LiveSync for Android throws stdout maxBuffer exceeded #730

Closed
cime opened this issue Aug 1, 2015 · 5 comments
Closed

LiveSync for Android throws stdout maxBuffer exceeded #730

cime opened this issue Aug 1, 2015 · 5 comments
Labels
Milestone

Comments

@cime
Copy link

cime commented Aug 1, 2015

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;
@iamajaymakwana
Copy link

Where is child-process.js located?
I am not able to find it.

@teobugslayer
Copy link
Contributor

@iamajaymakwana
Copy link

Sorry for asking for again but I an not able to find it. But where is child-process located in my system.
I am using the windows 7 and run the application on Samsung Note3 Neo.

@Fatme
Copy link
Contributor

Fatme commented Aug 3, 2015

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

teobugslayer added a commit to telerik/mobile-cli-lib that referenced this issue Aug 6, 2015
Get all adb output, even for large operations

Fixes NativeScript/nativescript-cli#730
teobugslayer added a commit that referenced this issue Aug 6, 2015
Get all adb output, even for large operations

Fixes #730
teobugslayer added a commit to telerik/mobile-cli-lib that referenced this issue Aug 6, 2015
Get all adb output, even for large operations

Fixes NativeScript/nativescript-cli#730
@teobugslayer teobugslayer added this to the 1.3.0 milestone Aug 6, 2015
@teobugslayer teobugslayer reopened this Aug 10, 2015
teobugslayer added a commit that referenced this issue Aug 10, 2015
@teobugslayer teobugslayer reopened this Aug 10, 2015
@vchimev vchimev closed this as completed Sep 2, 2015
@maganius
Copy link

maganius commented 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);
            }
        });
    });
}`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants