Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android emulator WHPX: Failed to emulate MMIO access , exit code 3

I had Android Studio with AMD TR 2950x android emulator was working perfectly then suddenly it start to give me this error with this messages :

10:30 AM Emulator: qemu-system-x86_64.exe: WHPX: Failed to emulate MMIO access with EmulatorReturnStatus: 2 (InternalEmulationFailure )

10:30 AM Emulator: qemu-system-x86_64.exe: whpx_vcpu { emulator=000000000ec95f70, window_registered=false, interruptable=true, tpr=0, apic_base=fee00900, interruption_pending=false }

10:30 AM Emulator: qemu-system-x86_64.exe: WHV_MEMORY_ACCESS_CONTEXT { Instruction={ size=16, bytes='A1 F0 00 E0 FE 80 CC 01 A3 F0 00 E0 FE C7 05 50 ' }, AccessInfo={ AccessType=0, GpaUnmapped=1, GvaValid=0, AsUINT32=4 }, Gpa=fee000f0, Gva=0 }

10:30 AM Emulator: qemu-system-x86_64.exe: WHPX: Failed to exec a virtual processor

10:30 AM Emulator: Warning: QObject::~QObject: Timers cannot be stopped from another thread ((null):0, (null))

10:30 AM Emulator: Process finished with

like image 297
Sndan Avatar asked Jan 01 '23 04:01

Sndan


2 Answers

Update Windows to insder preview build 10.0.18890

https://developercommunity.visualstudio.com/content/problem/528337/whpx-problem-android-emulator.html

like image 122
Wael Eid Avatar answered Jan 03 '23 17:01

Wael Eid


For a solution without having to join the Windows Insider Program and update to the Windows Insider Preview you can install KB4545903 directly (which is the only KB downloaded and installed by joining the release preview) which should fix the emulator issue on AMD.

Assuming you're running 64bit system, download the CAB file here.

Then install it with an elevated command prompt:

DISM /Online /Add-Package /PackagePath:”Full path of .cab file”

After a restart, you should be good to go.

Props to this medium post for the answer.

like image 41
Doto Pototo Avatar answered Jan 03 '23 16:01

Doto Pototo