How do I fix “Failed to sync vcpu reg” error?

前端 未结 30 3044
礼貌的吻别
礼貌的吻别 2020-11-28 04:03

I\'m trying to use the Intel HAX x86 emulator for Windows (8, if that matters). I installed everything and created an AVD for the android version, and everything appears co

相关标签:
30条回答
  • 2020-11-28 05:01

    Make sure you don't have any virtual machines running. In my case, I had genymotion running which was causing this error.

    0 讨论(0)
  • 2020-11-28 05:02

    I faced this issue because I had my virtual box running with Ubuntu on it. When I shut down my virtual box I did not face this issue.

    0 讨论(0)
  • 2020-11-28 05:04

    This happened to me also when I was trying to run both VirtualBox and Android emulator in a MacOS machine. As others have mentioned above currently it is not possible to run both (i.e. VirtualBox and X86 -Intel based emulator) in MacOS and not sure about the other platforms. If we need to run both we can choose ARM based emulator. (arm based emulators are normally slow)

    0 讨论(0)
  • 2020-11-28 05:07

    I had virtualbox running. Killing the VM allowed allowed the emulator to run.

    0 讨论(0)
  • 2020-11-28 05:08

    "vcpu reg" are "Virtual CPU REGisters" that exist on many processors that have things like multiple cores, hyperthreading, or other features that enable higher layers to believe that there is more than one CPU present when there isn't -- such as today's x86s. No reason to go in to detail -- you can imagine that getting a coherent, single "virtual CPU context" is necessary for the kind of hardware virtualization that HAX offers.

    Normally, it's not a problem to run multiple virtual machines of various sorts simultaneously. But if one of them crashes, or misbehaves, or just decides to be a hog, HAX might find that it just can't put together a coherent virtual machine, because it can't sync a virtual CPU context for itself. It'd be like trying to run a real machine with no CPU.

    Bottom line is open task manager and kill things that you don't need and that look like they might be holding virtual machine resources. In the worst case, a reboot is almost certain to fix the problem.

    0 讨论(0)
  • 2020-11-28 05:08

    I got the same error on my windows 8 install.

    Things you could try:

    • lower the amount of memory for the emulated device (and/or close other applications)
    • disable GPU emulation
    • remove the pass-through webcam

    For me, the error occurs when I try to attach a physical webcam to the emulated android instance.

    0 讨论(0)
提交回复
热议问题