2014-07-09 95 views
0

...以後每次嘗試啓動都會導致崩潰。一旦任何AVD啓動並退出,它將不會再次成功啓動。我已經嘗試過ARM和Intel ABI,有沒有快照。沒有什麼似乎有所作爲。Android AVD只能啓動一次

我甚至無法從AVD管理器列表中刪除該AVD;它聲稱它「目前運行在模擬器中,不能被刪除」,這不是(沒有模擬器進程運行)。我必須手動刪除〜/ .android/avd /中的.avd文件,然後創建一個全新的AVD。除了Android Studio應用程序運行(至少沒有看起來與遠程相關的任何內容),我沒有看到任何其他進程,但是當我退出時,它會問我是否要「斷開與進程的應用程序的連接」(它需要多次,實際上),即使Activity Monitor沒有顯示名爲「app」的進程。模擬器在退出並重新啓動Android Studio以及機器本身後繼續崩潰。

SO上的其他AVD相關帖子似乎都沒有關係。

我正在最新版本的OS X Mavericks上運行最新版本的Android Studio(通過內置更新程序更新至0.8.2)。這裏是崩潰的堆棧軌跡的有趣的部分:

Process:   emulator64-arm [10831] 
Path:   /Users/USER/*/Android Studio.app/sdk/tools/emulator64-arm 
Identifier:  emulator64-arm 
Version:   ??? 
Code Type:  X86-64 (Native) 
Parent Process: studio [3462] 
Responsible:  studio [3462] 
User ID:   501 

Date/Time:  2014-07-09 14:17:37.966 -0600 
OS Version:  Mac OS X 10.9.4 (13E28) 
Report Version: 11 
Anonymous UUID: B18B64F8-4A66-F624-243B-2AE2C192F57D 

Sleep/Wake UUID: EE9F3B06-E894-4CA3-A022-8D4FC325A1BC 

Crashed Thread: 0 Dispatch queue: com.apple.main-thread 

Exception Type: EXC_BAD_ACCESS (SIGSEGV) 
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000 

VM Regions Near 0: 
--> 
    __TEXT     000000010b732000-000000010b966000 [ 2256K] r-x/rwx SM=COW /Users/USER/*/Android Studio.app/sdk/tools/emulator64-arm 

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 
0 emulator64-arm     0x000000010b8ae18a 0x10b732000 + 1556874 
1 com.apple.AppKit    0x00007fff8f457321 __67-[NSWindow _updateSettingsSendingScreenChangeNotificationIfNeeded:]_block_invoke + 237 
2 com.apple.AppKit    0x00007fff8f4571e8 NSPerformWithScreenUpdatesDisabled + 65 
3 com.apple.AppKit    0x00007fff8f457197 -[NSWindow _updateSettingsSendingScreenChangeNotificationIfNeeded:] + 197 
4 com.apple.AppKit    0x00007fff8f44f491 -[NSWindow _setFrame:updateBorderViewSize:] + 914 
5 com.apple.AppKit    0x00007fff8f44ea0e -[NSWindow _oldPlaceWindow:] + 652 
6 com.apple.AppKit    0x00007fff8f44de3c -[NSWindow _setFrameCommon:display:stashSize:] + 1633 
7 com.apple.AppKit    0x00007fff8f46225c -[NSWindow setFrameOrigin:] + 369 
8 emulator64-arm     0x000000010b8abeb4 0x10b732000 + 1547956 
9 emulator64-arm     0x000000010b8a8e95 SDL_SetVideoMode + 469 
10 emulator64-arm     0x000000010b77749b 0x10b732000 + 283803 
11 emulator64-arm     0x000000010b778aa8 0x10b732000 + 289448 
12 emulator64-arm     0x000000010b778d4e skin_window_create + 190 
13 emulator64-arm     0x000000010b77b471 0x10b732000 + 300145 
14 emulator64-arm     0x000000010b742599 qemu_main + 5833 
15 emulator64-arm     0x000000010b74d656 SDL_main + 6086 
16 emulator64-arm     0x000000010b8b0270 0x10b732000 + 1565296 
17 com.apple.CoreFoundation  0x00007fff9726ce0c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12 
18 com.apple.CoreFoundation  0x00007fff9716082d _CFXNotificationPost + 2893 
19 com.apple.Foundation   0x00007fff8ac407ba -[NSNotificationCenter postNotificationName:object:userInfo:] + 68 
20 com.apple.AppKit    0x00007fff8f334b69 -[NSApplication _postDidFinishNotification] + 289 
21 com.apple.AppKit    0x00007fff8f33489c -[NSApplication _sendFinishLaunchingNotification] + 195 
22 com.apple.AppKit    0x00007fff8f331786 -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 570 
23 com.apple.AppKit    0x00007fff8f3311db -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 242 
24 com.apple.Foundation   0x00007fff8ac5ef0a -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 294 
25 com.apple.Foundation   0x00007fff8ac5ed7d _NSAppleEventManagerGenericHandler + 106 
26 com.apple.AE     0x00007fff8c91ae1f aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) + 381 
27 com.apple.AE     0x00007fff8c91ac32 dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 31 
28 com.apple.AE     0x00007fff8c91ab36 aeProcessAppleEvent + 315 
29 com.apple.HIToolbox    0x00007fff8e098161 AEProcessAppleEvent + 56 
30 com.apple.AppKit    0x00007fff8f32d0b6 _DPSNextEvent + 1026 
31 com.apple.AppKit    0x00007fff8f32c89b -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122 
32 com.apple.AppKit    0x00007fff8f32099c -[NSApplication run] + 553 
33 emulator64-arm     0x000000010b8b0917 main + 1351 
34 emulator64-arm     0x000000010b7377e4 start + 52 

任何提示/巫術魔術/建議修復這將不勝感激。

回答

1

回答我的問題留給後人......

進一步的調查表明,在退出過程AVD而其窗口是外部監視器上是飛機失事的原因。這樣做會將窗口的位置保存到AVD的.avd目錄中的「emulator-user.ini」文件中,當此值大於主屏幕的邊界時,AVD將在啓動時崩潰。將此值編輯到主屏幕邊界內的值將允許AVD再次成功啓動。

報告錯誤:https://code.google.com/p/android/issues/detail?id=73364