【发布时间】:2013-05-06 01:36:17
【问题描述】:
我需要有关此崩溃日志的帮助。我已经看到其他有关此错误的帖子与看门狗超时有关,但我无法弄清楚这一点。
Exception type: 02
exception code: 08badf00d
failed to launch in time
Elapsed total CPU time (seconds): 26.920 (user 26.920, system 0.000), 67% CPU Elapsed application CPU time (seconds): 0.850, 2% CPU
Unknown thread crashed with unknown flavor: 5, state_count: 1
MORE details:
Thread0name: Dispatchqueue:com.apple.main-thread Thread 0:
0 libsystem_kernel.dylib 1 libsystem_c.dylib
2 CoreData
3 CoreData performFetch:] + 334
4 MyPaleo
5 UIKit
loadViewIfRequired] + 360
6 UIKit
contentScrollView] + 22
7 UIKit
_computeAndApplyScrollContentInsetDeltaForViewController:] + 24
8 UIKit 0x3346ef70-[UINavigationController _layoutViewController:] + 28
9 UIKit 0x3346ee94-[UINavigationController _updateScrollViewFromViewController:toViewController:] + 268
10 UIKit 0x3346e5d4-[UINavigationController _startTransition:fromViewController:toViewController:] + 60
11 UIKit 0x3346e4bc-[UINavigationController _startDeferredTransitionIfNeeded:] + 320
0x399950fc__psynch_mutexwait+24 0x398de124 pthread_mutex_lock + 388 0x31383e8c -[_PFLock lock] + 20 0x31465752 -[NSFetchedResultsController
0x0001a5d2 0x2000 + 99794 0x3341a590 -[UIViewController
0x3346f146 -[UIViewController 0x3346f08c -[UINavigationController
12 UIKit
layoutSubviews] + 176
13 UIKit
layoutSublayersOfLayer:] + 254
14 QuartzCore
15 QuartzCore
CA::Layer::layout_if_needed(CA::Transaction*) + 456
16 QuartzCore 0x331d77ca-[CALayerlayoutIfNeeded]+138 17 UIKit 0x334a80e4-[UIViewController window:setupWithInterfaceOrientation:] + 204
18 UIKit 0x334a72d0-[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:isRotating:] + 3616
0x3343f4e4-[UILayoutContainerView 0x333fe7fe-[UIView(CALayerDelegate)
0x331a8d86-[CALayerlayoutSublayers]+210 0x331a8924
19 UIKit 0x334a64a2-[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 42 20 UIKit 0x334a642c-[UIWindow _setRotatableViewOrientation:duration:force:] + 64
21 UIKit 0x335dc304__57-[UIWindow _updateToInterfaceOrientation:duration:force:]_block_invoke_0 + 100
22 UIKit 0x3346468e-[UIWindow _updateToInterfaceOrientation:duration:force:] + 214
23 UIKit 0x334643d0-[UIWindow setAutorotates:forceUpdateInterfaceOrientation:] + 688
24 UIKit 0x33463d36-[UIViewController _tryBecomeRootViewControllerInWindow:] + 154
25 UIKit 0x3345aea6-[UIWindow addRootViewControllerViewIfPossible] + 366
26 UIKit
360
27 UIKit
28 UIKit
_callInitializationDelegatesForURL:payload:suspended:] + 1662
29 UIKit 0x33453846-[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 694
30 UIKit
handleEvent:withNewEvent:] + 1000
31 UIKit
32 UIKit
33 GraphicsServices
34 GraphicsServices
35 CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 32
36 CoreFoundation 37 CoreFoundation 38 CoreFoundation 39 CoreFoundation 40 UIKit
41 UIKit
42 MyPaleo
43 libdyld.dylib
0x315c8112 __CFRunLoopDoSource1 + 134 0x315c6f94 __CFRunLoopRun + 1380 0x31539eb8 CFRunLoopRunSpecific + 352 0x31539d44 CFRunLoopRunInMode + 100 0x33452480 -[UIApplication _run] + 664 0x3344f2fc UIApplicationMain + 1116 0x0001eb16 0x2000 + 117526
0x398ceb1c start + 0
【问题讨论】:
-
您是否正在为您的项目导入/包含正确的框架,以及您在哪里使用它们?
#import <QuartzCore/QuartzCore.h>或 CoreData 等 -
我很确定我导入了正确的框架。如果我没有收到错误消息,我会收到吗?另外,奇怪的是我在运行应用程序时没有收到此错误,但 Apple 在我的帖子中因崩溃而拒绝了 2 次。我有人添加了 iCloud,它不会加载并使用本地商店。不知道这是否与它有关。
-
查看stackoverflow.com/questions/773442/what-does-8badf00d-mean 的答案以及链接的 Apple 文档。
-
感谢 Martin,我确实查看了该线程和引用的文档,但是我没有任何同步调用。在 didfinishlaunching 中启动 testflight 会导致它吗? ...虽然我在其他 2 个应用程序中使用它并且没有任何问题。这是我在 didFinishLaunching 中唯一的其他代码: NSURL *ubiq = [[NSFileManager defaultManager]URLForUbiquityContainerIdentifier:nil]; if (ubiq) { NSLog(@"iCloud 访问 %@", ubiq); // TODO: 加载文档
} else { NSLog(@"没有 iCloud 访问权限"); } -
@user1856829:嗯,主线程上肯定有什么东西需要太长时间。我没有 testflight 也几乎没有 iCloud 经验,所以我只能推荐给 NSLog 时间戳来寻找罪魁祸首。还有一些 WWDC 会议演示了如何使用 Instruments 调试此类问题。
标签: objective-c xcode crash-reports