我使用SCNetworkReachabilityGetFlags来获取Net Flags,我以前工作得很好。 但有时(并非通常)它会在新的ipad上崩溃。 这是呼叫崩溃日志:
CrashReporter密钥:33f4ab575102aa60283b0dea73af84fbf45cb760硬件 型号:iPad3,3
代码类型:ARM(Native)父进程:launchd [1]
日期/时间:2012-08-31 15:38:09.338 +0800操作系统版本:iPhone OS 5.1.1(9B206)报告版本:104
异常类型:00000020例外代码:0x8badf00d突出显示 线程:0
特定应用信息:com.oohla.HuaShangNews失败了 及时发布
经过的总CPU时间(秒):2.120(用户2.120,系统0.000), 14%CPU经过的应用程序CPU时间(秒):0.024,0%CPU
线程0名称:调度队列:com.apple.main-thread线程0:0
libsystem_kernel.dylib 0x350ca054 semaphore_wait_trap + 8 1
libdispatch.dylib 0x3132f1c0 _dispatch_semaphore_wait_slow + 184 2 libdispatch.dylib 0x3132f1f4 dispatch_semaphore_wait $ VARIANT $ mp + 32 3 libxpc.dylib
0x3058f89a xpc_connection_send_message_with_reply_sync + 206 4
SystemConfiguration 0x36d18be6 _reach_server_target_status + 938 5 SystemConfiguration 0x36d19d56 SCNetworkReachabilityServer_targetStatus + 14 6 SystemConfiguration 0x36d02aee __SCNetworkReachabilityGetFlags + 198 7 SystemConfiguration 0x36d03f7a SCNetworkReachabilityGetFlags + 190 8 HuaShangQ_iPhone
0x0005ed14 - [Reachability currentReachabilityStatus] + 152 9
HuaShangQ_iPhone 0x000f39b4 - [HSStatManager getCurrntNet] + 52 10 HuaShangQ_iPhone 0x000f2b6e - [HSStatManager startSystem] + 322 11 HuaShangQ_iPhone 0x000f2068 - [HSStatManager条目] + 216 12 HuaShangQ_iPhone
0x0000dc6a - [AppDelegate应用程序:didFinishLaunchingWithOptions:] (AppDelegate.m:47)13 UIKit 0x35142ca4 - [UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1176 14 UIKit 0x3513c7d6 - [UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 402 15 UIKit 0x3510aabc - [UIApplication handleEvent:withNewEvent:] + 1004 16 UIKit
0x3510a560 - [UIApplication sendEvent:] + 48 17 UIKit
0x35109f34 _UIApplicationHandleEvent + 5820 18 GraphicsServices
0x32ca7224 PurpleEventCallback + 876 19 CoreFoundation
0x32bd751c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 32 20 CoreFoundation 0x32bd74be __CFRunLoopDoSource1 + 134 21 CoreFoundation 0x32bd630c __CFRunLoopRun + 1364 22 CoreFoundation
0x32b5949e CFRunLoopRunSpecific + 294 23 CoreFoundation
0x32b59366 CFRunLoopRunInMode + 98 24 UIKit
0x3513b864 - [UIApplication _run] + 544 25 UIKit
0x35138cce UIApplicationMain + 1074 26 HuaShangQ_iPhone
0x0000e520 main(main.m:17)27 HuaShangQ_iPhone
0x00003310 start + 32
如何避免 帮助Plz。
答案 0 :(得分:0)
您可能需要调查此帖子related to 0x8badf00d and application:didFinishLaunchingWithOptions:,因为崩溃ASI表示您的应用无法及时启动。