Android Studio: The emulator keeps crashing after sometime

7

Every time I run the emulator it runs normally at the beginning but after a couple of minutes it crashes and it's giving me this error:

emulator process finished with exit code 1073740791 (0xC0000409)

I am using windows 10 home edition. virtualization is enabled in bios. I don't have any other virtualization software installed (like virtual box).

any idea why this is happening?

android-emulator
asked on Stack Overflow Jun 11, 2019 by khayat • edited Jun 11, 2019 by Zoe

6 Answers

2

It seems a buggy graphic card driver can cause a similar problem. I am not sure if this is generated your problem here or not, but it is worth to say; If you have an NVIDIA graphic card with the driver version of 378.49 (there may be other versions too!), you may experience this error due to some incompatibility with java.
Please update your graphic card driver or rollback it to version an older stable version and try again!. And read here for more information.

answered on Stack Overflow Nov 26, 2019 by Farhad Rahmanifard
1

I might have an Idea what your problem is:

Restart the adb Server, you can do so by using the command Prompt in the following way:

First go to C/users/(YOUR USERNAME)/AppData/Local/Android/Sdk/platform-tools with the cd command. Then just type adb kill-server, and adb start-server, so like this;

cd C/users/(YOUR USERNAME)/AppData/Local/Android/Sdk/platform-tools
adb kill-server
adb start-server

If that doesent work try to wipe and cold boot described in this question.

answered on Stack Overflow Nov 26, 2019 by TheLinkedOne
0

Try this :

Go to Tools ==> SDK Menager ==>Android SDK

(Appearance&Behavior=>System settings=>Android SDK)==>SDK Tools==>Intel x86 Emulator Accelerator(install this).

It will solve your problem.I hope it helps.

answered on Stack Overflow Nov 21, 2019 by Prakash Reddy
0

Here are a few things you can try:

  1. Go to AVD manager and open settings for your virtual device. In the Emulated Performance section for graphics, change it from automatic to software.
  2. Have a look at here. There could be an incompatability with other software incompatibility with other software such as Docker, Oracle Virtual Box and other products that use VCPU.
  3. You could try a complete reinstall of Android Studio and make sure all updates are completed. There could be a bug in an older version of the emulator you are using that's fixed in a more recent release.

Edit

A couple more things you could try:

  1. Open Android Virtual Device Manager, then click on options for virtual device, then wipe data, then cold boot.
  2. Go to C:/users/(username)/AppData/Local/Android/Sdk/platform-tools in a terminal, then type adb kill-server, then adb start-server.

Edit

You could also try checking for memory leaks https://developer.android.com/studio/profile/memory-profiler and you could try increase the amount of RAM available for the emulator.

Go to Tools->Android->AVD Manager, then edit your AVD, then in the pop-up window click Show Advanced Settings, then finally increase the amount of RAM.

Edit

IT could be an issue with libGL or libstdc++. See here

answered on Stack Overflow Nov 21, 2019 by Dan Bray • edited Nov 22, 2019 by Dan Bray
0

It sounds like the emulator may have not installed correctly. Check these steps:

  1. Ensure that you have installed Hyper-V . Documentation for running emulator on AMD

  2. Then try this step to force a cold boot: Android Studio Emulator and "Process finished with exit code -1073741511 (0xC0000139)"

If Its crashes again, then create a new emulator. You might also try and download a new image just to make sure that the one you installed is not corrupt.

answered on Stack Overflow Nov 25, 2019 by Blaze_Mooney
0

You said you're using Windows 10? Error code 0xC0000409 is caused by a stack buffer overflow. It seems to have popped up a couple places all related by windows systems (might be totally irrespective of the android emulator). If this is the case I found a couple threads that might help solve your problem.

http://www.cplusplus.com/forum/windows/39061/

https://answers.microsoft.com/en-us/windows/forum/all/werfaultexe-the-exception-unknown-software/627da5c0-004a-e011-8dfc-68b599b31bf5?auth=1

http://windowsbulletin.com/solved-exception-code-0xc0000409-error/

https://www.tenforums.com/tutorials/16397-repair-install-windows-10-place-upgrade.html

answered on Stack Overflow Nov 25, 2019 by mbrownforest

User contributions licensed under CC BY-SA 3.0