I'm having a weird crashing problem with my app that only happens on 10.5. It doesn't happen all the time, but it happens on startup, seemingly when the nib is loading. (BWTransparentScrollView appears in the crash report, but the crash there happens in initWithCoder:, and I can still trigger the crash if I remove BWToolkit from my project.)
In fact, it seems there's a problem with the two IKImageBrowserView objects in my nib. If I delete them from the nib, the crash seems to never happen (although my UI is messed up because these two views are essential to the interface).
Interface Builder doesn't notify me of any problems with the IKImageBrowserViews.
Below is a typical crash report for this problem:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0
Application Specific Information:
objc[22521]: garbage collection is ON
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFString objectForKey:]: unrecognized selector sent to instance 0x7fff704d15d0'
Thread 0 Crashed:
0 libSystem.B.dylib 0x00007fff81da5f16 __kill + 10
1 libstdc++.6.dylib 0x00007fff80b82085 dyld_stub__Unwind_DeleteException + 0
2 libobjc.A.dylib 0x00007fff80a4cadf _objc_terminate + 102
3 libstdc++.6.dylib 0x00007fff80b80425 __gxx_personality_v0 + 1259
4 libstdc++.6.dylib 0x00007fff80b8045b std::terminate() + 19
5 libstdc++.6.dylib 0x00007fff80b8054c __cxa_rethrow + 0
6 libobjc.A.dylib 0x00007fff80a4c966 objc_exception_rethrow + 0
7 com.apple.CoreFoundation 0x00007fff8218645b -[NSObject doesNotRecognizeSelector:] + 171
8 com.apple.CoreFoundation 0x00007fff82184ae4 ___forwarding___ + 756
9 com.apple.CoreFoundation 0x00007fff82184c38 _CF_forwarding_prep_0 + 232
10 com.apple.CoreText 0x00007fff839f0f43 TDescriptor::CreateMatchingDescriptorInternal(__CFSet const*) const + 237
11 com.apple.CoreText 0x00007fff839f0dd0 TDescriptor::InitBaseFont() + 30
12 com.apple.CoreText 0x00007fff839f0d59 TDescriptor::CreateMatchingDescriptor(__CFSet const*) const + 47
13 com.apple.AppKit 0x00007fff842df2d3 __NSFontFactoryWithName + 412
14 com.apple.AppKit 0x00007fff842df075 +[NSFont fontWithName:size:] + 51
15 com.apple.imageKit 0x00000001000d246b -[IKImageBrowserView _setDefaultTextAttributes] + 288
16 com.apple.imageKit 0x00000001000d2936 -[IKImageBrowserView setAppearanceStyle:] + 42
17 com.apple.imageKit 0x00000001000d0a88 -[IKImageBrowserView _ikCommonInit] + 2122
18 com.apple.imageKit 0x00000001000d1470 -[IKImageBrowserView initWithCoder:] + 76
19 com.apple.AppKit 0x00007fff8423f750 -[NSClassSwapper initWithCoder:] + 483
20 com.apple.Foundation 0x00007fff80bc631e _decodeObjectBinary + 1214
21 com.apple.Foundation 0x00007fff80bc7b33 -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1363
22 com.apple.Foundation 0x00007fff80bc7f91 -[NSArray(NSArray) initWithCoder:] + 385
23 com.apple.Foundation 0x00007fff80bc631e _decodeObjectBinary + 1214
24 com.apple.Foundation 0x00007fff80bc5de4 _decodeObject + 244
25 com.apple.AppKit 0x00007fff841fe77a -[NSView initWithCoder:] + 367
26 com.apple.AppKit 0x00007fff842406a0 -[NSClipView initWithCoder:] + 55
27 com.apple.Foundation 0x00007fff80bc631e _decodeObjectBinary + 1214
28 com.apple.Foundation 0x00007fff80bc7b33 -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1363
29 com.apple.Foundation 0x00007fff80bc7f91 -[NSArray(NSArray) initWithCoder:] + 385
30 com.apple.Foundation 0x00007fff80bc631e _decodeObjectBinary + 1214
31 com.apple.Foundation 0x00007fff80bc5de4 _decodeObject + 244
32 com.apple.AppKit 0x00007fff841fe77a -[NSView initWithCoder:] + 367
33 com.apple.AppKit 0x00007fff84240edd -[NSScrollView initWithCoder:] + 127
34 ...onwalkin.BWToolkitFramework 0x00000001003bcb7d -[BWTransparentScrollView initWithCoder:] + 41
35 com.apple.AppKit 0x00007fff8423f750 -[NSClassSwapper initWithCoder:] + 483
36 com.apple.Foundation 0x00007fff80bc631e _decodeObjectBinary + 1214
37 com.apple.Foundation 0x00007fff80bc7b33 -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1363
38 com.apple.Foundation 0x00007fff80bc7f91 -[NSArray(NSArray) initWithCoder:] + 385
39 com.apple.Foundation 0x00007fff80bc631e _decodeObjectBinary + 1214
40 com.apple.Foundation 0x00007fff80bc5de4 _decodeObject + 244
41 com.apple.AppKit 0x00007fff841fe77a -[NSView initWithCoder:] + 367
42 com.apple.AppKit 0x00007fff841ffc92 -[NSCustomView initWithCoder:] + 651
43 com.apple.Foundation 0x00007fff80bc631e _decodeObjectBinary + 1214
44 com.apple.Foundation 0x00007fff80bc5de4 _decodeObject + 244
45 com.apple.AppKit 0x00007fff841f8928 -[NSNibConnector initWithCoder:] + 409
46 com.apple.AppKit 0x00007fff841fd404 -[NSNibOutletConnector initWithCoder:] + 350
47 com.apple.Foundation 0x00007fff80bc631e _decodeObjectBinary + 1214
48 com.apple.Foundation 0x00007fff80bc7b33 -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1363
49 com.apple.Foundation 0x00007fff80bc7f91 -[NSArray(NSArray) initWithCoder:] + 385
50 com.apple.Foundation 0x00007fff80bc631e _decodeObjectBinary + 1214
51 com.apple.Foundation 0x00007fff80bc5de4 _decodeObject + 244
52 com.apple.AppKit 0x00007fff841f784c -[NSIBObjectData initWithCoder:] + 2014
53 com.apple.Foundation 0x00007fff80bc631e _decodeObjectBinary + 1214
54 com.apple.Foundation 0x00007fff80bc5de4 _decodeObject + 244
55 com.apple.AppKit 0x00007fff841f6f55 loadNib + 156
56 com.apple.AppKit 0x00007fff841f698d +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 836
57 com.apple.AppKit 0x00007fff841f6568 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 355
58 com.apple.AppKit 0x00007fff841f6299 NSApplicationMain + 286
59 ...ittleappfactory.Tagalicious 0x00000001000015cc start + 52
Thread 1:
0 libauto.dylib 0x00007fff83fcfaae Auto::MemoryScanner::scan_range(Auto::Range const&, Auto::WriteBarrier*) + 366
1 libauto.dylib 0x00007fff83fbe3df Auto::WriteBarrier::scan_ranges(void*, unsigned long, Auto::MemoryScanner&) + 607
2 libauto.dylib 0x00007fff83fd10c7 bool Auto::visitAllocatedBlocks<Auto::scan_retained_and_old_blocks_visitor>(Auto::Zone*, Auto::scan_retained_and_old_blocks_visitor&) + 343
3 libauto.dylib 0x00007fff83fd080d Auto::MemoryScanner::scan_retained_and_old_blocks() + 29
4 libauto.dylib 0x00007fff83fc95d7 Auto::Collector::check_roots() + 23
5 libauto.dylib 0x00007fff83fd0b0d Auto::MemoryScanner::scan() + 45
6 libauto.dylib 0x00007fff83fc0a40 Auto::Zone::collect(bool, void*, unsigned long long*) + 496
7 libauto.dylib 0x00007fff83fae8fd auto_collect_internal(Auto::Zone*, unsigned int) + 381
8 libauto.dylib 0x00007fff83faf3b0 auto_collection_thread(void*) + 112
9 libSystem.B.dylib 0x00007fff81d6ce8f _pthread_start + 316
10 libSystem.B.dylib 0x00007fff81d6cd51 thread_start + 13
Thread 2:
0 libSystem.B.dylib 0x00007fff81d45da2 __semwait_signal + 10
1 libGLProgrammability.dylib 0x00007fff826d057b glvmDoWork + 155
2 libSystem.B.dylib 0x00007fff81d6ce8f _pthread_start + 316
3 libSystem.B.dylib 0x00007fff81d6cd51 thread_start + 13
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x00007fff702717d8 rcx: 0x00007fff5fbfb628 rdx: 0x0000000000000000
rdi: 0x00000000000057f9 rsi: 0x0000000000000006 rbp: 0x00007fff5fbfb640 rsp: 0x00007fff5fbfb628
r8: 0x00007fff5fbfb1b0 r9: 0x0000000000000000 r10: 0x00007fff81d7de36 r11: 0x0000000000000206
r12: 0x00007fff821aea28 r13: 0x0000000000000000 r14: 0x00007fff80a56d00 r15: 0x00007fff7032d0a0
rip: 0x00007fff81da5f16 rfl: 0x0000000000000206 cr2: 0x00007fff70093028
Any idea what could be happening?
Ugh. I tried a bunch of things to try and fix this problem. I tried recreating new IKImageBrowserViews from scratch (in case the xib file itself was somehow damaged). I tried making sure that my custom IKImageBrowserView classes (I set their classes in Interface Builder) were not causing the problem.
In the end, I deleted the IKImageBrowserViews from the xib and created them both programatically. The crashes on 10.5 disappeared. It wasn't too hard, but it was the only solution that seemed to fix the on-launch crashes.
Related
I have a crash log
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: FRONTBOARD 2343432205
<RBSTerminateContext| domain:10 code:0x8BADF00D explanation:scene-update watchdog transgression: application<im.AppName.AppName-dev>:2443 exhausted real (wall clock) time allowance of 10.00 seconds
ProcessVisibility: Background
ProcessState: Running
WatchdogEvent: scene-update
WatchdogVisibility: Background
WatchdogCPUStatistics: (
"Elapsed total CPU time (seconds): 1.810 (user 1.040, system 0.770), 3% CPU",
"Elapsed application CPU time (seconds): 0.006, 0% CPU"
) reportType:CrashLog maxTerminationResistance:Interactive>
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x1d362dac4 semaphore_wait_trap + 8
1 libdispatch.dylib 0x19e00a578 _dispatch_sema4_wait + 28
2 libdispatch.dylib 0x19e00ac2c _dispatch_semaphore_wait_slow + 132
3 AppName 0x1005c66c0 0x100570000 + 353984
4 AppName 0x1006b3394 0x100570000 + 1323924
5 UIKitCore 0x198d904f0 __47-[UIApplication _applicationDidEnterBackground]_block_invoke + 204
6 UIKitCore 0x198f32410 +[UIViewController _performWithoutDeferringTransitionsAllowingAnimation:actions:] + 140
7 UIKitCore 0x198d91ddc -[UIApplication _applicationDidEnterBackground] + 136
8 UIKitCore 0x198d915c0 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke_2 + 652
9 UIKitCore 0x198c8b600 _UIScenePerformActionsWithLifecycleActionMask + 108
10 UIKitCore 0x198fcd918 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 216
11 UIKitCore 0x198e7e014 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 332
12 UIKitCore 0x198e7ddcc -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 620
13 UIKitCore 0x198e7d97c -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 252
14 UIKitCore 0x198e7d848 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 148
15 UIKitCore 0x19955ffa8 +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:fromCurrentState:actions:completion:] + 736
16 UIKitCore 0x1995f8f98 _UISceneSettingsDiffActionPerformChangesWithTransitionContextAndCompletion + 224
17 UIKitCore 0x198d29958 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 316
18 UIKitCore 0x19919c7a8 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.214 + 556
19 UIKitCore 0x198dfc0b8 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 216
20 UIKitCore 0x198dfbf28 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 244
21 UIKitCore 0x198dfbd68 -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:] + 336
22 FrontBoardServices 0x1ac655cdc -[FBSScene updater:didUpdateSettings:withDiff:transitionContext:completion:] + 420
23 FrontBoardServices 0x1ac655b18 __94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke_2 + 144
24 FrontBoardServices 0x1ac659294 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 168
25 FrontBoardServices 0x1ac6591b0 __94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke + 340
26 libdispatch.dylib 0x19e009fdc _dispatch_client_callout + 20
27 libdispatch.dylib 0x19e00da5c _dispatch_block_invoke_direct + 264
28 FrontBoardServices 0x1ac6633b0 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 52
29 FrontBoardServices 0x1ac662f4c -[FBSSerialQueue _targetQueue_performNextIfPossible] + 220
30 FrontBoardServices 0x1ac66572c -[FBSSerialQueue _performNextFromRunLoopSource] + 28
31 CoreFoundation 0x196b05f54 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
32 CoreFoundation 0x196b1232c __CFRunLoopDoSource0 + 176
33 CoreFoundation 0x196a96210 __CFRunLoopDoSources0 + 244
34 CoreFoundation 0x196aabba8 __CFRunLoopRun + 836
35 CoreFoundation 0x196ab0ed4 CFRunLoopRunSpecific + 612
36 GraphicsServices 0x1cfdae368 GSEventRunModal + 164
37 UIKitCore 0x198f8f3d0 -[UIApplication _run] + 888
38 UIKitCore 0x198f8f034 UIApplicationMain + 340
39 AppName 0x1006b4438 0x100570000 + 1328184
40 dyld 0x1b5118960 start + 2528
Thread 1 name: com.apple.uikit.eventfetch-thread
Thread 1:
0 libsystem_kernel.dylib 0x1d362db48 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x1d3640008 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x1d3640248 mach_msg_overwrite + 388
3 libsystem_kernel.dylib 0x1d362e08c mach_msg + 24
4 CoreFoundation 0x196aaaaf0 __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x196aabd34 __CFRunLoopRun + 1232
6 CoreFoundation 0x196ab0ed4 CFRunLoopRunSpecific + 612
7 Foundation 0x190e5a334 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8 Foundation 0x190e5a21c -[NSRunLoop(NSRunLoop) runUntilDate:] + 64
9 UIKitCore 0x1990c433c -[UIEventFetcher threadMain] + 436
10 Foundation 0x190e73808 __NSThread__start__ + 716
11 libsystem_pthread.dylib 0x1e3a906cc _pthread_start + 148
12 libsystem_pthread.dylib 0x1e3a8fba4 thread_start + 8
Thread 2 name: com.apple.NSURLConnectionLoader
Thread 2:
0 libsystem_kernel.dylib 0x1d362db48 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x1d3640008 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x1d3640248 mach_msg_overwrite + 388
3 libsystem_kernel.dylib 0x1d362e08c mach_msg + 24
4 CoreFoundation 0x196aaaaf0 __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x196aabd34 __CFRunLoopRun + 1232
6 CoreFoundation 0x196ab0ed4 CFRunLoopRunSpecific + 612
7 CFNetwork 0x197e085a8 0x197bb2000 + 2450856
8 Foundation 0x190e73808 __NSThread__start__ + 716
9 libsystem_pthread.dylib 0x1e3a906cc _pthread_start + 148
10 libsystem_pthread.dylib 0x1e3a8fba4 thread_start + 8
Thread 3 name: Dispatch queue: com.AppName.response-queue
Thread 3:
0 libsystem_kernel.dylib 0x1d362e680 __ulock_wait + 8
1 libdispatch.dylib 0x19e00a9cc _dlock_wait + 56
2 libdispatch.dylib 0x19e00ad7c _dispatch_group_wait_slow + 56
3 AppName 0x1005c6cb0 0x100570000 + 355504
4 AppName 0x1005c9510 0x100570000 + 365840
5 AppName 0x100705cf0 0x100570000 + 1662192
6 AppName 0x100732dc4 0x100570000 + 1846724
7 AppName 0x1005a5614 0x100570000 + 218644
8 AppName 0x1005a67d0 0x100570000 + 223184
9 AppName 0x1005a4eb8 0x100570000 + 216760
10 AppName 0x100c99344 0x100570000 + 7508804
11 AppName 0x100c2e760 0x100570000 + 7071584
12 libdispatch.dylib 0x19e0084b4 _dispatch_call_block_and_release + 32
13 libdispatch.dylib 0x19e009fdc _dispatch_client_callout + 20
14 libdispatch.dylib 0x19e011694 _dispatch_lane_serial_drain + 672
15 libdispatch.dylib 0x19e0121e0 _dispatch_lane_invoke + 384
16 libdispatch.dylib 0x19e01ce10 _dispatch_workloop_worker_thread + 652
17 libsystem_pthread.dylib 0x1e3a8fdf8 _pthread_wqthread + 288
18 libsystem_pthread.dylib 0x1e3a8fb98 start_wqthread + 8
Thread 4:
0 libsystem_pthread.dylib 0x1e3a8fb90 start_wqthread + 0
Thread 5:
0 libsystem_pthread.dylib 0x1e3a8fb90 start_wqthread + 0
Thread 6:
0 libsystem_pthread.dylib 0x1e3a8fb90 start_wqthread + 0
Thread 7:
0 libsystem_pthread.dylib 0x1e3a8fb90 start_wqthread + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x000000000000000e x1: 0x0000000000000000 x2: 0x00000001ed09c1e8 x3: 0x0000000280c05510
x4: 0x0000000000000000 x5: 0x0000000000000002 x6: 0x0000001200000005 x7: 0x0000000000000002
x8: 0x0000000000000000 x9: 0xffffffffffffffff x10: 0x00000001f4e3bf18 x11: 0x000000000000000f
x12: 0x0000000000813d80 x13: 0x000000010289f390 x14: 0x00000001ed09c1e8 x15: 0x00000001ed09c1e8
x16: 0xffffffffffffffdc x17: 0x00000001f212d058 x18: 0x0000000000000000 x19: 0x0000000281830cc0
x20: 0x0000000281830c80 x21: 0xffffffffffffffff x22: 0x00000001005c4ecc x23: 0x00000001ea401af0
x24: 0x00000001006b2120 x25: 0x0000000101806b20 x26: 0x0000000281465580 x27: 0x0000000281501980
x28: 0x000000028173b500 fp: 0x000000016f88d640 lr: 0x000000019e00a578
sp: 0x000000016f88d630 pc: 0x00000001d362dac4 cpsr: 0x60001000
far: 0x00000001ea5c8490 esr: 0x56000080 Address size fault
Binary Images:
0x1d362d000 - 0x1d3663ffb libsystem_kernel.dylib arm64e <ff27fc8f90ba3332ab7ac5bc2d9ca7b1> /usr/lib/system/libsystem_kernel.dylib
0x19e006000 - 0x19e04cfff libdispatch.dylib arm64e <fea36690a0003c55b7009120b05aa69b> /usr/lib/system/libdispatch.dylib
0x100570000 - 0x101013fff AppName arm64 <fb7380c17ab7349381ed8db80f753a1a> /private/var/containers/Bundle/Application/A8957E02-C3C1-4F5C-855B-51D0604297F1/AppName.app/AppName
0x198bed000 - 0x19a3cafff UIKitCore arm64e <179501b60fc2344ab969b4e3961ebe10> /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
0x1ac652000 - 0x1ac6f7fff FrontBoardServices arm64e <65e92d01137f3e1698a6a33706699695> /System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices
0x196a30000 - 0x196e15fff CoreFoundation arm64e <5cdc5d9ae5063740b64ebb30867b4f1b> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x1cfdad000 - 0x1cfdb5fff GraphicsServices arm64e <a633a095122639428f413877660185ee> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x1b5103000 - 0x1b518600f dyld arm64e <cb3ff411476234d286a4eca13f9fb6c3> /usr/lib/dyld
0x190e18000 - 0x191761fff Foundation arm64e <c431acb6fe043d28b6774de6e1c7d81f> /System/Library/Frameworks/Foundation.framework/Foundation
0x1e3a8f000 - 0x1e3a9afff libsystem_pthread.dylib arm64e <1aa3a4b6f9e730568c8b4e4dd81312a4> /usr/lib/system/libsystem_pthread.dylib
0x197bb2000 - 0x197f79fff CFNetwork arm64e <edb0559fc996327f9b3a6616e316f24d> /System/Library/Frameworks/CFNetwork.framework/CFNetwork
EOF
Could you please explain to me what happened? My understanding is that my app was in the background and the app wanted to update some UI in the main thread, but for some reason it failed, right? and the system killed my app after 10 seconds. But why can't the app update in the background?
As the user explained to me, he made a request to the server (which returns some data to show it in the app) and it took so long (probably internet problems). Then he hid the app and when he came back it went down in the background.
I was working with Xcode last night, in morning I relaunch the XCode and it crash, an error appears.
I tried to delete the Preferences, cache, reinstall all... nothing.
But if I run Xcode from terminal with root privilege, it runs but Simulator doesn't work properly...
Error dump:
Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes:
0x000000000000000a, 0x000000010e8ac000 Exception Note:
EXC_CORPSE_NOTIFY
VM Regions Near 0x10e8ac000:
__LINKEDIT 000000010e83e000-000000010e83f000 [ 4K] rw-/rwx SM=NUL
/Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
--> mapped file 000000010e83f000-000000010e9e3000 [ 1680K] r--/rwx SM=COW
MALLOC_LARGE 000000010e9e3000-000000010ebe9000 [ 2072K] rw-/rwx SM=PRV
Application Specific Information: ProductBuildVersion: 7B1005
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0
com.apple.CoreFoundation 0x00007fff99b9852b
CFStringCreateImmutableFunnel3 + 795 1 com.apple.CoreFoundation 0x00007fff99ba844b CFStringCreateWithBytes + 59 2
com.apple.CoreFoundation 0x00007fff99bd4ff9
__CFBinaryPlistCreateObjectFiltered + 7273 3 com.apple.CoreFoundation 0x00007fff99bd4c82
__CFBinaryPlistCreateObjectFiltered + 6386 4 com.apple.CoreFoundation 0x00007fff99bd4c82
__CFBinaryPlistCreateObjectFiltered + 6386 5 com.apple.CoreFoundation 0x00007fff99bd4c82
__CFBinaryPlistCreateObjectFiltered + 6386 6 com.apple.CoreFoundation 0x00007fff99bd4c82
__CFBinaryPlistCreateObjectFiltered + 6386 7 com.apple.CoreFoundation 0x00007fff99bd4347
__CFBinaryPlistCreateObjectFiltered + 4023 8 com.apple.CoreFoundation 0x00007fff99bd4c82
__CFBinaryPlistCreateObjectFiltered + 6386 9 com.apple.CoreFoundation 0x00007fff99bb8427
__CFTryParseBinaryPlist + 215 10 com.apple.CoreFoundation 0x00007fff99bb7ca9 _CFPropertyListCreateWithData + 89 11
com.apple.CoreFoundation 0x00007fff99bb7bad
CFPropertyListCreateWithData + 93 12 com.apple.Foundation
0x00007fff8b8400d7 +[NSPropertyListSerialization
propertyListWithData:options:format:error:] + 94 13
com.apple.dt.DVTFoundation 0x00000001066a81f3 -[DVTPlugInManager
_loadPlugInCache:] + 260 14 com.apple.dt.DVTFoundation 0x00000001066a34a5 -[DVTPlugInManager _scanForPlugIns:] + 3304 15
com.apple.dt.IDEFoundation 0x00000001073e25e9 IDEInitialize + 3250
16 com.apple.dt.IDEKit 0x0000000107adf2fc
-[IDEApplicationController applicationWillFinishLaunching:] + 708 17 com.apple.CoreFoundation 0x00007fff99c33c9c
__CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 12 18 com.apple.CoreFoundation 0x00007fff99c33c2f
___CFXRegistrationPost_block_invoke + 63 19 com.apple.CoreFoundation 0x00007fff99c33ba7 _CFXRegistrationPost + 407 20
com.apple.CoreFoundation 0x00007fff99c33912
___CFXNotificationPost_block_invoke + 50 21 com.apple.CoreFoundation 0x00007fff99bf06d2 -[_CFXNotificationRegistrar
find:object:observer:enumerator:] + 1922 22 com.apple.CoreFoundation
0x00007fff99bef925 _CFXNotificationPost + 693 23
com.apple.Foundation 0x00007fff8b82f0fa
-[NSNotificationCenter postNotificationName:object:userInfo:] + 66 24 com.apple.dt.DVTFoundation 0x0000000106883d35
-[NSNotificationCenter(DVTNSNotificationCenterAdditions) _dvt_postNotificationName:object:userInfo:] + 698 25 com.apple.AppKit 0x00007fff9249d022 -[NSApplication finishLaunching] + 354 26
com.apple.dt.DVTKit 0x0000000106e83494 -[DVTApplication
finishLaunching] + 149 27 com.apple.AppKit
0x00007fff9249cb65 -[NSApplication run] + 231 28 com.apple.AppKit
0x00007fff92465fbe NSApplicationMain + 1176 29 libdyld.dylib
0x00007fff8b5eb5ad start + 1
I have an app on the Mac App Store, and I get these crash reports from my users which I cannot reproduce or figure out how to debug. It seem like something crashes due to NSManagedObjectContext reset, but it's not obvious, and users don't have a reproducible case. The main thread can have a different stack trace, but the non-main thread always has the same stack trace.
Exception Type: SIGSEGV
Exception Codes: SEGV_MAPERR at 0x41bfc026bec0
Crashed Thread: 8
Application Specific Information:
Selector name found in current argument registers: retain
Thread 0:
0 libFontParser.dylib 0x00007fff8efa7921 _ZNK20TTrueTypeFontHandler11RenderGlyphEtR27TTrueTypeQuadOutlineContextj + 89
1 libFontParser.dylib 0x00007fff8efa789e _ZNK20TTrueTypeFontHandler14GetOutlinePathEtRK18TGlyphOutlineBatch + 60
2 libFontParser.dylib 0x00007fff8efa744a FPFontCopyGlyphPath + 394
3 CoreGraphics 0x00007fff8767e913 CGFontCreateGlyphPath + 44
4 CoreGraphics 0x00007fff8767e85d CGFontCreateGlyphBitmap + 437
5 CoreGraphics 0x00007fff8767e607 _ZN14CGGlyphBuilder22create_missing_bitmapsEPK17CGGlyphIdentifiermPPK13CGGlyphBitmap + 109
6 libRIP.A.dylib 0x00007fff8b7bec2d render_glyphs + 204
7 libRIP.A.dylib 0x00007fff8b7bdf6f draw_glyph_bitmaps + 1585
8 libRIP.A.dylib 0x00007fff8b7bd8cd ripc_DrawGlyphs + 2785
9 CoreGraphics 0x00007fff87738077 draw_glyphs + 1034
10 CoreText 0x00007fff8ac50426 _ZL25DrawSbixGlyphsAtPositionsPK5TFontP6CGFontRK6TCFRefIPK8__CFDataEPKtPK7CGPointmP9CGContext17CGAffineTransformSI_ + 2990
11 CoreText 0x00007fff8abfdb73 CTFontDrawGlyphsWithAdvances + 789
12 UIFoundation 0x00007fff966f212e -[NSLineFragmentRenderingContext drawAtPoint:inContext:] + 5398
13 UIFoundation 0x00007fff96616728 __NSStringDrawingEngine + 16941
14 UIFoundation 0x00007fff966108ff _NSStringDrawingCore + 150
15 AppKit 0x00007fff93ce6d50 _NSDrawTextCell + 6954
16 AppKit 0x00007fff9421cdf8 __47-[NSTextFieldCell drawLayer:inGraphicsContext:]_block_invoke + 576
17 AppKit 0x00007fff944aa538 +[NSAppearance _performWithCurrentAppearance:usingBlock:] + 79
18 AppKit 0x00007fff93cf6739 -[NSTextFieldCell drawLayer:inGraphicsContext:] + 225
19 AppKit 0x00007fff93cf6470 +[NSGraphicsContext configureGraphicsContextForCALayer:withCGContext:andRenderWithHandler:] + 97
20 QuartzCore 0x00007fff939f1e93 CABackingStoreUpdate_ + 3306
21 QuartzCore 0x00007fff939f11a3 ___ZN2CA5Layer8display_Ev_block_invoke + 59
22 QuartzCore 0x00007fff939f115f x_blame_allocations + 81
23 QuartzCore 0x00007fff939f0c5c _ZN2CA5Layer8display_Ev + 1546
24 AppKit 0x00007fff93ce039f _NSBackingLayerDisplay + 617
25 QuartzCore 0x00007fff939f0381 _ZN2CA5Layer17display_if_neededEPNS_11TransactionE + 603
26 QuartzCore 0x00007fff939efabd _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 35
27 QuartzCore 0x00007fff939ef24e _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 242
28 QuartzCore 0x00007fff939eeea4 _ZN2CA11Transaction6commitEv + 390
29 QuartzCore 0x00007fff939ffcad _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 71
30 CoreFoundation 0x00007fff8bbd0da7 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
31 CoreFoundation 0x00007fff8bbd0d00 __CFRunLoopDoObservers + 368
32 CoreFoundation 0x00007fff8bbc2878 CFRunLoopRunSpecific + 328
33 HIToolbox 0x00007fff918f1aef RunCurrentEventLoopInMode + 235
34 HIToolbox 0x00007fff918f176e ReceiveNextEventCommon + 179
35 HIToolbox 0x00007fff918f16ab _BlockUntilNextEventMatchingListInModeWithFilter + 71
36 AppKit 0x00007fff93bb0f81 _DPSNextEvent + 964
37 AppKit 0x00007fff93bb0730 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 194
38 AppKit 0x00007fff93ba4593 -[NSApplication run] + 594
39 AppKit 0x00007fff93b8fa14 NSApplicationMain + 1832
40 libdyld.dylib 0x00007fff88d605c9 start + 1
...
Thread 7:
0 libsystem_kernel.dylib 0x00007fff94d1b94a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff9508740d start_wqthread + 13
Thread 8 Crashed:
0 libobjc.A.dylib 0x00007fff90c740dd objc_msgSend + 29
1 Foundation 0x00007fff92461d24 NSKeyValuePushPendingNotificationPerThread + 446
2 Foundation 0x00007fff9240968f NSKeyValueWillChange + 465
3 Foundation 0x00007fff924bc33e -[NSObject(NSKeyValueObservingPrivate) _willChangeValuesForKeys:] + 234
4 CoreData 0x00007fff8d9fdd6d -[NSFaultHandler turnObject:intoFaultWithContext:] + 221
5 CoreData 0x00007fff8da28641 -[NSManagedObjectContext(_NSInternalAdditions) _disposeObjects:count:notifyParent:] + 353
6 CoreData 0x00007fff8da27c78 -[NSManagedObjectContext(_NSInternalAdditions) _dispose:] + 392
7 CoreData 0x00007fff8da27821 -[NSManagedObjectContext _dealloc__] + 337
8 CoreData 0x00007fff8da563ab __internalBlockToDeallocNSManagedObjectContext_block_invoke + 75
9 CoreData 0x00007fff8da1c246 developerSubmittedBlockToNSManagedObjectContextPerform + 182
10 libdispatch.dylib 0x00007fff8f122c13 _dispatch_client_callout + 8
11 libdispatch.dylib 0x00007fff8f126365 _dispatch_queue_drain + 1100
12 libdispatch.dylib 0x00007fff8f127ecc _dispatch_queue_invoke + 202
13 libdispatch.dylib 0x00007fff8f1256b7 _dispatch_root_queue_drain + 463
14 libdispatch.dylib 0x00007fff8f133fe4 _dispatch_worker_thread3 + 91
15 libsystem_pthread.dylib 0x00007fff95089637 _pthread_wqthread + 729
16 libsystem_pthread.dylib 0x00007fff9508740d start_wqthread + 13
Any idea how to find out what's causing the issue and possibly fix it? I've tried enabling zombies, setting NSBindingDebugLogLevel to 1, and running Zombies instrument, but no luck.
I recently upgraded to 4.5.1. I went to add a device to my provisioning profile and XCode crashes. It also crashes if I open the organizer and select devices.
I'm on Mac OSX 10.7.4. Below is the stack trace:
Crashed Thread: 7 Dispatch queue: com.apple.dt.DVTCertificateUtilities.scan
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000000000b8
VM Regions Near 0xb8:
-->
__TEXT 000000010c833000-000000010c836000 [ 12K] r-x/rwx SM=COW /Applications/Xcode.app/Contents/MacOS/Xcode
Application Specific Information:
ProductBuildVersion: 4G1004
objc[10449]: garbage collection is ON
Thread 0:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff9245a67a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff92459d71 mach_msg + 73
2 com.apple.framework.IOKit 0x00007fff905a49bf io_service_get_matching_services + 210
3 com.apple.framework.IOKit 0x00007fff9055c604 IOServiceGetMatchingServices + 137
4 com.apple.framework.IOKit 0x00007fff9055c741 IOServiceGetMatchingService + 25
5 com.apple.Foundation 0x00007fff955cd10b +[NSFileWrapper _canSafelyMapFilesAtPath:] + 241
6 com.apple.Foundation 0x00007fff95572510 -[NSData(NSData) initWithContentsOfFile:options:error:] + 139
7 com.apple.AppKit 0x00007fff8d5b0c22 -[NSNib _loadNibDataFromPath:] + 310
8 com.apple.AppKit 0x00007fff8d5b0abc -[NSNib _initWithPath:bundle:] + 162
9 com.apple.AppKit 0x00007fff8d5b0a11 -[NSNib initWithNibNamed:bundle:] + 257
10 com.apple.AppKit 0x00007fff8d5b08f9 -[NSViewController(NSInternal) _nibWithName:bundle:] + 56
11 com.apple.AppKit 0x00007fff8d5b07b0 -[NSViewController loadView] + 155
12 com.apple.DTDeviceKit 0x0000000111c9b466 -[DTDKDetailViewController loadView] + 51
13 com.apple.dt.IDE.IDEiPhoneSupport 0x0000000110c26675 -[IDEiPhoneOrganizerScreenshotsViewController loadView] + 49
14 com.apple.AppKit 0x00007fff8d5ac4ae -[NSViewController view] + 41
15 com.apple.dt.IDE.IDEiPhoneSupport 0x0000000110c2d08d -[IDEiPhoneOrganizerViewController outlineViewSelectionDidChange:] + 194
16 com.apple.Foundation 0x00007fff95563d0e __-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_1 + 47
17 com.apple.CoreFoundation 0x00007fff978f77ba _CFXNotificationPost + 2634
18 com.apple.Foundation 0x00007fff9554ffc3 -[NSNotificationCenter postNotificationName:object:userInfo:] + 65
19 com.apple.AppKit 0x00007fff8d5e9499 -[NSTableView _sendSelectionChangedNotificationForRows:columns:] + 203
20 com.apple.AppKit 0x00007fff8d5bff5a -[NSTableView _enableSelectionPostingAndPost] + 425
21 com.apple.AppKit 0x00007fff8d5e8305 -[NSTableView _doSelectIndexes:byExtendingSelection:indexType:funnelThroughSingleIndexVersion:] + 2915
22 com.apple.dt.IDE.IDEiPhoneSupport 0x0000000110c2aae4 -[IDEiPhoneOrganizerViewController setCurrentNodeIdentifier:] + 1442
23 com.apple.dt.IDE.IDEiPhoneSupport 0x0000000110c2bb9b -[IDEiPhoneOrganizerViewController updateNodes] + 2542
24 com.apple.dt.IDE.IDEiPhoneSupport 0x0000000110c29997 -[IDEiPhoneOrganizerViewController sharedViewSetup] + 219
25 com.apple.dt.IDE.IDEiPhoneSupport 0x0000000110c29a23 -[IDEiPhoneOrganizerViewController viewDidInstall] + 59
26 com.apple.dt.DVTKit 0x000000010cd49165 -[DVTViewController _didInstallContentView:] + 128
27 com.apple.dt.DVTKit 0x000000010cc83b0c -[DVTControllerContentView _viewDidInstall] + 406
28 com.apple.dt.DVTKit 0x000000010cc8338f -[DVTControllerContentView viewDidMoveToWindow] + 75
29 com.apple.AppKit 0x00007fff8d591a55 -[NSView _setWindow:] + 2618
30 com.apple.AppKit 0x00007fff8d58fc6d -[NSView addSubview:] + 405
31 com.apple.dt.DVTKit 0x000000010cd48ef0 __42-[DVTReplacementView _setupViewController]_block_invoke_0 + 164
32 com.apple.dt.DVTFoundation 0x000000010c8c02c8 DVTInvokeWithFailureHintObject + 59
33 com.apple.dt.DVTKit 0x000000010cc75141 -[DVTReplacementView _setupViewController] + 249
34 com.apple.dt.DVTKit 0x000000010cc75015 -[DVTReplacementView installedViewController] + 138
35 com.apple.dt.IDEKit 0x000000010d55ddd9 -[IDEApplicationController _openFiles:] + 533
36 com.apple.dt.IDEKit 0x000000010d55dbba -[IDEApplicationController application:openFiles:] + 49
37 com.apple.AppKit 0x00007fff8d7395e5 __-[NSApplication(NSAppleEventHandling) _handleAEOpenDocumentsForURLs:]_block_invoke_1 + 1064
38 com.apple.AppKit 0x00007fff8d4833e1 -[NSDocumentController(NSInternal) _autoreopenDocumentsWithCompletionHandler:] + 64
39 com.apple.AppKit 0x00007fff8d48310f -[NSApplication _reopenWindowsAsNecessaryIncludingRestorableState:registeringAsReady:completionHandler:] + 287
40 com.apple.AppKit 0x00007fff8d6c1f33 -[NSApplication(NSAppleEventHandling) _handleAEOpenDocumentsForURLs:] + 272
41 com.apple.AppKit 0x00007fff8d482c5a -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 307
42 com.apple.CoreFoundation 0x00007fff97941541 -[NSObject performSelector:withObject:withObject:] + 65
43 com.apple.Foundation 0x00007fff955867c7 __-[NSAppleEventManager setEventHandler:andSelector:forEventClass:andEventID:]_block_invoke_1 + 101
44 com.apple.Foundation 0x00007fff9558574e -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 283
45 com.apple.Foundation 0x00007fff955855dc _NSAppleEventManagerGenericHandler + 105
46 com.apple.dt.IDEKit 0x000000010d5f34d4 HandleOpenDocAE + 47
47 com.apple.AE 0x00007fff8c7c3c25 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) + 200
48 com.apple.AE 0x00007fff8c7c3b03 _ZL25dispatchEventAndSendReplyPK6AEDescPS_ + 38
49 com.apple.AE 0x00007fff8c7c39f7 aeProcessAppleEvent + 250
50 com.apple.HIToolbox 0x00007fff96443d7d AEProcessAppleEvent + 102
51 com.apple.AppKit 0x00007fff8d48007d _DPSNextEvent + 1247
52 com.apple.AppKit 0x00007fff8d47f735 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 135
53 com.apple.AppKit 0x00007fff8d47c071 -[NSApplication run] + 470
54 com.apple.AppKit 0x00007fff8d6f8244 NSApplicationMain + 867
55 com.apple.dt.Xcode 0x000000010c834d17 0x10c833000 + 7447
56 com.apple.dt.Xcode 0x000000010c834ca8 0x10c833000 + 7336
Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff9245c7e6 kevent + 10
1 libdispatch.dylib 0x00007fff9075378a _dispatch_mgr_invoke + 923
2 libdispatch.dylib 0x00007fff9075231a _dispatch_mgr_thread + 54
Thread 2:: com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x00007fff9245a67a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff92459d71 mach_msg + 73
2 com.apple.CoreFoundation 0x00007fff978db50c __CFRunLoopServiceMachPort + 188
3 com.apple.CoreFoundation 0x00007fff978e3c74 __CFRunLoopRun + 1204
4 com.apple.CoreFoundation 0x00007fff978e3486 CFRunLoopRunSpecific + 230
5 com.apple.Foundation 0x00007fff955b2fd7 +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 335
6 com.apple.Foundation 0x00007fff955a772a -[NSThread main] + 68
7 com.apple.Foundation 0x00007fff955a76a2 __NSThread__main__ + 1575
8 libsystem_c.dylib 0x00007fff8c2188bf _pthread_start + 335
9 libsystem_c.dylib 0x00007fff8c21bb75 thread_start + 13
Thread 3:
0 libsystem_kernel.dylib 0x00007fff9245a67a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff92459d71 mach_msg + 73
2 com.apple.CoreFoundation 0x00007fff978db50c __CFRunLoopServiceMachPort + 188
3 com.apple.CoreFoundation 0x00007fff978e3c74 __CFRunLoopRun + 1204
4 com.apple.CoreFoundation 0x00007fff978e3486 CFRunLoopRunSpecific + 230
5 com.apple.DTDeviceKit 0x0000000111c9ab1f -[DTDKRemoteDeviceDataListener listenerThreadImplementation] + 298
6 com.apple.Foundation 0x00007fff955a772a -[NSThread main] + 68
7 com.apple.Foundation 0x00007fff955a76a2 __NSThread__main__ + 1575
8 libsystem_c.dylib 0x00007fff8c2188bf _pthread_start + 335
9 libsystem_c.dylib 0x00007fff8c21bb75 thread_start + 13
Thread 4:: com.apple.CFSocket.private
0 libsystem_kernel.dylib 0x00007fff9245bdf2 __select + 10
1 com.apple.CoreFoundation 0x00007fff9792cc8b __CFSocketManager + 1355
2 libsystem_c.dylib 0x00007fff8c2188bf _pthread_start + 335
3 libsystem_c.dylib 0x00007fff8c21bb75 thread_start + 13
Thread 5:
0 libsystem_kernel.dylib 0x00007fff9245b47a __accept + 10
1 com.unity3d.Unity4XC 0x0000000110fa02e8 +[UnityXcodePlugin pluginBg] + 201
2 com.apple.Foundation 0x00007fff955a772a -[NSThread main] + 68
3 com.apple.Foundation 0x00007fff955a76a2 __NSThread__main__ + 1575
4 libsystem_c.dylib 0x00007fff8c2188bf _pthread_start + 335
5 libsystem_c.dylib 0x00007fff8c21bb75 thread_start + 13
Thread 6:: DYMobileDeviceManager
0 libsystem_kernel.dylib 0x00007fff9245a67a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff92459d71 mach_msg + 73
2 com.apple.CoreFoundation 0x00007fff978db50c __CFRunLoopServiceMachPort + 188
3 com.apple.CoreFoundation 0x00007fff978e3c74 __CFRunLoopRun + 1204
4 com.apple.CoreFoundation 0x00007fff978e3486 CFRunLoopRunSpecific + 230
5 com.apple.Foundation 0x00007fff95558f7b -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 267
6 com.apple.Foundation 0x00007fff95558e67 -[NSRunLoop(NSRunLoop) run] + 62
7 com.apple.Foundation 0x00007fff955a772a -[NSThread main] + 68
8 com.apple.Foundation 0x00007fff955a76a2 __NSThread__main__ + 1575
9 libsystem_c.dylib 0x00007fff8c2188bf _pthread_start + 335
10 libsystem_c.dylib 0x00007fff8c21bb75 thread_start + 13
Thread 7 Crashed:: Dispatch queue: com.apple.dt.DVTCertificateUtilities.scan
0 com.apple.security 0x00007fff976b3d98 DERDecodeSeqContentInit + 4
1 com.apple.security 0x00007fff976ad0fa parseX501NameContent + 32
2 com.apple.security 0x00007fff976ad193 SecCertificateCopyCommonNames + 62
3 com.apple.security 0x00007fff976ac49a Security::KeychainCore::CertificateValues::copyFieldValues(__CFArray const*, __CFError**) + 282
4 com.apple.security 0x00007fff97678fb3 SecCertificateCopyValues + 44
5 com.apple.dt.DVTFoundation 0x000000010c93a2cc +[DVTCertificateUtilities certificateKindForCertificate:] + 62
6 com.apple.dt.DVTFoundation 0x000000010c93ad0f +[DVTCertificateUtilities _scanForSigningCertificates] + 492
7 com.apple.dt.DVTFoundation 0x000000010c8e32a0 __DVTDispatchAsync_block_invoke_0 + 16
8 libdispatch.dylib 0x00007fff90751a86 _dispatch_call_block_and_release + 18
9 libdispatch.dylib 0x00007fff907532d6 _dispatch_queue_drain + 264
10 libdispatch.dylib 0x00007fff90753132 _dispatch_queue_invoke + 54
11 libdispatch.dylib 0x00007fff9075292c _dispatch_worker_thread2 + 198
12 libsystem_c.dylib 0x00007fff8c21a3da _pthread_wqthread + 316
13 libsystem_c.dylib 0x00007fff8c21bb85 start_wqthread + 13
Thread 8:
0 libsystem_kernel.dylib 0x00007fff9245c192 __workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff8c21a594 _pthread_wqthread + 758
2 libsystem_c.dylib 0x00007fff8c21bb85 start_wqthread + 13
Thread 9:
0 libsystem_kernel.dylib 0x00007fff9245c192 __workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff8c21a594 _pthread_wqthread + 758
2 libsystem_c.dylib 0x00007fff8c21bb85 start_wqthread + 13
Thread 10:
0 libsystem_kernel.dylib 0x00007fff9245c192 __workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff8c21a594 _pthread_wqthread + 758
2 libsystem_c.dylib 0x00007fff8c21bb85 start_wqthread + 13
Thread 11:
0 libsystem_kernel.dylib 0x00007fff9245c192 __workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff8c21a594 _pthread_wqthread + 758
2 libsystem_c.dylib 0x00007fff8c21bb85 start_wqthread + 13
Thread 7 crashed with X86 Thread State (64-bit):
rax: 0x0000000401acd3c0 rbx: 0x00007fff976ad1b8 rcx: 0x0000000000000005 rdx: 0x00007fff976ad1b8
rdi: 0x00000000000000b8 rsi: 0x000000011522dba8 rbp: 0x000000011522db80 rsp: 0x000000011522db80
r8: 0x0000000000000001 r9: 0x00000000ffffffff r10: 0x000000000000009e r11: 0x0000000401acd3c0
r12: 0x0000000401acda40 r13: 0x000000000000000f r14: 0x0000000401acd3c0 r15: 0x0000000402e60be0
rip: 0x00007fff976b3d98 rfl: 0x0000000000010206 cr2: 0x00000000000000b8
Logical CPU: 6
Have you tried the obvious - restarting Xcode / rebooting?
You may have to go one step further than deleting your profiles. Try revoking existing profiles and resetting your keychain. See also: https://discussions.apple.com/thread/3752773?start=0&tstart=0
This may sound silly, but have you tried disconnecting any iOS devices you have attached to your mac?
I was experiencing the same problem, and tried deleting profiles and certs, restarting, etc, but no dice. When i unplugged my new iPhone 5 it worked fine. I probably have to clean up the certs on my iPhone as well.
I have a very specific web page that causes webview to crash with the Garnage Collector ON (does not crash when OFF).
Easy to reproduce: create a document base application, drop a webview, and have the following line (button perhaps).
- (void)connectSearch:(id)sender
{
[[webView mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:#"http://apple.com"]]];
}
I guess this scenario is only valid while Apple advertises their new iPad. At the bottom of the page there is two video you can watch. Click on the one on the right. When it is playing, click on the Close button (link) top left - which sends #SwapViewPreviousSelection - and that's it, it crashes.
I'm just learning about the garbage collector but I suspect something is collected that should not.
Any idea what can prevent the crash, other than turning off the garbage collector?
Thank you.
Here is what I get:
Identifier: com.yourcompany.wb
Version: 1.0 (1)
Code Type: X86-64 (Native)
Parent Process: launchd [163]
Date/Time: 2010-02-15 12:26:31.069 -0500
OS Version: Mac OS X 10.6.2 (10C540)
Report Version: 6
Interval Since Last Report: 432447 sec
Crashes Since Last Report: 7
Per-App Interval Since Last Report: 2938 sec
Per-App Crashes Since Last Report: 5
Anonymous UUID: CC123A77-1407-444A-9081-8A2B7C15C2B6
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Application Specific Information:
objc[70635]: garbage collection is ON
Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 com.apple.CoreFoundation 0x00007fff82e0a788 CFRetain + 200
1 com.apple.QuartzCore 0x00007fff81677a98 -[CALayer setSublayers:] + 486
2 com.apple.WebCore 0x00007fff87c792a1 WebCore::GraphicsLayerCA::updateSublayerList() + 433
3 com.apple.WebCore 0x00007fff87c7ebd8 WebCore::GraphicsLayerCA::commitLayerChanges() + 840
4 com.apple.WebCore 0x00007fff87c7ed05 WebCore::GraphicsLayerCA::recursiveCommitChanges() + 21
5 com.apple.WebCore 0x00007fff87c7ed31 WebCore::GraphicsLayerCA::recursiveCommitChanges() + 65
6 com.apple.WebCore 0x00007fff87705296 WebCore::FrameView::paintContents(WebCore::GraphicsContext*, WebCore::IntRect const&) + 390
7 com.apple.WebKit 0x00007fff81b3d205 -[WebFrame(WebInternal) _drawRect:contentsOnly:] + 149
8 com.apple.WebKit 0x00007fff81b3ce77 -[WebHTMLView drawSingleRect:] + 455
9 com.apple.WebKit 0x00007fff81b3cc16 -[WebHTMLView drawRect:] + 566
10 com.apple.AppKit 0x00007fff8597b05e -[NSView _drawRect:clip:] + 3566
11 com.apple.AppKit 0x00007fff85978834 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 2112
12 com.apple.WebKit 0x00007fff81b3dd6b -[WebHTMLView(WebPrivate) _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 299
13 com.apple.AppKit 0x00007fff859791bf -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 4555
14 com.apple.AppKit 0x00007fff859791bf -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 4555
15 com.apple.AppKit 0x00007fff859791bf -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 4555
16 com.apple.AppKit 0x00007fff859791bf -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 4555
17 com.apple.AppKit 0x00007fff859791bf -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 4555
18 com.apple.AppKit 0x00007fff859791bf -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 4555
19 com.apple.AppKit 0x00007fff85977e17 -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 254
20 com.apple.AppKit 0x00007fff859746bf -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 2683
21 com.apple.AppKit 0x00007fff858edf37 -[NSView displayIfNeeded] + 969
22 com.apple.AppKit 0x00007fff858e8dde _handleWindowNeedsDisplay + 678
23 com.apple.CoreFoundation 0x00007fff82e74427 __CFRunLoopDoObservers + 519
24 com.apple.CoreFoundation 0x00007fff82e502d4 __CFRunLoopRun + 468
25 com.apple.CoreFoundation 0x00007fff82e4fc2f CFRunLoopRunSpecific + 575
26 com.apple.HIToolbox 0x00007fff88192a4e RunCurrentEventLoopInMode + 333
27 com.apple.HIToolbox 0x00007fff881927b1 ReceiveNextEventCommon + 148
28 com.apple.HIToolbox 0x00007fff8819270c BlockUntilNextEventMatchingListInMode + 59
29 com.apple.AppKit 0x00007fff858be1f2 _DPSNextEvent + 708
30 com.apple.AppKit 0x00007fff858bdb41 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 155
31 com.apple.AppKit 0x00007fff85883747 -[NSApplication run] + 395
32 com.apple.AppKit 0x00007fff8587c468 NSApplicationMain + 364
33 com.yourcompany.wb 0x0000000100001c86 main + 33 (main.m:14)
34 com.yourcompany.wb 0x0000000100001a44 start + 52
Thread 1: Dispatch queue: com.apple.libdispatch-manager
0 libSystem.B.dylib 0x00007fff8874bbba kevent + 10
1 libSystem.B.dylib 0x00007fff8874da85 _dispatch_mgr_invoke + 154
2 libSystem.B.dylib 0x00007fff8874d75c _dispatch_queue_invoke + 185
3 libSystem.B.dylib 0x00007fff8874d286 _dispatch_worker_thread2 + 244
4 libSystem.B.dylib 0x00007fff8874cbb8 _pthread_wqthread + 353
5 libSystem.B.dylib 0x00007fff8874ca55 start_wqthread + 13
Thread 2: JavaScriptCore: FastMalloc scavenger
0 libSystem.B.dylib 0x00007fff8876d9ee __semwait_signal + 10
1 libSystem.B.dylib 0x00007fff887717f1 _pthread_cond_wait + 1286
2 com.apple.JavaScriptCore 0x00007fff80ae62b3 WTF::TCMalloc_PageHeap::scavengerThread() + 515
3 com.apple.JavaScriptCore 0x00007fff80ae62f9 WTF::TCMalloc_PageHeap::runScavengerThread(void*) + 9
4 libSystem.B.dylib 0x00007fff8876bf8e _pthread_start + 331
5 libSystem.B.dylib 0x00007fff8876be41 thread_start + 13
Thread 3:
0 libSystem.B.dylib 0x00007fff8874c9da __workq_kernreturn + 10
1 libSystem.B.dylib 0x00007fff8874cdec _pthread_wqthread + 917
2 libSystem.B.dylib 0x00007fff8874ca55 start_wqthread + 13
Thread 4:
0 libSystem.B.dylib 0x00007fff88732e3a mach_msg_trap + 10
1 libSystem.B.dylib 0x00007fff887334ad mach_msg + 59
2 com.apple.CoreFoundation 0x00007fff82e507a2 __CFRunLoopRun + 1698
3 com.apple.CoreFoundation 0x00007fff82e4fc2f CFRunLoopRunSpecific + 575
4 com.apple.Foundation 0x00007fff800de4cf +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 297
5 com.apple.Foundation 0x00007fff8005ee99 __NSThread__main__ + 1429
6 libSystem.B.dylib 0x00007fff8876bf8e _pthread_start + 331
7 libSystem.B.dylib 0x00007fff8876be41 thread_start + 13
Thread 5:
0 libSystem.B.dylib 0x00007fff887769e2 select$DARWIN_EXTSN + 10
1 com.apple.CoreFoundation 0x00007fff82e72242 __CFSocketManager + 818
2 libSystem.B.dylib 0x00007fff8876bf8e _pthread_start + 331
3 libSystem.B.dylib 0x00007fff8876be41 thread_start + 13
Thread 6:
0 libSystem.B.dylib 0x00007fff8874c9da __workq_kernreturn + 10
1 libSystem.B.dylib 0x00007fff8874cdec _pthread_wqthread + 917
2 libSystem.B.dylib 0x00007fff8874ca55 start_wqthread + 13
Thread 7:
0 libSystem.B.dylib 0x00007fff8873d426 read + 10
1 com.apple.CoreFoundation 0x00007fff82eb1ae0 __CFSocketRead + 544
2 com.apple.CFNetwork 0x00007fff88bba667 __CFSocketReadWithError(__CFSocket*, unsigned char*, long, CFStreamError*) + 35
3 com.apple.CFNetwork 0x00007fff88bba397 SocketStream::read(__CFReadStream*, unsigned char*, long, CFStreamError*, unsigned char*) + 699
4 com.apple.CoreFoundation 0x00007fff82e3ffac CFReadStreamRead + 540
5 com.apple.CFNetwork 0x00007fff88bd3dc1 HTTPReadFilter::doPlainRead(unsigned char*, long, CFStreamError*, unsigned char*) + 307
6 com.apple.CFNetwork 0x00007fff88bd3c59 HTTPReadFilter::streamRead(__CFReadStream*, unsigned char*, long, CFStreamError*, unsigned char*) + 469
7 com.apple.CoreFoundation 0x00007fff82e3ffac CFReadStreamRead + 540
8 com.apple.CFNetwork 0x00007fff88bd39e6 HTTPNetStreamInfo::streamRead(__CFReadStream*, unsigned char*, long, CFStreamError*, unsigned char*) + 562
9 com.apple.CoreFoundation 0x00007fff82e3ffac CFReadStreamRead + 540
10 com.apple.CFNetwork 0x00007fff88c23892 HTTPReadStream::streamRead(__CFReadStream*, unsigned char*, long, CFStreamError*, unsigned char*) + 82
11 com.apple.CoreFoundation 0x00007fff82e3ffac CFReadStreamRead + 540
12 com.apple.MediaToolbox 0x00007fff86b59a6f FigCFHTTPReadResponse + 855
13 com.apple.CoreFoundation 0x00007fff82eb1503 _signalEventSync + 115
14 com.apple.CoreFoundation 0x00007fff82eb1474 _cfstream_solo_signalEventSync + 116
15 com.apple.CFNetwork 0x00007fff88c228fd HTTPReadStream::streamEvent(unsigned long) + 163
16 com.apple.CoreFoundation 0x00007fff82eb1503 _signalEventSync + 115
17 com.apple.CoreFoundation 0x00007fff82eb1474 _cfstream_solo_signalEventSync + 116
18 com.apple.CoreFoundation 0x00007fff82e52271 __CFRunLoopDoSources0 + 1361
19 com.apple.CoreFoundation 0x00007fff82e50469 __CFRunLoopRun + 873
20 com.apple.CoreFoundation 0x00007fff82e4fc2f CFRunLoopRunSpecific + 575
21 com.apple.CoreFoundation 0x00007fff82e4f9b6 CFRunLoopRun + 70
22 com.apple.CoreMedia 0x00007fff803d4702 FigThreadGlobalNetworkBufferingRunloop + 119
23 libSystem.B.dylib 0x00007fff8876bf8e _pthread_start + 331
24 libSystem.B.dylib 0x00007fff8876be41 thread_start + 13
Thread 8:
0 libSystem.B.dylib 0x00007fff8876d9ee __semwait_signal + 10
1 libSystem.B.dylib 0x00007fff887717f1 _pthread_cond_wait + 1286
2 com.apple.CoreMedia 0x00007fff803d5947 WaitOnCondition + 14
3 com.apple.CoreMedia 0x00007fff803d5b13 FigSemaphoreWaitRelative + 167
4 com.apple.MediaToolbox 0x00007fff86aee8c7 FigAIORequestThread + 398
5 libSystem.B.dylib 0x00007fff8876bf8e _pthread_start + 331
6 libSystem.B.dylib 0x00007fff8876be41 thread_start + 13
Thread 9:
0 libSystem.B.dylib 0x00007fff8874c9da __workq_kernreturn + 10
1 libSystem.B.dylib 0x00007fff8874cdec _pthread_wqthread + 917
2 libSystem.B.dylib 0x00007fff8874ca55 start_wqthread + 13
Thread 10:
0 libSystem.B.dylib 0x00007fff88732e3a mach_msg_trap + 10
1 libSystem.B.dylib 0x00007fff887334ad mach_msg + 59
2 com.apple.CoreFoundation 0x00007fff82e507a2 __CFRunLoopRun + 1698
3 com.apple.CoreFoundation 0x00007fff82e4fc2f CFRunLoopRunSpecific + 575
4 com.apple.CoreFoundation 0x00007fff82e4f9b6 CFRunLoopRun + 70
5 com.apple.QTKit 0x00007fff830d0c49 QTFigVisualContextImageProviderWorkThread + 342
6 libSystem.B.dylib 0x00007fff8876bf8e _pthread_start + 331
7 libSystem.B.dylib 0x00007fff8876be41 thread_start + 13
Thread 11:
0 libSystem.B.dylib 0x00007fff88732e3a mach_msg_trap + 10
1 libSystem.B.dylib 0x00007fff887334ad mach_msg + 59
2 com.apple.CoreFoundation 0x00007fff82e507a2 __CFRunLoopRun + 1698
3 com.apple.CoreFoundation 0x00007fff82e4fc2f CFRunLoopRunSpecific + 575
4 ....audio.toolbox.AudioToolbox 0x00007fff8416267a GenericRunLoopThread::RunLoop() + 42
5 ....audio.toolbox.AudioToolbox 0x00007fff841629f0 GenericRunLoopThread::Run() + 140
6 ....audio.toolbox.AudioToolbox 0x00007fff8412ded5 CAPThread::Entry(CAPThread*) + 67
7 libSystem.B.dylib 0x00007fff8876bf8e _pthread_start + 331
8 libSystem.B.dylib 0x00007fff8876be41 thread_start + 13
Thread 12:
0 libSystem.B.dylib 0x00007fff8876d9ee __semwait_signal + 10
1 libSystem.B.dylib 0x00007fff887717f1 _pthread_cond_wait + 1286
2 com.apple.CoreMedia 0x00007fff803d5947 WaitOnCondition + 14
3 com.apple.CoreMedia 0x00007fff803d5b13 FigSemaphoreWaitRelative + 167
4 com.apple.MediaToolbox 0x00007fff86afd4dd faq_EnqueueSourceDataThread + 44
5 libSystem.B.dylib 0x00007fff8876bf8e _pthread_start + 331
6 libSystem.B.dylib 0x00007fff8876be41 thread_start + 13
Thread 13:
0 libSystem.B.dylib 0x00007fff8876d9ee __semwait_signal + 10
1 libSystem.B.dylib 0x00007fff887717f1 _pthread_cond_wait + 1286
2 com.apple.CoreMedia 0x00007fff803d5947 WaitOnCondition + 14
3 com.apple.CoreMedia 0x00007fff803d5b13 FigSemaphoreWaitRelative + 167
4 com.apple.MediaToolbox 0x00007fff86b9b03b activitySchedulerOnThread + 69
5 libSystem.B.dylib 0x00007fff8876bf8e _pthread_start + 331
6 libSystem.B.dylib 0x00007fff8876be41 thread_start + 13
Thread 14:
0 libSystem.B.dylib 0x00007fff8876d9ee __semwait_signal + 10
1 libSystem.B.dylib 0x00007fff887717f1 _pthread_cond_wait + 1286
2 com.apple.CoreMedia 0x00007fff803d5947 WaitOnCondition + 14
3 com.apple.CoreMedia 0x00007fff803d5b13 FigSemaphoreWaitRelative + 167
4 com.apple.MediaToolbox 0x00007fff86b26d49 audioMentorThread + 6000
5 libSystem.B.dylib 0x00007fff8876bf8e _pthread_start + 331
6 libSystem.B.dylib 0x00007fff8876be41 thread_start + 13
Thread 15:
0 libSystem.B.dylib 0x00007fff8876d9ee __semwait_signal + 10
1 libSystem.B.dylib 0x00007fff887717f1 _pthread_cond_wait + 1286
2 com.apple.CoreMedia 0x00007fff803d5947 WaitOnCondition + 14
3 com.apple.CoreMedia 0x00007fff803d5b13 FigSemaphoreWaitRelative + 167
4 com.apple.MediaToolbox 0x00007fff86b3003a videoMentorThread + 5700
5 libSystem.B.dylib 0x00007fff8876bf8e _pthread_start + 331
6 libSystem.B.dylib 0x00007fff8876be41 thread_start + 13
Thread 16:
0 libSystem.B.dylib 0x00007fff88732e3a mach_msg_trap + 10
1 libSystem.B.dylib 0x00007fff887334ad mach_msg + 59
2 com.apple.CoreFoundation 0x00007fff82e507a2 __CFRunLoopRun + 1698
3 com.apple.CoreFoundation 0x00007fff82e4fc2f CFRunLoopRunSpecific + 575
4 com.apple.CoreFoundation 0x00007fff82e4f9b6 CFRunLoopRun + 70
5 com.apple.QTKit 0x00007fff830cfad4 QTCALayerRendererPendingQWorkLoop + 534
6 libSystem.B.dylib 0x00007fff8876bf8e _pthread_start + 331
7 libSystem.B.dylib 0x00007fff8876be41 thread_start + 13
Thread 17:
0 libSystem.B.dylib 0x00007fff88732e76 semaphore_wait_trap + 10
1 com.apple.VideoToolbox 0x00007fff80487f25 JVTLib_100988 + 11
2 com.apple.VideoToolbox 0x00007fff804d61d8 JVTLib_101021(void*) + 60
3 com.apple.VideoToolbox 0x00007fff804882f4 JVTLib_100971 + 552
4 libSystem.B.dylib 0x00007fff8876bf8e _pthread_start + 331
5 libSystem.B.dylib 0x00007fff8876be41 thread_start + 13
Thread 18:
0 libSystem.B.dylib 0x00007fff88732e76 semaphore_wait_trap + 10
1 com.apple.VideoToolbox 0x00007fff80487f25 JVTLib_100988 + 11
2 com.apple.VideoToolbox 0x00007fff804d61d8 JVTLib_101021(void*) + 60
3 com.apple.VideoToolbox 0x00007fff804882f4 JVTLib_100971 + 552
4 libSystem.B.dylib 0x00007fff8876bf8e _pthread_start + 331
5 libSystem.B.dylib 0x00007fff8876be41 thread_start + 13
Thread 19:
0 libSystem.B.dylib 0x00007fff88732e9a semaphore_timedwait_signal_trap + 10
1 libSystem.B.dylib 0x00007fff887716e2 _pthread_cond_wait + 1015
2 com.apple.CoreVideo 0x00007fff83d2988c CVDisplayLink::waitUntil(unsigned long long) + 252
3 com.apple.CoreVideo 0x00007fff83d28d91 CVDisplayLink::runIOThread() + 619
4 com.apple.CoreVideo 0x00007fff83d28aeb startIOThread(void*) + 139
5 libSystem.B.dylib 0x00007fff8876bf8e _pthread_start + 331
6 libSystem.B.dylib 0x00007fff8876be41 thread_start + 13
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000000000000 rcx: 0x0000000000000000 rdx: 0x0000000000000018
rdi: 0x0000000000000000 rsi: 0x000000020070f7d8 rbp: 0x00007fff5fbfbcf0 rsp: 0x00007fff5fbfbce0
r8: 0x00000001010e48d0 r9: 0x000000000000f740 r10: 0x00000001010e42f0 r11: 0x00007fff87d9ca50
r12: 0x0000000101238600 r13: 0x0000000000000000 r14: 0x000000020070f7c0 r15: 0x0000000000000000
rip: 0x00007fff82e0a788 rfl: 0x0000000000000246 cr2: 0x00007fff702c13c8
The stack trace in your question is evidencing a known (and fixed) bug in WebKit
https://bugs.webkit.org/show_bug.cgi?id=31429