【问题标题】:App crashes after change to iOS6 - ucol_getVersion更改为 iOS6 后应用程序崩溃 - ucol_getVersion
【发布时间】:2012-09-13 14:24:39
【问题描述】:

我对更新的 ios 应用程序有疑问。 上周三(在 iphone 主题演讲之前),该应用已提交审核。 针对 iOS6-beta、iOS5、iOS4 进行了测试。 -> 没问题。 针对 iOS5 SDK 编译

现在,我收到了很多崩溃报告(系统:bugsense),仅限 iOS6。

短版:

SIGSEGV 类:信号文件:ucol_getVersion +

在符号化之后,崩溃报告仍然不可读:

- 0 libicucore.A.dylib 0x318e4570 ucol_getVersion + -1
- 1 TextInput 0x36ee7fa9 _ZN2KB8WordTrie4loadERKNS_6StringE + 280
- 2 TextInput 0x36ee1495 + 16
- 3 TextInput 0x3724bcb3 + 58
- 4 TextInput 0x3724bc51 + 44
- 5 TextInput 0x36ed8f6d _ZN14TIInputManager17load_dictionariesERKN2KB6StringES3_b + 24
- 6 TextInput 0x36ee9fc1 + 220
- 7 TextInput 0x36ee9c07 + 502
- 8 UIKit 0x32c08f7f + 162
- 9 UIKit 0x32c07fd3 + 402
- 10 UIKit 0x32c07be7 + 378
- 11 UIKit 0x32c064b9 + 464
- 12 UIKit 0x32c061ab + 150
- 13 UIKit 0x32c68975 + 388
- 14 UIKit 0x32c65845 + 528
- 15 UIKit 0x32c65541 + 104
- 16 UIKit 0x32c63f47 + 406
- 17 UIKit 0x32c63d6f + 30
- 18 UIKit 0x32c636af + 34
- 19 APP 0x000186ff 0x1000 + 95999
- 20 APP 0x00093a93 0x1000 + 600723
- 21 Foundation 0x33ac7ef5 + 16
- 22 Foundation 0x33a079f1 + 200
- 23 Foundation 0x33a0790d + 60
- 24 CFNetwork 0x388ff5df + 26
- 25 CFNetwork 0x388feccb + 54
- 26 CFNetwork 0x38927133 + 18
- 27 CoreFoundation 0x361f974d CFArrayApplyFunction + 176
- 28 CFNetwork 0x38927593 + 74
- 29 CFNetwork 0x3888b15d + 188
- 30 CoreFoundation 0x36288683 + 14
- 31 CoreFoundation 0x36287ee9 + 212
- 32 CoreFoundation 0x36286cb7 + 646
- 33 CoreFoundation 0x361f9ebd CFRunLoopRunSpecific + 356
- 34 CoreFoundation 0x361f9d49 CFRunLoopRunInMode + 104
- 35 Foundation 0x339f678f + 254
- 36 APP 0x0007e4c9 0x1000 + 513225
- 37 Foundation 0x33a923db + 102
- 38 libdispatch.dylib 0x3535611f + 10
- 39 libdispatch.dylib 0x3535a961 + 252
- 40 libdispatch.dylib 0x3535aac1 + 84
- 41 libsystem_c.dylib 0x3605ea11 + 360

有人遇到同样的问题吗? 如何定位崩溃?

【问题讨论】:

  • 堆栈跟踪是,好吧,除非你很幸运并且有人遇到了完全相同的崩溃,否则它的帮助不大。自己使用IOS6 RTM或模拟器无法重现崩溃?
  • 我已经从 App-Store 测试了该版本,在严重的 iOS6 设备上没有崩溃。我也在模拟器中测试过这个版本。结果相同。
  • 我有类似的崩溃:iOS 6.0(生产版本,不是 GM 种子)与蜂窝网络。尝试显示 UIAlertView 时崩溃。 Wi-Fi连接没有问题。

标签: ios crash ios6 crash-reports


【解决方案1】:

我遇到了同样的问题。对我来说,当我尝试显示 UIAlertView 时,应用程序崩溃了。

原来所有与UI相关的绘图功能都需要在UI线程上完成(我已经知道了,我想我只是有点草率)。太糟糕了,错误消息很神秘。

这个帖子可能对你有帮助: https://devforums.apple.com/message/728324

鉴于您发布的堆栈跟踪中有 UIKit 类,我猜这也是您的问题。

【讨论】:

  • 有同样的问题。为我工作。我刚用- (void)performSelectorOnMainThread:(SEL)aSelector withObject:(id)arg waitUntilDone:(BOOL)wait;
  • 是的,我也是。我在呈现 UIAlert 的后台线程中进行了一些获取。使用 @solgar 的解决方案也对我有用。
  • 同样的问题;解决方案是将我的 UIAlertView 代码从 viewWillAppear: 移动到 viewDidAppear:
  • 我遇到了同样的问题,它通过在主线程上添加(执行)显示 UIAlertview 的方法对我有用
  • 干杯,在我切换代码以实现 MBProgressHUD(在后台线程上执行)后遇到了同样的问题,我在块 dispatch_async(dispatch_get_main_queue(), ^{ 中添加了我的 UIAlertView
【解决方案2】:

这个问题很容易解决。在此代码之间输入您的代码:

dispatch_async(dispatch_get_main_queue(), ^{
// Create and show your alert view here      
});

亚历克斯

【讨论】:

  • 这是我需要的解决方案
猜你喜欢
  • 1970-01-01
  • 2018-07-09
  • 1970-01-01
  • 1970-01-01
  • 2013-03-04
  • 2018-11-28
  • 2012-11-10
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多