Status Update
Comments
rk...@google.com <rk...@google.com> #2
1. Emulator version
2. Run the emulator from command line with “$ANDROID_SDK_ROOT/emulator/emulator -avd <NameOfAVD> -verbose -show-kernel” and send the resulting logs
3. Any relevant Logcat logs
4. The results of running “adb shell top” in the command line.
For more information on what’s needed and how to obtain this information please read the guide at
gr...@gmail.com <gr...@gmail.com>
rk...@google.com <rk...@google.com> #3
The Android Studio Emulator is intended to be used by app developers to test their app. It is not intended to be used as a device substitute to run arbitrary apps.
rk...@google.com <rk...@google.com>
ok...@gmail.com <ok...@gmail.com> #4
Hyper-V > Hyper-V Management Tools enabled
Virtual Machine Platform enabled
Windows Hypervisor Platform enabled
Windows Subsystem for Linux enabled
Windows Security > Core isolation > Memory Integrity is off
Windows Security > Core isolation > Kernel-mode Hardware-enforced Stack Protection is off
rk...@google.com <rk...@google.com> #5
If you see WHPX being used in idea.log, then there is no Emulator code running privileged enough to freeze your PC. The problem is somewhere on your side. Most likely in GPU. You could try switching to software graphics, but it will be very slow.
ok...@gmail.com <ok...@gmail.com> #6
rk...@google.com <rk...@google.com> #7
You could try updating your GPU drivers, both NVIDIA and integrated. GTX 1660 Ti looks decent to me.
ko...@google.com <ko...@google.com> #8
Can you also try running emulator from the command line, with extra arguments -feature -Vulkan
? This would disable vulkan support for the emulator, which might be causing some issues in the hardware rendering mode when the drivers are not supporting some emulation features.
- Start the app
What kind of app are you running? I see some flutter messages in the logs, and if it's a flutter app there might be some flutter side renderer settings that you can use, like enforcing OpenGL or changing some feature set.
gr...@gmail.com <gr...@gmail.com> #9
I have tried the windows features and it didn't help. Then I updated the GPU drivers (game ready gtx) and it worked for a short period and now that the new driver is out the same issue is happening again. I also tried installing the studio drivers instead of the game ready ones and the result is same.
rk...@google.com <rk...@google.com> #10
Grigor, I think you want to talk to the GPU vendor. We can't fix GPU drivers.
ko...@google.com <ko...@google.com> #11
Unfortunately there is not much we can do at this point for this problem. We suggest using possible workarounds like disabling Vulkan, using software rendering or changing the hypervisor to AEHD at this point. We're working on making the software rendering path faster for these type of issues, but you can also try using a lower resolution AVD if that's suitable.
zo...@gmail.com <zo...@gmail.com> #12
rk...@google.com <rk...@google.com> #13
I haven't had any GPU issues before
To emulate graphics we call GPU APIs that are not very useful outside of emulation.
but rather a virtualization issue
We have a lot of users on WHPX, we would see a lot of freezes. Check what hypervizor we use in idea.log.
ko...@google.com <ko...@google.com> #14
@12, there might be some hypervisor related cases where memory synchronization or emulation is not working as expected, from our end these seem to be related to the gpu driver's memory management and we can only automatically disable hardware rendering support for your configuration/driver version at this point. If you experience similar issues with software rendering as well, please report a separate ticket.
Description
STEPS TO REPRODUCE:
1. Start a phone emulator (any)
2. Start the app
3. When the app is building everything freezes even my mouse the computer is just dead
ATTACH SCREENSHOTS/RECORDINGS OF THE ISSUE
Impossible
ATTACH LOG FILES (Select Help > Show Log in Files, or Show Log in Finder on a Mac)
There are no logs it just freezes and I have to hard reset the PC
------------------
IMPORTANT: Please read
all required information.
------------------
Studio Build:
Version of Gradle Plugin:
Version of Gradle:
Version of Java:
OS: Windows 10 Professional