Crash Emacs on M1 mac from Electron - macos

On 'Electron', when I try to exec Emacs
on new M1 mac by using child_process.exec('Emacs'),
the process is crashed and the report attached below is given.
On the old mac, it works.
The code is as follows:
exec(`/Applications/Emacs.app/Contents/MacOS/Emacs "{$ExecPathEscape(dirPath)}"' ...
How can I fix it?
'Emacs' was installed by 'brew install cask emacs'
and
'Electron' was installed by 'npm install electron'.
> node --version
v16.11.0
> emacs --version
GNU Emacs 27.2
Process: Emacs-x86_64-10_14 [28673]
Path: /Applications/Emacs.app/Contents/MacOS/Emacs-x86_64-10_14
Identifier: org.gnu.Emacs
Version: Version 27.2 (9.0)
Code Type: X86-64 (Translated)
Parent Process: org_viewer_for_electron [28667]
Responsible: org_viewer_for_electron [28667]
User ID: 501
Date/Time: 2021-10-16 14:52:14.719 +0900
OS Version: macOS 11.6 (20G165)
Report Version: 12
Anonymous UUID: 85EA4D90-AA61-E019-08A5-82B0FB446187
Sleep/Wake UUID: E05F8F97-4CFE-4F3E-A8EB-88E278C78BE3
Time Awake Since Boot: 22000 seconds
Time Since Wake: 210 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_INSTRUCTION (SIGABRT)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 ??? 0x00007ffe946828f4 ???
1 libsystem_kernel.dylib 0x00007fff2042392e __pthread_kill + 10
2 libsystem_c.dylib 0x00007fff20336bd5 raise + 26
3 Emacs-x86_64-10_14 0x00000001023db6d9 terminate_due_to_signal + 153
4 Emacs-x86_64-10_14 0x00000001023dc01b emacs_abort + 15
5 Emacs-x86_64-10_14 0x00000001023a3880 ns_term_shutdown + 80
6 Emacs-x86_64-10_14 0x00000001022935d4 shut_down_emacs + 340
7 Emacs-x86_64-10_14 0x00000001023db6a6 terminate_due_to_signal + 102
8 Emacs-x86_64-10_14 0x00000001022b3e8e handle_fatal_signal + 14
9 Emacs-x86_64-10_14 0x00000001022b3f11 deliver_thread_signal + 129
10 Emacs-x86_64-10_14 0x00000001022b2969 deliver_fatal_thread_signal + 9
11 libsystem_platform.dylib 0x00007fff20497d7d _sigtramp + 29
12 ??? 000000000000000000 0 + 0
13 Emacs-x86_64-10_14 0x00000001023785c9 decode_time_components + 633
14 Emacs-x86_64-10_14 0x00000001023790df decode_lisp_time + 159
15 Emacs-x86_64-10_14 0x000000010237a240 Ftime_convert + 32
16 Emacs-x86_64-10_14 0x0000000102320331 funcall_subr + 257
17 Emacs-x86_64-10_14 0x000000010231f91b Ffuncall + 843
18 Emacs-x86_64-10_14 0x0000000102362c57 exec_byte_code + 1815
19 Emacs-x86_64-10_14 0x000000010231f8b9 Ffuncall + 745
20 Emacs-x86_64-10_14 0x0000000102362c57 exec_byte_code + 1815
21 Emacs-x86_64-10_14 0x000000010231f8b9 Ffuncall + 745
22 Emacs-x86_64-10_14 0x0000000102362c57 exec_byte_code + 1815
23 Emacs-x86_64-10_14 0x000000010231f8b9 Ffuncall + 745
24 Emacs-x86_64-10_14 0x0000000102362c57 exec_byte_code + 1815
25 Emacs-x86_64-10_14 0x000000010231f8b9 Ffuncall + 745
26 Emacs-x86_64-10_14 0x0000000102362c57 exec_byte_code + 1815
27 Emacs-x86_64-10_14 0x000000010231f8b9 Ffuncall + 745
28 Emacs-x86_64-10_14 0x0000000102362c57 exec_byte_code + 1815
29 Emacs-x86_64-10_14 0x000000010231f8b9 Ffuncall + 745
30 Emacs-x86_64-10_14 0x0000000102362c57 exec_byte_code + 1815
31 Emacs-x86_64-10_14 0x000000010231f8b9 Ffuncall + 745
32 Emacs-x86_64-10_14 0x000000010231ff8c call1 + 44
33 Emacs-x86_64-10_14 0x000000010232b4c8 mapcar1 + 88
34 Emacs-x86_64-10_14 0x000000010232b90b Fmapc + 75
35 Emacs-x86_64-10_14 0x0000000102320331 funcall_subr + 257
36 Emacs-x86_64-10_14 0x000000010231f91b Ffuncall + 843
37 Emacs-x86_64-10_14 0x0000000102362c57 exec_byte_code + 1815
38 Emacs-x86_64-10_14 0x000000010231f8b9 Ffuncall + 745
39 Emacs-x86_64-10_14 0x0000000102362c57 exec_byte_code + 1815
40 Emacs-x86_64-10_14 0x000000010231f164 apply_lambda + 356
41 Emacs-x86_64-10_14 0x000000010231b69f eval_sub + 783
42 Emacs-x86_64-10_14 0x000000010231ee9a Feval + 106
43 Emacs-x86_64-10_14 0x000000010231df77 internal_condition_case + 263
44 Emacs-x86_64-10_14 0x00000001022a772d top_level_1 + 45
45 Emacs-x86_64-10_14 0x000000010231d79b internal_catch + 267
46 Emacs-x86_64-10_14 0x00000001023dba96 command_loop.cold.1 + 54
47 Emacs-x86_64-10_14 0x0000000102296633 command_loop + 131
48 Emacs-x86_64-10_14 0x0000000102296563 recursive_edit_1 + 115
49 Emacs-x86_64-10_14 0x00000001022967bb Frecursive_edit + 347
50 Emacs-x86_64-10_14 0x000000010229534c main + 7436
51 libdyld.dylib 0x00007fff2046df3d start + 1
Thread 1:: com.apple.rosetta.exceptionserver
0 runtime 0x00007ffdfff96a28 0x7ffdfff92000 + 18984
1 runtime 0x00007ffdfff9beec 0x7ffdfff92000 + 40684
2 runtime 0x00007ffdfff9d2c0 0x7ffdfff92000 + 45760
Thread 2:
0 runtime 0x00007ffdfffb47c8 0x7ffdfff92000 + 141256
Thread 3:
0 runtime 0x00007ffdfffb47c8 0x7ffdfff92000 + 141256
Thread 4:
0 runtime 0x00007ffdfffb47c8 0x7ffdfff92000 + 141256
Thread 5:
0 runtime 0x00007ffdfffb47c8 0x7ffdfff92000 + 141256
Thread 6:
0 ??? 0x00007ffe946828f4 ???
1 libsystem_kernel.dylib 0x00007fff20425656 __select + 10
2 com.apple.Foundation 0x00007fff211fd437 __NSThread__start__ + 1068
3 libsystem_pthread.dylib 0x00007fff204528fc _pthread_start + 224
4 libsystem_pthread.dylib 0x00007fff2044e443 thread_start + 15
Thread 7:: com.apple.NSEventThread
0 ??? 0x00007ffe946828f4 ???
1 libsystem_kernel.dylib 0x00007fff2041d2ba mach_msg_trap + 10
2 com.apple.CoreFoundation 0x00007fff2054b215 __CFRunLoopServiceMachPort + 316
3 com.apple.CoreFoundation 0x00007fff205498cb __CFRunLoopRun + 1332
4 com.apple.CoreFoundation 0x00007fff20548cd0 CFRunLoopRunSpecific + 567
5 com.apple.AppKit 0x00007fff22e0223a _NSEventThread + 124
6 libsystem_pthread.dylib 0x00007fff204528fc _pthread_start + 224
7 libsystem_pthread.dylib 0x00007fff2044e443 thread_start + 15
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000202d57e00 rcx: 0x0000000000000000 rdx: 0x0000000000000000
rdi: 0x0000000000000004 rsi: 0x0000000000000006 rbp: 0x0000000000000003 rsp: 0x00000000000001ad
r8: 0x0000000000000006 r9: 0x0000000000000003 r10: 0x0000000202d57e00 r11: 0x00007fff20336bbb
r12: 0x0000000000000103 r13: 0x0000000000000002 r14: 0x0000000000000006 r15: 0x0000000000000016
rip: <unavailable> rfl: 0x0000000000000283

We've solved it by ourselves.
When we directly symlink the arm64 of Emacs, bin, and libexe,
it works.
> pwd
/Applications/Emacs.app/Contents/MacOS
> rm bin
> ln -s bin-arm64-11_2/ bin
> rm libexec
> ln -s lib-arm64-11_2/ libexec
> mv Emacs Emacs-orig
> ln -s Emacs-arm64-11_2 Emacs
In the original Emacs script provided by Homebrew,
the checking of architecture was done by
> uname -m
arm64
and returns the appropriate answer,
but the executed version was x86_64.
We can't propose the revised solution of Emacs, but it works.

Related

Xcode iOS crash explain

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.

XQuartz quit unexpectedly

I very new to gulp watch and also not familiar with XQuartz. Everytime i try to run 'x gulp watch' i get this popup msg:
and if i click on Reopen, nothing happens.
This is the Problem detail
Process: X11.bin [7121]
Path: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11.bin
Identifier: org.macosforge.xquartz.X11
Version: 2.7.11 (2.7.112)
Code Type: X86-64 (Native)
Parent Process: Xquartz [7120]
Responsible: iTerm2 [4535]
User ID: 501
Date/Time: 2017-01-09 18:08:39.234 -0500
OS Version: Mac OS X 10.11.6 (15G1212)
Report Version: 11
Anonymous UUID: 39B39E1B-3565-F18B-9A59-0113DE44998A
Time Awake Since Boot: 2400 seconds
System Integrity Protection: enabled
Crashed Thread: 6
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
X.Org X Server 1.18.4 Build Date: 20161025
Unrecognized option: gulp
abort() called
Thread 0:: Dispatch queue: com.apple.main-thread
0 com.apple.CoreFoundation 0x00007fff81537580 -[__NSSetM count] + 0
1 com.apple.Foundation 0x00007fff8a71b17d -[NSKeyValueUnnestedProperty _initWithContainerClass:key:propertiesBeingInitialized:] + 180
2 com.apple.Foundation 0x00007fff8a71b02a NSKeyValuePropertyForIsaAndKeyPathInner + 288
3 com.apple.Foundation 0x00007fff8a71acc4 NSKeyValuePropertyForIsaAndKeyPath + 174
4 com.apple.Foundation 0x00007fff8a71aa7d -[NSObject(NSKeyValueObserverRegistration) addObserver:forKeyPath:options:context:] + 75
5 com.apple.AppKit 0x00007fff82da9d99 -[_NSModelObservingTracker analyzeKeyPath:registerOrUnregister:] + 382
6 com.apple.AppKit 0x00007fff82da9be1 -[NSController addObserver:forKeyPath:options:context:] + 64
7 org.andymatuschak.Sparkle 0x000000010024b4b3 -[SUUpdater registerAsObserver] + 159
8 org.andymatuschak.Sparkle 0x000000010024a7b1 -[SUUpdater initForBundle:] + 103
9 org.andymatuschak.Sparkle 0x000000010024a733 +[SUUpdater updaterForBundle:] + 152
10 X11.bin 0x000000010000a081 -[X11Controller setup_sparkle] + 186
11 X11.bin 0x0000000100008791 X11ApplicationMain + 1463
12 X11.bin 0x000000010001101e server_main + 185
13 X11.bin 0x0000000100001b0b do_start_x11_server + 445
14 X11.bin 0x00000001000028a2 _Xstart_x11_server + 125
15 X11.bin 0x0000000100002a06 mach_startup_server + 80
16 libsystem_kernel.dylib 0x00007fff83e75ce0 mach_msg_server + 504
17 X11.bin 0x00000001000020fd main + 1476
18 X11.bin 0x0000000100001518 start + 52
Thread 1:
0 libsystem_kernel.dylib 0x00007fff83e7c5e2 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff86174578 _pthread_wqthread + 1283
2 libsystem_pthread.dylib 0x00007fff86172341 start_wqthread + 13
Thread 2:
0 libsystem_kernel.dylib 0x00007fff83e7c5e2 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff86174578 _pthread_wqthread + 1283
2 libsystem_pthread.dylib 0x00007fff86172341 start_wqthread + 13
Thread 3:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff83e7cefa kevent_qos + 10
1 libdispatch.dylib 0x00007fff821bc165 _dispatch_mgr_invoke + 216
2 libdispatch.dylib 0x00007fff821bbdcd _dispatch_mgr_thread + 52
Thread 4:
0 libsystem_kernel.dylib 0x00007fff83e7c5e2 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff86174578 _pthread_wqthread + 1283
2 libsystem_pthread.dylib 0x00007fff86172341 start_wqthread + 13
Thread 5:: Dispatch queue: com.apple.asl-redirect
0 dyld 0x00007fff6e75d3ea dyld::findMappedRange(unsigned long) + 40
1 dyld 0x00007fff6e76660b _dyld_get_image_slide + 53
2 libsystem_trace.dylib 0x00007fff8c47d6e3 _os_trace_addr_in_text_segment + 193
3 libsystem_trace.dylib 0x00007fff8c47f090 _os_log_shim_internal + 64
4 libsystem_asl.dylib 0x00007fff878e90cf asl_log + 324
5 libsystem_asl.dylib 0x00007fff878eda29 read_from_source + 243
6 libdispatch.dylib 0x00007fff821b640b _dispatch_client_callout + 8
7 libdispatch.dylib 0x00007fff821c6675 _dispatch_source_latch_and_call + 2235
8 libdispatch.dylib 0x00007fff821baa83 _dispatch_source_invoke + 983
9 libdispatch.dylib 0x00007fff821bb200 _dispatch_queue_drain + 1207
10 libdispatch.dylib 0x00007fff821c1707 _dispatch_queue_invoke + 549
11 libdispatch.dylib 0x00007fff821b9d53 _dispatch_root_queue_drain + 538
12 libdispatch.dylib 0x00007fff821b9b00 _dispatch_worker_thread3 + 91
13 libsystem_pthread.dylib 0x00007fff861744de _pthread_wqthread + 1129
14 libsystem_pthread.dylib 0x00007fff86172341 start_wqthread + 13
Thread 6 Crashed:
0 libsystem_kernel.dylib 0x00007fff83e7bf06 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff861774ec pthread_kill + 90
2 libsystem_c.dylib 0x00007fff8c9306df abort + 129
3 X11.bin 0x000000010012e8a3 OsAbort + 9
4 X11.bin 0x000000010000dfc3 AbortDDX + 23
5 X11.bin 0x0000000100134b36 AbortServer + 34
6 X11.bin 0x00000001001334fc FatalError + 315
7 X11.bin 0x000000010012e367 ProcessCommandLine + 4294
8 X11.bin 0x00000001000dbf75 dix_main + 97
9 X11.bin 0x0000000100010f5e server_thread + 38
10 libsystem_pthread.dylib 0x00007fff8617499d _pthread_body + 131
11 libsystem_pthread.dylib 0x00007fff8617491a _pthread_start + 168
12 libsystem_pthread.dylib 0x00007fff86172351 thread_start + 13
Thread 7:
0 libsystem_kernel.dylib 0x00007fff83e7c83a close + 10
1 libxcb.1.dylib 0x00000001003da24e xcb_connect_to_display_with_auth_info + 633
2 libX11.6.dylib 0x00000001002c25d5 _XConnectXCB + 200
3 libX11.6.dylib 0x00000001002b40ad XOpenDisplay + 187
4 X11.bin 0x00000001000239e1 xpbproxy_run + 191
5 X11.bin 0x0000000100008819 xpbproxy_x_thread + 9
6 libsystem_pthread.dylib 0x00007fff8617499d _pthread_body + 131
7 libsystem_pthread.dylib 0x00007fff8617491a _pthread_start + 168
8 libsystem_pthread.dylib 0x00007fff86172351 thread_start + 13
Thread 6 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000000000006 rcx: 0x000070000029fc38 rdx: 0x0000000000000000
rdi: 0x0000000000007207 rsi: 0x0000000000000006 rbp: 0x000070000029fc60 rsp: 0x000070000029fc38
r8: 0x0a58444474726f62 r9: 0x000000010016abbe r10: 0x0000000008000000 r11: 0x0000000000000206
r12: 0x0000000000000001 r13: 0x00000001005fb400 r14: 0x00007000002a0000 r15: 0x0000000000000003
rip: 0x00007fff83e7bf06 rfl: 0x0000000000000206 cr2: 0x00007fff72dcd008
Logical CPU: 0
Error Code: 0x02000148
Trap Number: 133
Any help is greatly appreciated.
Remove the leading x from the command line. It doesn't belong there -- gulp isn't an X11 application, and even if it were, you wouldn't need to include x in the command to run it under XQuartz.

Unity3d OSX build crash when usage memory over 700mb

I build my Unity3d application for OSX.
But after sometime application crash when memory usage over 700 mb.
It exist limit memory usage for OSX applications? Can I receive memory warnings for OSX applications?
Crash log:
Crashed Thread: 20
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
abort() called
*** error for object 0x11667b00: double free
Thread 0:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x961329e6 semaphore_signal_trap + 10
1 com.apple.CoreServices.CarbonCore 0x91a2d072 MPSignalSemaphore + 118
2 com.iphonesoft3g.texaspokermumac 0x00670303 PlatformSemaphore::Signal() + 19
....
Thread 20 crashed with X86 Thread State (32-bit):
eax: 0x00000000 ebx: 0x01341208 ecx: 0xb09c1e8c edx: 0x00000000
edi: 0xb09c3000 esi: 0x00000006 ebp: 0xb09c1ea8 esp: 0xb09c1e8c
ss: 0x00000023 efl: 0x00000206 eip: 0x9613869a cs: 0x0000000b
ds: 0x00000023 es: 0x00000023 fs: 0x00000000 gs: 0x0000000f
cr2: 0xa0fb51b4
UPDATED:
Thread 19:
0 libcrypto.0.9.7.dylib 0x97449118 bn_sqr_comba8 + 271
1 libcrypto.0.9.7.dylib 0x974565e1 bn_sqr_recursive + 257
2 libcrypto.0.9.7.dylib 0x97456600 bn_sqr_recursive + 288
3 libcrypto.0.9.7.dylib 0x97456358 BN_sqr + 388
4 libcrypto.0.9.7.dylib 0x974b3348 BN_mod_mul_montgomery + 84
5 libcrypto.0.9.7.dylib 0x974abb50 BN_mod_exp_mont_consttime + 1082
6 libcrypto.0.9.7.dylib 0x974aac75 BN_mod_exp_mont + 87
7 libcrypto.0.9.7.dylib 0x9748fb33 dh_bn_mod_exp + 126
8 libcrypto.0.9.7.dylib 0x9748fa2f compute_key + 254
9 libssl.0.9.7.dylib 0x94a33531 ssl3_connect + 7530
10 com.iphonesoft3g.texaspokermumac 0x000d640b ossl_connect_common + 155
11 com.iphonesoft3g.texaspokermumac 0x000d693d Curl_ossl_connect + 29
12 com.iphonesoft3g.texaspokermumac 0x000e81a5 Curl_ssl_connect + 53
13 com.iphonesoft3g.texaspokermumac 0x000c2c7a Curl_http_connect + 90
14 com.iphonesoft3g.texaspokermumac 0x000cca4e Curl_protocol_connect + 174
15 com.iphonesoft3g.texaspokermumac 0x000cd367 setup_conn + 535
16 com.iphonesoft3g.texaspokermumac 0x000cdbd0 Curl_async_resolved + 48
17 com.iphonesoft3g.texaspokermumac 0x000dc339 Curl_do_perform + 1801
18 com.iphonesoft3g.texaspokermumac 0x0018115c WWWCurl::GetURL(char const*) + 668
19 com.iphonesoft3g.texaspokermumac 0x0018127c WWWCurl::WWW_ThreadEntryPoint(void*) + 28
20 com.iphonesoft3g.texaspokermumac 0x003b6aa1 Thread::RunThreadWrapper(void*) + 65
21 libsystem_pthread.dylib 0x9b68de13 _pthread_body + 138
22 libsystem_pthread.dylib 0x9b68dd89 _pthread_start + 162
23 libsystem_pthread.dylib 0x9b68be52 thread_start + 34
Thread 20 Crashed:
0 libsystem_kernel.dylib 0x9613869a __pthread_kill + 10
1 libsystem_pthread.dylib 0x9b68ff19 pthread_kill + 101
2 libsystem_c.dylib 0x90ba9eee abort + 156
3 libmono.0.dylib 0x01341562 mono_handle_native_sigsegv + 881
4 libmono.0.dylib 0x0137ac7e sigabrt_signal_handler + 99
5 libsystem_platform.dylib 0x949d603b _sigtramp + 43
6 ??? 0xffffffff 0 + 4294967295
7 libmono.0.dylib 0x0137ac1b sigusr1_signal_handler + 159
8 libsystem_c.dylib 0x90ba9eee abort + 156
9 libsystem_malloc.dylib 0x96611561 szone_error + 450
10 libsystem_malloc.dylib 0x96611ea8 free_tiny_botch + 94
11 libsystem_malloc.dylib 0x966083f0 szone_free_definite_size + 1561
12 libsystem_malloc.dylib 0x96606e3a free + 301
13 libcrypto.0.9.7.dylib 0x9745f924 CRYPTO_free + 49
14 libcrypto.0.9.7.dylib 0x9745d163 lh_delete + 62
15 libcrypto.0.9.7.dylib 0x97480df6 int_thread_del_item + 102
16 libcrypto.0.9.7.dylib 0x97480689 ERR_remove_state + 60
17 com.iphonesoft3g.texaspokermumac 0x000d4d96 Curl_ossl_close_all + 22
18 com.iphonesoft3g.texaspokermumac 0x000d1f33 Curl_close + 211
19 com.iphonesoft3g.texaspokermumac 0x00181166 WWWCurl::GetURL(char const*) + 678
20 com.iphonesoft3g.texaspokermumac 0x0018127c WWWCurl::WWW_ThreadEntryPoint(void*) + 28
21 com.iphonesoft3g.texaspokermumac 0x003b6aa1 Thread::RunThreadWrapper(void*) + 65
22 libsystem_pthread.dylib 0x9b68de13 _pthread_body + 138
23 libsystem_pthread.dylib 0x9b68dd89 _pthread_start + 162
24 libsystem_pthread.dylib 0x9b68be52 thread_start + 34
Application crashed when WWWCurl GetURL.
This is crash reproduced on devices:
MacBookAir 6,2
OSX 10.10.2
curl version (7.37.1)
MacBook Pro(Retina, Mid 2012)
OSX 10.10.2
curl version (7.37.1)
After update curlib to version 7.41 I cannot reproduce this crash.

XCode 4.5.1 Crashes on Install of Provisioning Profile

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.

Sporadic crash on 10.5 when loading IKImageBrowserViews in nib

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.

Resources