看板 MacDev 關於我們 聯絡資訊
沒symbolicate 沒辦法100%確定,看起來是UIAlertView 在非 main thread 上被show之類 的,找一下哪裡有用UIAlertView,用dispatch_async 包起來應該就ok了 大概像這樣 dispatch_async(sidpatch_get_main_queue(),^{ //UIAlertview 相關的code }); reference : http://stackoverflow.com/questions/12525857/app-crashes-after-change-to-ios6-ucol-getversion ※ 引述《larckiller (送愛311日本震災)》之銘言: : Exception Type: EXC_BAD_ACCESS (SIGSEGV) : Exception Codes: KERN_INVALID_ADDRESS at 0x000000cc : Crashed Thread: 6 : Thread 6 Crashed: : 0 libicucore.A.dylib 0x3921f570 ucol_getVersion + 0 : 1 TextInput 0x3519921a KB::WordTrie::dictionary_versions_ok(KB::ReadOnlyDataFile const*) const + 62 : 2 TextInput 0x35198fa4 KB::WordTrie::load(KB::String const&) + 276 : 3 TextInput 0x35192490 KB::StaticDictionary::load(KB::String const&) + 12 : 4 TextInput 0x354fccae KB::DictionaryContainer::DictionaryContainer(KB::String const&, KB::String const&, bool, bool) + 54 : 5 TextInput 0x354fcc4c KB::DictionaryContainer::create(KB::String const&, KB::String const&, bool, bool) + 40 : 6 TextInput 0x35189f68 TIInputManager::load_dictionaries(KB::String const&, KB::String const&, bool) + 20 : 7 TextInput 0x3519afbc -[TIKeyboardInputManagerZephyr loadDictionaries] + 216 : 8 TextInput 0x3519ac02 -[TIKeyboardInputManagerZephyr initWithConfig:] + 498 : 9 UIKit 0x37c8af7a +[UIKeyboardInputManager sharedInstanceForInputMode:inHardwareKeyboardMode:] + 158 : 10 UIKit 0x37c89fce -[UIKeyboardImpl setInputMode:userInitiated:] + 398 : 11 UIKit 0x37c89be2 -[UIKeyboardImpl setInputModeFromPreferences] + 374 : 12 UIKit 0x37c884b4 -[UIKeyboardImpl initWithFrame:] + 460 : 13 UIKit 0x37c881a6 +[UIKeyboardImpl sharedInstance] + 146 : 14 UIKit 0x37cea970 -[UIAlertView(Private) _updateFrameForDisplay] + 384 : 15 UIKit 0x37ce7840 -[UIAlertView(Private) layoutAnimated:withDuration:] + 524 : 16 UIKit 0x37ce753c -[UIAlertView(Private) _layoutPopupAlertWithOrientation:animated:] + 100 : 17 UIKit 0x37ce5f42 -[UIAlertView(Private) _performPopup:animationType:revealedBySpringBoardAlert:] + 402 : 18 UIKit 0x37ce5d6a -[UIAlertView(Private) _performPopup:animationType:] + 26 : 19 UIKit 0x37ce56aa -[UIAlertView(Private) popupAlertAnimated:animationType:] + 30 : 20 智慧應用 0x000348f8 0x2f000 + 22776 : 21 智慧應用 0x00033420 0x2f000 + 17440 : 22 智慧應用 0x00044412 0x2f000 + 87058 : 23 Foundation 0x33855678 __NSThread__main__ + 968 : 24 libsystem_c.dylib 0x3658830e _pthread_start + 306 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.128.223.100
zonble:看起來是 alert view 上面要輸入文字 10/29 15:54
zonble:文字鍵盤要去呼叫 libICU, 10/29 15:54
zonble:libICU 又不是 thread safe 的 10/29 15:55
zonble:總之 alert view 就不該出現在別的 thread 10/29 15:55