首页 文章

Android模拟器使用HAXM冻结OS X v10.9(Mavericks)

提问于
浏览
159

我刚刚更新到OS X v10.9(小牛队),现在每当我启动我的任何模拟器时,一旦模拟器启动,我的整个计算机就会冻结屏幕中央的旋转进度指示器(不是沙滩球,进展指示器与关闭时看到的类似,但屏幕没有褪色为灰色) .

Notice the progress indicator in the bottom center of the screen. The computer is frozen at this point.

我试过了:

  • 关闭GPU加速

  • 卸载并重新安装最新的Intel HAXM

  • 重新创建我的AVD

  • 更新了我的Android SDK-Tools

The only thing that works is to uninstall Intel HAXM / not use hardware acceleration.

我猜测Mavericks和HAXM有一个错误类似于OSX v10.8(Mountain Lion)的HAXM 1.0.6的发布动机?

以下崩溃报告指示HAXM生成的内核崩溃 .

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

6 回答

  • 0

    英特尔发布了英特尔®硬件加速执行管理器(HAXM)的修补程序 . 如果您在Microsoft Windows * 8.1或OS X 10.9上安装了HAXM,则应安装此修补程序 .

    从HAXM下载页面下载此修补程序:http://software.intel.com/en-us/articles/intel-hardware-accelerated-execution-manager/

    谢谢Alex(英特尔)

    -编辑-

    看起来这个修补程序链接已被移动(暂时?...) . 使用此链接转到OSX Hotfix:

    http://software.intel.com/en-us/articles/intel-hardware-accelerated-execution-manager-end-user-license-agreement-macos-hotfix

  • 140

    好消息!英特尔的优秀人员目前正在测试修复程序并正在测试它(来自英特尔的Alexander的回复粘贴在下面)

    嗨,我们确定了这个问题的根本原因 . 英特尔HaXM团队正在测试更新以支持新发布的操作系统(Microsoft Windows * 8.1和OS X Mavericks *) . 在我们即将推出的更新中查找单词 . 谢谢,亚历克斯

    尽管Mavericks GM最近才向开发者发布,但这是一个众所周知的问题 . 我在这里通知了英特尔:

    http://software.intel.com/en-us/forums/topic/477793

    更新:

    这是英特尔的反应,我已经从他们的论坛下面贴了下来

    嗨,谢谢你的回复 . 我们目前正在调查这个问题 . 请注意,OS X 10.9不是HAXM实际版本支持的操作系统版本 . 一旦有新信息或修复/解决方法可用,我将立即更新此线程 . 谢谢,Alex点击此处查看此论坛主题并回复:http://software.intel.com/en-us/comment/1761988#comment-1761988

    并进一步更新:

    我们确定了此问题的根本原因 . 英特尔HaXM团队正在测试更新以支持新发布的操作系统(Microsoft Windows * 8.1和OS X Mavericks *) . 在我们即将推出的更新中查找单词 .

    另一个更新:

    我假设我们会在几天到两周之间的某个地方发布修复程序 . 我们知道很多人都在等待修复,所以我们尽可能快地发布它 . 谢谢你的耐心!

    英特尔提供了一个HOTFIX

    好消息:该修补程序可供下载!请访问http://software.intel.com/en-us/articles/intel-hardware-accelerated-execution-manager/ . Microsoft Windows * 8.1有一个修补程序,OS X 10.9有一个修补程序 . 如果此修补程序适合您,请告诉我们 . 谢谢大家帮助我们解决这个问题!

  • 2

    即使您安装并运行“HAX正在运行并且模拟器以快速virt模式运行”,似乎问题仍将存在 . 如果您在运行Android Studio时打开Xcode,则即使SIM卡未打开,Xcode也会为其模拟器保留一个分区 .

    您可能会在“6. Android”标签中看到“无连接设备”,但看到它在DDMS中运行 . 您可能还会看到“Emulator null 5556 [OFFLINE]”出现然后松动连接并恢复为“未连接的设备” .

    我已经在我的Mac Mini 4GB RAM机器上成功使用HAXM仿真器了一段时间,但是当我尝试运行Nexus 10仿真器时,我开始看到启动应用程序的大量问题 .

    它的长短之处在于您需要关闭/禁用Xcode,VirtualBox,Hyper-V或任何其他使用虚拟化技术的VM来高效运行HAXM仿真器和默认仿真器 .

    在关闭Xcode之后,我能够立即打开模拟器而没有任何问题,很可能是因为我的系统的CPU限制 .

  • 9

    对于我们这些使用较旧的Mac,特别是Core Duo 2机器的人,我认为仍然存在问题 . 我有一个2009年初的iMac,8GB内存运行Yosemite(10.10.1),我安装了1.1.1版本的HAXM(尝试了Android SDK Manager下载的版本和上面引用的英特尔网站版本) .

    我可以运行较旧的ARM映像,但与运行x86映像时遇到问题的许多其他映像一样,例如Nexus 5,Nexus 6,它仍然适合我 .

    在_2467435中,有几个人在使用Core Duo 2 Mavericks机器时遇到了问题 . 它在HAXM 1.1.1 Release Notes.txt 文件中说明:

    HAXM驱动程序不支持在基于Core微体系结构(Core,Core2 Duo等)的Intel系统上模拟64位系统映像 .

    但是,似乎甚至试图模拟32位系统也存在问题 .

    注意:ARM图像工作正常 .

  • 60

    这个修补程序(几乎)为我解决了它 . 安装此修补程序后,我的模拟器仍然没有使用HAXM . 我不得不使用SDK管理器卸载旧版本 . 一旦我这样做,我就能让HAXM运行 . 通过在启动新模拟器时在启动窗口中查找消息,可以确定它正在运行 .

  • 1

    修补程序在我的Macbook Retina上运行10.9 . 我从Android SDK Manager版本3安装了HAX,它在我的AVD(使用HOST GPU的x86 CPU)上冻结 . 我在没有卸载HAX版本3的情况下下载并安装了此修补程序(执行kextstat | grep intel以确认版本) .

    AVD在不到10秒的时间内启动....

相关问题