TextInput崩溃 - 如何调试?
问题描述:
我得到崩溃报告为我的iOS应用在坠毁线以下或类似的堆栈:TextInput崩溃 - 如何调试?
0 TextInput 0x0003149a TIInputManager::apply_case_changes_to_result(std::vector >&, KB::Hashmap const&, std::vector > const&) const + 402
1 TextInput 0x00030bf3 TIInputManager::lookup() + 863
2 TextInput 0x000307ad TIInputManager::autocorrection() + 61
3 TextInput 0x00042d21 -[TIKeyboardInputManagerZephyr autocorrection] + 137
4 UIKit 0x0011a319 -[UIKeyboardImpl generateCandidatesWithOptions:] + 377
5 UIKit 0x00133071 -[UIKeyboardImpl addInputString:fromVariantKey:] + 2597
6 UIKit 0x00130f8d -[UIKeyboardImpl handleKeyEvent:] + 1453
7 UIKit 0x001308b7 -[UIKeyboardLayoutStar sendStringAction:forKey:isPopupVariant:] + 487
8 UIKit 0x0012f3ad -[UIKeyboardLayoutStar touchUp:] + 3101
9 UIKit 0x0012e737 -[UIKeyboardLayout touchesEnded:withEvent:] + 387
10 UIKit 0x000165f9 -[UIWindow _sendTouchesForEvent:] + 525
11 UIKit 0x00003809 -[UIApplication sendEvent:] + 381
12 UIKit 0x00003123 _UIApplicationHandleEvent + 6155
13 GraphicsServices 0x000065a3 _PurpleEventCallback + 591
14 GraphicsServices 0x000061d3 PurpleEventCallback + 35
15 CoreFoundation 0x00097173 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 35
16 CoreFoundation 0x00097117 __CFRunLoopDoSource1 + 139
17 CoreFoundation 0x00095f99 __CFRunLoopRun + 1385
18 CoreFoundation 0x00008ebd CFRunLoopRunSpecific + 357
19 CoreFoundation 0x00008d49 CFRunLoopRunInMode + 105
20 GraphicsServices 0x000052eb GSEventRunModal + 75
21 UIKit 0x00057301 UIApplicationMain + 1121
22 MyApp 0x0000294b main (main.mm:8)
只有最底部线(main
)是我的。它看起来像是在文本输入框架中的触摸事件处理程序中的某处,它与自动更正有关。
这些崩溃带来令人沮丧的一致性 - 这看起来像是我的一个微妙的错误,而不是iOS本身。调用堆栈不一致 - 有时以UIKit结尾,有时以libobjc结尾。但是,iOS版本似乎一直是6.x.
任何想法如何调试,请?
在线程0编辑:SIGSEGV/SEGV_ACCERR错误地址变化 - 有时,它是零,有时不。
答
这实际上是Apple的错误。在模拟器上进入设置(即模拟设置应用程序,即),然后关闭自动更正。
+0
这发生在用户设备上,而不是在模拟器上。 – 2013-09-20 16:01:35
答
我在iOS 6.1.3(两次)和6.1.4(一次)上看到过相同的情况,所有这些内容都报告为crashlogs。在Apple的C++代码中,似乎都是零指针解引用。除了向苹果公司提交错误报告之外,我不认为有任何事情可以做(我提出了一个列为:15573020)。 Apple会将重复报告视为错误优先级的指标,因此如果您遭受了损失,我建议您在https://bugreport.apple.com处添加报告并参考我提供的报告。
您是否找到了解决此问题的解决方案?这里同样的事情。 – 2013-04-07 21:23:11
不,还没有...... – 2013-04-07 23:41:33
有同样的问题。 – 2013-07-18 11:31:18