Status Update
Comments
js...@google.com <js...@google.com>
ka...@gmail.com <ka...@gmail.com> #2
ka...@gmail.com <ka...@gmail.com> #3
Any updates on this? It's been more than a month.
ka...@gmail.com <ka...@gmail.com> #4
va...@gmail.com <va...@gmail.com> #5
bo...@google.com <bo...@google.com> #6
if they have better knowledge of the actual behavior of certain gpu on their hardwares.
ya...@google.com <ya...@google.com> #7
Hi,
Have you tried to change the gpu config to hardware?
By default it will use auto which might pick software rendering. If you choose hardware you should be able to force it to use hardware rendering (it might still pop a warning message).
For non-playstore images, you could do it in device manager -> 3 dots -> edit. For playstore images, you would need to manually edit those 2 config files:
- ~/.android/your_avd_name.avd/config.ini
- ~/.android/your_avd_name.avd/hardware-qemu.ini
and change hw.gpu.mode
to host
. Please let us know if it resolves your issue.
bo...@google.com <bo...@google.com> #8
I think we should put this in "known issues page" with work around for developers. and the message should provide
a link to that page.
de...@google.com <de...@google.com>
bo...@google.com <bo...@google.com> #9
de...@google.com <de...@google.com> #10
de...@google.com <de...@google.com>
ka...@gmail.com <ka...@gmail.com> #11
Yes, I have tried forcing by both deploying the avd from command line with -gpu host and also by launching the avd from Android Studio and changing the specific settings from UI. Neither works.
I have found out later on that this is a known issue and apparently you can only force HW accel. on Android up to not including 7.1.1. Emulator running Android 7.1.1 and later will revert to software rendering no matter what you do. Apparently this was to avoid the Intel HD4000 OpenGL and Vulkan bugs going forward with the new rendering pipeline starting with Android 7.x. I can't site sources but IIRC this information was written on this very website. So you can even consider this duplicate.
I still think the user should have the final decision of forcing HW accel or not. Software rendering is really unbearable. I'd take graphical glitches any day. I am using 7.0 as my daily Android AVD as a result of this. From my notes:
Android Studio Emulator GPU Driver Issue Warning Fix
Launch Emulator despite warning
Settings -> OpenGL ES Renderer -> Auto detect based on host -> Desktop Native OpenGL + Renderer maximum -> Restart. Apparently not compatible with Android images 7.1.1 and above but so far works.
ya...@google.com <ya...@google.com> #12
Hi,
You should always be able to force hardware rendering with -gpu host
. If it doesn't work, you could try to launch the emulator with -gpu host -verbose
flags and send us the emulator prints, so that we could take a look.
ka...@gmail.com <ka...@gmail.com> #13
I don't suppose you need the logs. I am still attaching them just in case.
INFO | Android emulator version 32.1.15.0 (build_id 10696886) (CL:N/A)
ya...@google.com <ya...@google.com> #14
Ohh that was a bad warning message. I will fix the warning and close this bug. Please ping this thread again if you cannot force -gpu host
in future.
jp...@google.com <jp...@google.com> #15
Hi
Many graphics issues have been solved since.
We might still have some issues with a few specific GPU drivers.
Do you still have the same issues with the latest version of the Android Emulator
Thanks
ka...@gmail.com <ka...@gmail.com> #16
assigned to it. Thanks for the response. I don't use that MacBook Air
anymore as my daily laptop. I installed Windows on it and doing other tasks
on it. As you know even macOS latest releases don't work on that laptop. So
I don't blame Google engineers if the Android Emulator doesn't work on it
anymore. The problem was that the issues started happening back in Mojave
or Catalina days IIRC. If I ever get to install Catalina (officially latest
supported macOS) on it, I'll try to remember Android Studio on it (if it
supports Catalina still then).
Thanks
On Wed, Oct 9, 2024 at 4:59 PM <buganizer-system@google.com> wrote:
ko...@google.com <ko...@google.com> #17
I'll close the issue then, feel free to reopen or create a new ticket if you experience issues. Thanks!
Description
P.S. I didn't have permission to create this ticket in the GPU category.
Thanks
STEPS TO REPRODUCE:
1. Just launch any avd on the emulator
------------------
Studio Build:
Android Studio Bumblebee | 2021.1.1 Patch 3
Build #AI-211.7628.21.2111.8309675, built on March 16, 2022
Runtime version: 11.0.11+0-b60-7590822 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.3
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 4
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: org.jetbrains.kotlin (211-1.6.20-release-275-AS7442.40)
OS: macOS Monterey 12.3