简体   繁体   English

iOS App在线程0中崩溃

[英]iOS App crashes in Thread 0

One of our users confronted us with the problem, that the App crashes directly after the app start. 我们的一位用户面对我们的问题,即应用启动后立即崩溃。 Now we only got two Crash Reports, but couldn't reproduce the Crash on any of our devices. 现在我们只有两个崩溃报告,但是无法在任何设备上重现崩溃报告。 The Build is an Enterprise Distribution Build. 该版本是企业发行版本。

The Device is an iPhone 4, with iOS 6. 设备是配备iOS 6的iPhone 4。

Any idea would be much appreciated. 任何想法将不胜感激。

Date/Time:       2012-10-30 17:41:11.762 +0100
OS Version:      iOS 6.0 (10A403)
Report Version:  104

Exception Type:  EXC_CRASH (SIGTRAP)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread:  0

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libsystem_c.dylib              0x38edad8e memmove$VARIANT$CortexA8 + 654
1   QuartzCore                     0x3401c81c CA::Render::Encoder::encode_bytes(void const*, unsigned long) + 24
2   QuartzCore                     0x3401d494 CA::Render::Layer::Ext::encode(CA::Render::Encoder*) const + 152
3   QuartzCore                     0x3401c706 CA::Render::encode_set_object(CA::Render::Encoder*, unsigned long, unsigned int, CA::Render::Object*, unsigned int) + 42
4   QuartzCore                     0x3401b3e2 CA::Context::commit_layer(CA::Layer*, unsigned int, unsigned int, void*) + 114
5   QuartzCore                     0x34011076 CA::Layer::commit_if_needed(CA::Transaction*, void (*)(CA::Layer*, unsigned int, unsigned int, void*), void*) + 310
6   QuartzCore                     0x3401101c CA::Layer::commit_if_needed(CA::Transaction*, void (*)(CA::Layer*, unsigned int, unsigned int, void*), void*) + 220
7   QuartzCore                     0x3401101c CA::Layer::commit_if_needed(CA::Transaction*, void (*)(CA::Layer*, unsigned int, unsigned int, void*), void*) + 220
8   QuartzCore                     0x3401052c CA::Context::commit_transaction(CA::Transaction*) + 1024
9   QuartzCore                     0x34010024 CA::Transaction::commit() + 312
10  QuartzCore                     0x3400fe84 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 56
11  CoreFoundation                 0x34e326ca __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 18
12  CoreFoundation                 0x34e309bc __CFRunLoopDoObservers + 272
13  CoreFoundation                 0x34e30d12 __CFRunLoopRun + 738
14  CoreFoundation                 0x34da3eb8 CFRunLoopRunSpecific + 352
15  CoreFoundation                 0x34da3d44 CFRunLoopRunInMode + 100
16  GraphicsServices               0x35b0c2e6 GSEventRunModal + 70
17  UIKit                          0x379e92fc UIApplicationMain + 1116
18  MyApp                           0x000ceb90 main (main.m:16)
19  MyApp                           0x000ceb2c start + 36

Here's the second one: 这是第二个:

Date/Time:       2012-10-29 15:54:48.926 +0100
OS Version:      iOS 6.0 (10A403)
Report Version:  104

Exception Type:  EXC_CRASH (SIGTRAP)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread:  0

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libsystem_kernel.dylib         0x33b1beb4 mach_msg_trap + 20
1   libsystem_kernel.dylib         0x33b1c048 mach_msg + 36
2   CoreFoundation                 0x34e32040 __CFRunLoopServiceMachPort + 124
3   CoreFoundation                 0x34e30d5a __CFRunLoopRun + 810
4   CoreFoundation                 0x34da3eb8 CFRunLoopRunSpecific + 352
5   CoreFoundation                 0x34da3d44 CFRunLoopRunInMode + 100
6   GraphicsServices               0x35b0c2e6 GSEventRunModal + 70
7   UIKit                          0x379e92fc UIApplicationMain + 1116
8   MyApp                           0x00024b90 main (main.m:16)
9   MyApp                           0x00024b2c start + 36

The first one I would suspect that you're animating things while they're being put onto the screen (since it happens during launch). 我会怀疑第一个是在将事物放到屏幕上时对其进行动画处理(因为它是在启动过程中发生的)。 Perhaps something UI-related you're doing in your application delegate, or otherwise doing from a view controller that isn't on the screen yet. 也许您正在应用程序委托中执行与UI相关的操作,或者通过尚未在屏幕上的视图控制器进行操作。 That said, the Core Animation calls may be a red herring (see below). 话虽如此,“核心动画”电话可能是一条红鲱鱼(见下文)。

The second one is unlikely the actual crash point. 第二个不太可能是实际的崩溃点。 iOS cannot always determine which thread actually crashed, and sometimes will blame the wrong one (and most often thread 0 will be incorrectly blamed). iOS无法始终确定哪个线程实际上崩溃了,有时会归咎于错误的线程(并且大多数情况下,错误归咎于线程0)。 Crashing in a _trap function is really unlikely. _trap函数真正崩溃的可能性很小。 The thread is generally suspended at this point. 线程通常在此时暂停。 I would study the other threads and see if one of them was doing something suspicious. 我将研究其他线程,看看它们中的一个是否在做可疑的事情。 If you find it elsewhere, then this could also be the cause of the first crash. 如果您在其他地方找到它,那么这也可能是第一次崩溃的原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM