Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Detect unexpected emulator exit and stops waiting for it #381

Closed
wants to merge 1 commit into from

Conversation

teobugslayer
Copy link
Contributor

@teobugslayer teobugslayer added this to the {N} 1.2 milestone Jul 14, 2015
@@ -23,6 +24,7 @@ class AndroidEmulatorServices implements Mobile.IEmulatorPlatformServices {
private static TIMEOUT_SECONDS = 120;
private static UNABLE_TO_START_EMULATOR_MESSAGE = "Cannot run your app in the native emulator. Increase the timeout of the operation with the --timeout option or try to restart your adb server with 'adb kill-server' command. Alternatively, run the Android Virtual Device manager and increase the allocated RAM for the virtual device.";
private static RUNNING_ANDROID_EMULATOR_REGEX = /^(emulator-\d+)\s+device$/;
private static EMULATOR_EXITED_MESSAGE = "The native emulator has stopped unexpectedly. Verify its configuration and try again.";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we consider Genymotion as native emulator? The message is used for both native and Genymotion emulators

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've modeled the message after UNABLE_TO_START_EMULATOR_MESSAGE - should we change it as well?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to remove "native" word :)

@rosen-vladimirov
Copy link
Collaborator

The code is breaking the behavior of AppBuilder CLI where the terminal should be released when the emulator starts. Do we want this?

@rosen-vladimirov
Copy link
Collaborator

Ignore my comment, there's another issue in AppBuilder CLI, which is causing emulator hold the console. I'll fix it in a separate PR.

}
emulatorProc.on("error", () => emulatorProcEnded = true);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can log trace the error here

@teobugslayer teobugslayer removed this from the {N} 1.2 milestone Jul 28, 2015
@justcodebuilduser
Copy link

❤️

@justcodebuilduser
Copy link

❤️

@teobugslayer teobugslayer deleted the totev/fix-emu-start branch November 18, 2015 15:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants