Android emulator freezing OS X v10.9 (Mavericks) with HAXM
我刚更新到OS ;X v10.9(Mavericks),现在每当我启动任何模拟器时,只要模拟器启动,我的整个计算机就会冻结,屏幕中央会有一个旋转的进度指示器(不是Beachball,进度指示器与关机时的情况类似,但屏幕不会变灰)。
我试过了:
- 关闭GPU加速
- 卸载并重新安装最新的Intel Haxm
- 重新创建我的AVD
- 更新了我的Android SDK工具
唯一有效的方法是卸载IntelHAXM/不使用硬件加速。
我猜有一个关于小牛和哈克斯的bug,类似于是什么促使了1.0.6版本的哈克斯在OS X V10.8上的发布(山狮)?
下面的崩溃报告指示由haxm生成的内核死机。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 | Anonymous UUID: 2C84F70F-FE54-51E7-4FBE-6E601ED377AF Tue Oct 8 21:49:39 2013 Panic(CPU 3): NMIPI for spinlock acquisition timeout, spinlock: 0xffffff802deca4d8, spinlock owner: 0xffffff80409f4cf0, current_thread: 0xffffff80409f4cf0, spinlock_owner_cpu: 0x3 RAX: 0xffffff80409f4cf0, RBX: 0xffffff802ded4c40, RCX: 0xffffff80409f4cf0, RDX: 0x0000000700000000 RSP: 0xffffff8115bb9c30, RBP: 0xffffff8115bb9c70, RSI: 0x0000000792aac9d6, RDI: 0xffffff802deca4d8 R8: 0x0000000000000010, R9: 0x0000000000000269, R10: 0x0000000000000000, R11: 0x0000000000000246 R12: 0x0000000000000000, R13: 0xffffff7faf6b3d92, R14: 0xffffff802deca4d8, R15: 0xffffff802d830040 RFL: 0x0000000000000006, RIP: 0xffffff802d8d0470, CS: 0x0000000000000008, SS: 0x0000000000000010 Backtrace (CPU 3), Frame : Return Address 0xffffff8115bb9aa0 : 0xffffff802d8e21f1 0xffffff8115bb9ad0 : 0xffffff802d8db75f 0xffffff8115bb9b20 : 0xffffff802d8f3930 0xffffff8115bb9c70 : 0xffffff802dbeda5f 0xffffff8115bb9c90 : 0xffffff802d82f741 0xffffff8115bb9dc0 : 0xffffff802d830018 0xffffff8115bb9e30 : 0xffffff7faf6a7f86 0xffffff8115bb9ed0 : 0xffffff802d8e351e 0xffffff8115bb9f10 : 0xffffff802d8e2e3e 0xffffff8115bb9f50 : 0xffffff802d8e21c6 0xffffff8115bb9f80 : 0xffffff802d8db75f 0xffffff8115bb9fd0 : 0xffffff802d8f37c9 0xffffff815a62bd00 : 0xffffff802d9fd8bd 0xffffff815a62bd80 : 0xffffff802d9f3787 0xffffff815a62bdc0 : 0xffffff802dbf0eeb 0xffffff815a62beb0 : 0xffffff802dbf0b88 0xffffff815a62bf50 : 0xffffff802dc3de23 0xffffff815a62bfb0 : 0xffffff802d8f3e06 Kernel Extensions in backtrace: com.intel.kext.intelhaxm(1.0.6)[49CE9C16-9447-31FE-A856-4BDD043A302D]@0xffffff7faf6a6000->0xffffff7faf6c2fff BSD process name corresponding to current thread: syslogd Mac OS version: 13A598 Kernel version: Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 Kernel UUID: 1D9369E3-D0A5-31B6-8D16-BFFBBB390393 Kernel slide: 0x000000002d600000 Kernel text base: 0xffffff802d800000 System model name: MacBookPro8,1 (Mac-94245B3640C91C81) System uptime in nanoseconds: 5867020237 last loaded kext at 5616463499: com.intel.kext.intelhaxm 1.0.6 (addr 0xffffff7faf6a6000, size 118784) loaded kexts: com.intel.kext.intelhaxm 1.0.6 com.razerzone.razerapo 1.00.84 com.cyberic.SmoothMouse 7 com.apple.driver.AppleTyMCEDriver 1.0.2d2 com.apple.driver.AGPM 100.14.11 com.apple.iokit.IOBluetoothSerialManager 4.2.0f6 com.apple.driver.AppleMikeyHIDDriver 124 com.apple.driver.AppleHDAHardwareConfigDriver 2.5.2fc2 com.apple.driver.AppleHDA 2.5.2fc2 com.apple.driver.AudioAUUC 1.60 com.apple.iokit.IOUserEthernet 1.0.0d1 com.apple.Dont_Steal_Mac_OS_X 7.0.0 com.apple.driver.AppleHWAccess 1 com.apple.driver.AppleUpstreamUserClient 3.5.13 com.apple.driver.ApplePolicyControl 3.4.12 com.apple.iokit.IOBluetoothUSBDFU 4.2.0f6 com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport 4.2.0f6 com.apple.driver.AppleIntelHD3000Graphics 8.1.8 com.apple.driver.AppleThunderboltIP 1.0.10 com.apple.driver.AppleSMCLMU 2.0.4d1 com.apple.driver.AppleMikeyDriver 2.5.2fc2 com.apple.driver.AppleSMCPDRC 1.0.0 com.apple.driver.ACPI_SMC_PlatformPlugin 1.0.0 com.apple.driver.AppleLPC 1.7.0 com.apple.driver.AppleIntelSNBGraphicsFB 8.1.8 com.apple.driver.AppleMuxControl 3.4.12 com.apple.driver.AppleBacklight 170.3.5 com.apple.driver.AppleMCCSControl 1.1.12 com.apple.driver.SMCMotionSensor 3.0.4d1 com.apple.driver.AppleUSBTCButtons 240.2 com.apple.driver.AppleUSBTCKeyEventDriver 240.2 com.apple.driver.AppleUSBTCKeyboard 240.2 com.apple.driver.AppleIRController 325.7 com.apple.driver.AppleFileSystemDriver 3.0.1 com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1 com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1 com.apple.BootCache 35 com.apple.driver.XsanFilter 404 com.apple.driver.AppleSDXC 1.4.0 com.apple.iokit.AppleBCM5701Ethernet 3.6.9b9 com.apple.iokit.IOAHCIBlockStorage 2.4.0 com.apple.driver.AppleUSBHub 650.4.4 com.apple.driver.AppleFWOHCI 4.9.9 com.apple.driver.AirPort.Brcm4331 700.20.22 com.apple.driver.AppleAHCIPort 2.9.5 com.apple.driver.AppleUSBEHCI 650.4.1 com.apple.driver.AppleUSBUHCI 650.4.0 com.apple.driver.AppleSmartBatteryManager 161.0.0 com.apple.driver.AppleACPIButtons 2.0 com.apple.driver.AppleRTC 2.0 com.apple.driver.AppleHPET 1.8 com.apple.driver.AppleSMBIOS 2.0 com.apple.driver.AppleACPIEC 2.0 com.apple.driver.AppleAPIC 1.7 com.apple.driver.AppleIntelCPUPowerManagementClient 216.0.0 com.apple.nke.applicationfirewall 153 com.apple.security.quarantine 3 com.apple.driver.AppleIntelCPUPowerManagement 216.0.0 com.apple.iokit.IOSCSIArchitectureModelFamily 3.6.0 com.apple.AppleGraphicsDeviceControl 3.4.12 com.apple.iokit.IOSerialFamily 10.0.7 com.apple.driver.DspFuncLib 2.5.2fc2 com.apple.vecLib.kext 1.0.0 com.apple.iokit.IOFireWireIP 2.2.5 com.apple.iokit.IOAudioFamily 1.9.4fc11 com.apple.kext.OSvKernDSPLib 1.14 com.apple.iokit.IOSurface 91 com.apple.iokit.IOBluetoothFamily 4.2.0f6 com.apple.driver.AppleHDAController 2.5.2fc2 com.apple.iokit.IOHDAFamily 2.5.2fc2 com.apple.iokit.IOBluetoothHostControllerUSBTransport 4.2.0f6 com.apple.driver.AppleThunderboltEDMSink 1.2.1 com.apple.driver.AppleThunderboltDPOutAdapter 2.5.0 com.apple.driver.AppleSMBusPCI 1.0.12d1 com.apple.driver.IOPlatformPluginLegacy 1.0.0 com.apple.driver.IOPlatformPluginFamily 5.5.1d27 com.apple.driver.AppleGraphicsControl 3.4.12 com.apple.driver.AppleBacklightExpert 1.0.4 com.apple.iokit.IONDRVSupport 2.3.6 com.apple.driver.AppleSMBusController 1.0.11d1 com.apple.iokit.IOGraphicsFamily 2.3.6 com.apple.driver.AppleSMC 3.1.6d1 com.apple.driver.AppleThunderboltDPInAdapter 2.5.0 com.apple.driver.AppleThunderboltDPAdapterFamily 2.5.0 com.apple.driver.AppleThunderboltPCIDownAdapter 1.4.0 com.apple.driver.AppleUSBMultitouch 240.6 com.apple.iokit.IOUSBHIDDriver 650.4.4 com.apple.driver.AppleUSBMergeNub 650.4.0 com.apple.driver.AppleUSBComposite 650.4.0 com.apple.driver.AppleThunderboltNHI 1.9.2 com.apple.iokit.IOThunderboltFamily 2.8.5 com.apple.iokit.IOEthernetAVBController 1.0.3b3 com.apple.driver.mDNSOffloadUserClient 1.0.1b4 com.apple.iokit.IOUSBUserClient 650.4.4 com.apple.iokit.IOFireWireFamily 4.5.5 com.apple.iokit.IO80211Family 600.34 com.apple.iokit.IONetworkingFamily 3.2 com.apple.iokit.IOAHCIFamily 2.6.0 com.apple.iokit.IOUSBFamily 650.4.4 com.apple.driver.AppleEFINVRAM 2.0 com.apple.driver.AppleEFIRuntime 2.0 com.apple.iokit.IOHIDFamily 2.0.0 com.apple.iokit.IOSMBusFamily 1.1 com.apple.security.sandbox 278.10 com.apple.kext.AppleMatch 1.0.0d1 com.apple.security.TMSafetyNet 7 com.apple.driver.AppleKeyStore 2 com.apple.driver.DiskImages 371.1 com.apple.iokit.IOStorageFamily 1.9 com.apple.iokit.IOReportFamily 21 com.apple.driver.AppleFDEKeyStore 28.30 com.apple.driver.AppleACPIPlatform 2.0 com.apple.iokit.IOPCIFamily 2.8 com.apple.iokit.IOACPIFamily 1.4 com.apple.kec.pthread 1 com.apple.kec.corecrypto 1.0 panic(cpu 1 caller 0xffffff802dbeda5f):"Spinlock acquisition timed out: lock=0xffffff802deca4d8, lock owner thread=0xffffff80409f4cf0, current_thread: 0xffffff8040364450, lock owner active on CPU 0x3, current owner: 0xffffff80409f4cf0"@/SourceCache/xnu/xnu-2422.1.72/osfmk/i386/locks_i386.c:365 Backtrace (CPU 1), Frame : Return Address 0xffffff815a5db810 : 0xffffff802d822f69 0xffffff815a5db890 : 0xffffff802dbeda5f 0xffffff815a5db8b0 : 0xffffff802d82f741 0xffffff815a5db9e0 : 0xffffff802d830018 0xffffff815a5dba50 : 0xffffff7faf6a7f86 0xffffff815a5dbaf0 : 0xffffff802d8e351e 0xffffff815a5dbb30 : 0xffffff802d8e3c78 0xffffff815a5dbb70 : 0xffffff7faf6b01e0 0xffffff815a5dbba0 : 0xffffff7faf6aa2e0 0xffffff815a5dbbe0 : 0xffffff7faf6a6e3c 0xffffff815a5dbc00 : 0xffffff802dc58316 0xffffff815a5dbc60 : 0xffffff802dc56051 0xffffff815a5dbcb0 : 0xffffff802dc5497e 0xffffff815a5dbd10 : 0xffffff802dc5465c 0xffffff815a5dbd80 : 0xffffff802dc67074 0xffffff815a5dbe10 : 0xffffff802d85c590 0xffffff815a5dbe50 : 0xffffff802d826bb1 0xffffff815a5dbe80 : 0xffffff802d8139b5 0xffffff815a5dbef0 : 0xffffff802d81e003 0xffffff815a5dbf70 : 0xffffff802d8c921d 0xffffff815a5dbfb0 : 0xffffff802d8f3e26 Kernel Extensions in backtrace: com.intel.kext.intelhaxm(1.0.6)[49CE9C16-9447-31FE-A856-4BDD043A302D]@0xffffff7faf6a6000->0xffffff7faf6c2fff BSD process name corresponding to current thread: kextd System Profile: Model: MacBookPro8,1, BootROM MBP81.0047.B27, 2 processors, Intel Core i5, 2.4 GHz, 8 GB, SMC 1.68f99 Graphics: Intel HD Graphics 3000, Intel HD Graphics 3000, Built-In, 512 MB Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1333 MHz, 0x0198, 0x393955353432382D3034302E413031472020 Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1333 MHz, 0x0198, 0x393955353432382D3034302E413031472020 AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xD6), Broadcom BCM43xx 1.0 (5.106.98.100.22) Bluetooth: Version 4.2.0f6 12982, 3 services, 15 devices, 1 incoming serial ports Network Service: Wi-Fi, AirPort, en1 Serial ATA Device: OCZ-VERTEX3, 120.03 GB Serial ATA Device: TOSHIBA MK5065GSXF, 500.11 GB USB Device: FaceTime HD Camera (Built-in) USB Device: Hub USB Device: Apple Internal Keyboard / Trackpad USB Device: BRCM2070 Hub USB Device: Bluetooth USB Host Controller USB Device: Hub USB Device: IR Receiver Thunderbolt Bus: MacBook Pro, Apple Inc., 22.1 Model: MacBookPro8,1, BootROM MBP81.0047.B27, 2 processors, Intel Core i5, 2.4 GHz, 8 GB, SMC 1.68f99 Graphics: Intel HD Graphics 3000, Intel HD Graphics 3000, Built-In, 512 MB Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1333 MHz, 0x0198, 0x393955353432382D3034302E413031472020 Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1333 MHz, 0x0198, 0x393955353432382D3034302E413031472020 AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xD6), Broadcom BCM43xx 1.0 (5.106.98.100.22) Bluetooth: Version 4.2.0f6 12982, 3 services, 15 devices, 1 incoming serial ports Network Service: Wi-Fi, AirPort, en1 Serial ATA Device: OCZ-VERTEX3, 120.03 GB Serial ATA Device: TOSHIBA MK5065GSXF, 500.11 GB USB Device: FaceTime HD Camera (Built-in) USB Device: Hub USB Device: Apple Internal Keyboard / Trackpad USB Device: BRCM2070 Hub USB Device: Bluetooth USB Host Controller USB Device: Hub USB Device: IR Receiver Thunderbolt Bus: MacBook Pro, Apple Inc., 22.1 |
英特尔为英特尔发布了一个修补程序?硬件加速执行管理器(HAXM)。如果您在Microsoft Windows*8.1或OS X 10.9上安装了HAXM,则应该安装热修复程序。
从haxm下载页面下载修补程序:http://software.intel.com/en-us/articles/intel-hardware-accelerated-execution-manager/
谢谢,亚历克斯(英特尔)
-编辑-
似乎热修复链接已被移动(临时?……)使用此链接可访问OSX修补程序:
http://software.intel.com/en-us/articles/intel-hardware-accelerated-execution-manager-end-user-license-agreement-macos-hotfix
好消息!英特尔的伟人目前正在测试一个修复程序,现在正在测试它(下面贴着英特尔的回应中的亚历山大)
Hi,
We identified the root cause of this issue. The Intel HaXM team is
testing an update to support newly released OSes (Microsoft Windows*
8.1 and OS X Mavericks*). Look for word on our upcoming update.Thanks, Alex
这是一个众所周知的问题,尽管通用汽车最近才发布给开发商。我已经通知英特尔:
http://software.intel.com/en-us/forums/topic/477793
更新:
这是我在他们的论坛上贴在下面的英特尔公司的回复
Hi,
Thanks for your replies. We are investigating into this issue at the
moment. Please note that OS X 10.9 is not an supported OS version for
the actual version of HAXM. I will update this thread as soon as I
have new information or a fix/workaround is available.Thanks, Alex
Click here to view this Forum topic and respond:
http://software.intel.com/en-us/comment/1761988#comment-1761988
以及进一步的更新:
We identified the root cause of this issue. The Intel HaXM team is testing an update to support newly released OSes (Microsoft Windows* 8.1 and OS X Mavericks*). Look for word on our upcoming update.
另一个更新:
I assume we release a fix somewhere between a few days and two weeks. We know that a lot of people are waiting for the fix, so we try to release it as fast as possible.
Thanks for your patience!
英特尔提供了一个修补程序
Great news: The hotfix is available for download! Please go to http://software.intel.com/en-us/articles/intel-hardware-accelerated-execution-manager/. There is a hotfix for Microsoft Windows* 8.1 and one for OS X 10.9.
Let us know if the hotfix is working for you.Thanks all for helping us resolving this issue!
即使安装并运行getting"hax正在工作,仿真器在快速virt模式下运行",问题似乎仍然存在。如果在运行android studio时打开了xcode,则xcode似乎正在为其仿真器保留分区,即使SIM卡未打开。
您可能会在"6"中看到"未连接的设备"。Android"选项卡,但请在DDMS中查看它的运行情况。您还可能会看到"Emulator NULL 5556[offline]"出现,然后断开连接并恢复为"未连接的设备"。
我在Mac mini 4GB RAM机器上成功使用haxm模拟器已有一段时间了,但当我尝试运行nexus 10模拟器时,我发现启动该应用程序时出现了大量问题。
它的长短不一之处在于,您需要关闭/禁用xcode、virtualbox、hyper-v或任何其他使用虚拟化技术高效运行haxm仿真器和默认仿真器的虚拟机。
关闭Xcode之后,我可以立即打开模拟器,而不会出现任何问题,很可能是由于系统的CPU限制。
对于我们这些使用老式Mac电脑的人,特别是双核双核电脑的人,我认为还是有问题的。我有一个2009年初的iMac,8GB内存,运行Yosemite(10.10.1),我安装了1.1.1版本的haxm(尝试了android sdk manager下载的版本和上面在英特尔网站上引用的版本)。
我可以运行旧的ARM映像,但是像其他许多运行x86映像时遇到问题的人一样,例如nexus 5、nexus 6,它仍然挂起。
在https://software.intel.com/en-us/forums/topic/536330中,有几个人对Core Duo 2 Mavericks机器有问题。在haxm 1.1.1
HAXM driver does not support emulating a 64 bit system image on Intel systems based on Core microarchitecture (Core, Core2 Duo etc.).
但是,似乎试图模拟32位系统也是有问题的。
注意:手臂图像工作正常。
修补程序(几乎)帮我解决了问题。安装热修复程序之后,我的模拟器仍然没有使用haxm。我必须使用sdk管理器卸载旧版本。一旦我做到了,我就能让哈克斯跑起来。当您启动一个新的模拟器时,您可以通过在启动窗口中查找消息来判断它是否正在运行。
Hotfix在我的MacBook视网膜上用了10.9。我从android sdk manager版本3安装了hax,它在我的avd(使用主机gpu的x86 CPU)上冻结。我下载并安装了修补程序,但没有卸载HAX版本3(请执行kextstat grep intel以确认版本)。
AVD在不到10秒内启动….