Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Emulator Device crash when start in Android Studio (Linux)

When I start that device it was crashed and show this error in the console of Android Studio:

emulator64-arm: ../../../../../../../src/mesa/drivers/dri/i915/i915_fragprog.c:1225: i915BindProgram: Assertion `p->on_hardware == 0' failed.

When I use Genymotion it is disposed without any error notice.

like image 385
Bui Quang Huy Avatar asked Nov 19 '15 09:11

Bui Quang Huy


People also ask

Why is my Android Emulator crashing?

To avoid crashes and hangs caused by not having enough free disk space, the emulator checks for sufficient free disk space on startup, and will not start unless at least 2 GB is free. If the emulator fails to start for you, check to see that you have adequate free disk space.

Why does Android Studio keep crashing Android?

An Android app crashes whenever there's an unexpected exit caused by an unhandled exception or signal. An app that is written using Java or Kotlin crashes if it throws an unhandled exception, represented by the Throwable class.

Why Android Emulator is not opening?

If the Android Emulator does not start properly, this problem is often caused by problems with HAXM. HAXM issues are often the result of conflicts with other virtualization technologies, incorrect settings, or an out-of-date HAXM driver. Try reinstalling the HAXM driver, using the steps detailed in Installing HAXM.


2 Answers

For emulator crashing seconds after launch in Android Studio 2.3.1 or later: Open Android Virtual Device Manager, select your AVD, select "Edit this AVD", in the new window (Virtual Device Configuration), goto Emulated Performance > Graphics and select the "Software (GLS)" option. This problem might be caused by: 1) Outdated graphics card drivers. 2) Older graphics cards, not properly supported by the generic Windows 8 (or newer) drivers.

like image 199
Lazaros Papadopoulos Avatar answered Sep 22 '22 09:09

Lazaros Papadopoulos


You need to Uncheck the "Use Host GPU" checkbox - in the emulator settings

like image 39
Uriel Frankel Avatar answered Sep 21 '22 09:09

Uriel Frankel