AVD Crash on second monitor

I just installed Android Studio and was trying to get a preview of my app, but whenever I run the AVD emulator on any devices or APIs it crashes, but it only crashes when I swipe the AVD window with my second monitor.

My computer config: i7-6700k, 16GB RAM and GTX 1060
AVD config:AVD Configuration

Has anyone had the same problem in the past or is there a solution? feel free to ask me for more information if I haven't explained enough

+5


source to share


4 answers


I had the same problem and found a solution that enables hardware acceleration and move the AVD between monitors.

This is how I did it:



  1. Launch AVD.
  2. Go to Extended Controls (last button on the 3-dot control panel)> Settings> Advanced
  3. Change "OpenGL ES Renderer" to "CORNER (D3D11)"
  4. Reboot AVD.

And here you are.

+5


source


The issue also occurs with i7-6700k, GTX 1080 and other AVDs in my environment. It works seamlessly when Nvidia Surround is enabled. But this may not be the solution everyone prefers.



0


source


I had this same problem and solved it by setting the AVD Graphics performance from "automatic" or "hardware" to "software" graphics acceleration. You can see the settings here: Image of Android AVD Graphics Acceleration Settings

You can learn more about this setting here: Configure Hardware Acceleration for Android Emulator

I believe it has something to do with the Nvidia drivers and the Android emulator as I was having a display problem using an Nvidia GPU rather than an Intel built-in ... which is disappointing to take advantage of a better GPU for GPU acceleration ...

0


source


Thanks to the hint provided by Serjux's answer, I solved a similar issue - Android emulators immediately freeze when moving from one monitor to another. They worked without issue until I upgraded my computer from an Intel i5-3570K to an AMD Ryzen 7 2700 and the GeForce GTX 1050 graphics card remained. I am using Hyper-V versions of Android emulators. For hw.gpu.mode, I tried auto, host, angle, mesa and found that only mesa works fine:enter image description here

0


source







All Articles