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

ERR_NON_ZERO_EXIT: Non-zero exit code from Emulator: 1 #34

Open
imhoffd opened this issue Jun 5, 2019 · 8 comments
Open

ERR_NON_ZERO_EXIT: Non-zero exit code from Emulator: 1 #34

imhoffd opened this issue Jun 5, 2019 · 8 comments

Comments

@imhoffd
Copy link
Contributor

imhoffd commented Jun 5, 2019

This is an unhelpful error message and requires --verbose to uncover the cause.

Additionally, when it occurs the native-run process continues running despite encountering a fatal error. This is because waitForDevice is called beforehand, which spawns an adb process that will never complete.

@untilbit
Copy link

I get this issue a lot

@AlameerAshraf
Copy link

Any updates regarding this issue.

@CubKAI
Copy link

CubKAI commented Aug 5, 2019

You can try trun off hyper-v

@AlameerAshraf
Copy link

I found out the problem was from my device as the device has not enough space to install the new app, so I'm recommending using Android studio profiler and debugger to get the real error message.

@imhoffd
Copy link
Contributor Author

imhoffd commented Aug 8, 2019

As a reminder, that's what this issue is for: to uncover the reasons behind the vague error message. As always, dissecting the output with the --verbose flag can reveal more information.

@SchnWalter
Copy link
Contributor

I think that we can close this in favor of #89

Maybe someone has an idea on how to parse the known adb error messages. I've tried looking for the adb source code, but had no luck.

@imhoffd
Copy link
Contributor Author

imhoffd commented Nov 19, 2019

@SchnWalter We also boot up the emulator process which has its own issues separate from adb.

This particular issue is for adding better error handling with the emulator process, and uncovering more details from emulator output, which is on average less helpful than adb output.

The existing code for this is here:

if (line.includes('Unknown AVD name')) {
event = EmulatorEvent.UnknownAVD;
} else if (line.includes('another emulator instance running with the current AVD')) {
event = EmulatorEvent.AlreadyRunning;
} else if (line.includes('Cannot find AVD system path')) {
event = EmulatorEvent.AVDHomeNotFound;
}

@jakoblylu
Copy link

Also get this error alot

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

No branches or pull requests

6 participants