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:
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
source to share
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:
- Launch AVD.
- Go to Extended Controls (last button on the 3-dot control panel)> Settings> Advanced
- Change "OpenGL ES Renderer" to "CORNER (D3D11)"
- Reboot AVD.
And here you are.
source to share
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 ...
source to share
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:
source to share