P2D2::Crash after pulling an existing repo folder from Finder into MacHg's left pane

Issue #24 resolved
Marko Käning
created an issue

After dropping the link to a repo from a Finder window into the pane a remote repo also appeared just above the little icon for the dragged-in repo.

Right after this MacHg crashed.

See attached crash log: {{{ Process: MacHg [1512] Path: /Users/marko/WC/machg/build/Release/MacHg.app/Contents/MacOS/MacHg Identifier: com.jasonfharris.MachHg Version: 0.9.1 (0.9.1) Code Type: X86-64 (Native) Parent Process: launchd [155]

Date/Time: 2010-05-09 15:04:21.208 +0200 OS Version: Mac OS X 10.6.3 (10D573) Report Version: 6

Interval Since Last Report: 85427 sec Crashes Since Last Report: 3 Per-App Interval Since Last Report: 12893 sec Per-App Crashes Since Last Report: 1 Anonymous UUID: 4ADD88F0-37AC-4BFC-BB40-8308C8DB47A2

Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Crashed Thread: 7 Dispatch queue: com.apple.root.default-priority

Application Specific Information: abort() called objc[1512]: garbage collection is ON Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ' -[NSCFDictionary setObject:forKey:]: attempt to insert nil key' *** Call stack at first throw: ( 0 CoreFoundation 0x00007fff84851d24 exceptionPreprocess + 180 1 libobjc.A.dylib 0x00007fff82a7e0f3 objc_exception_throw + 45 2 CoreFoundation 0x00007fff84851b47 +[NSException raise:format:arguments:] + 103 3 CoreFoundation 0x00007fff84851ad4 +[NSException raise:format:] + 148 4 Foundation 0x00007fff850b9a98 -[NSCFDictionary setObject:forKey:] + 164 5 MacHg 0x0000000100006071 -[NSMutableDictionary(NSMutableDictionaryPlusAccessors) synchronizedSetObject:forKey:] + 55 6 MacHg 0x000000010004b452 -[RepositoryData entryForRevisionString:] + 434 7 MacHg 0x000000010001e2fa -[Sidebar informationTextViewMessage:] + 244 8 MacHg 0x000000010001d0ff -[Sidebar updateInformationTextView] + 66 9 Foundation 0x00007fff850c786e _nsnote_callback + 167 10 CoreFoundation 0x00007fff847f9aea CFXNotificationPost + 954 11 CoreFoundation 0x00007fff847e6098 _CFXNotificationPostNotification + 200 12 Foundation 0x00007fff850be7d8 -[NSNotificationCenter postNotificationName:object:userInfo:] + 101 13 MacHg 0x000000010004a5da __-[RepositoryData updateBranchParts]_block_invoke_1 + 850 14 libSystem.B.dylib 0x00007fff843a7610 _dispatch_call_block_and_release + 15 15 libSystem.B.dylib 0x00007fff84385bb1 _dispatch_worker_thread2 + 239 16 libSystem.B.dylib 0x00007fff843854e8 _pthread_wqthread + 353 17 libSystem.B.dylib 0x00007fff84385385 start_wqthread + 13 )

Thread 0: Dispatch queue: com.apple.main-thread 0 libSystem.B.dylib 0x00007fff8436b7a2 semaphore_wait_signal_trap + 10 1 libSystem.B.dylib 0x00007fff84370ced pthread_mutex_lock + 469 2 com.jasonfharris.MachHg 0x000000010004978f -[RepositoryData getHGHeads] + 44 (RepositoryData.m:261) 3 com.jasonfharris.MachHg 0x0000000100048c22 -[RepositoryData hasMultipleOpenHeads] + 49 (RepositoryData.m:508) 4 com.jasonfharris.MachHg 0x00000001000142da -[MacHgDocument validateUserInterfaceItem:] + 1567 (MacHgDocument.m:871) 5 com.apple.AppKit 0x00007fff87092303 -[NSToolbarItem _validateAsCommonItem:] + 206 6 com.apple.AppKit 0x00007fff86b51139 -[NSToolbarItem validate] + 118 7 com.apple.AppKit 0x00007fff86be8b9b -[NSToolbar validateVisibleItems] + 174 8 com.apple.AppKit 0x00007fff86be8a91 -[NSToolbar _autovalidateVisibleToolbarItems] + 83 9 com.apple.AppKit 0x00007fff86be8996 -[NSToolbarView _doDelayedValidateVisibleToolbarItems] + 24 10 com.apple.Foundation 0x00007fff850df448 NSFireDelayedPerform + 404 11 com.apple.CoreFoundation 0x00007fff847ee708 CFRunLoopRun + 6488 12 com.apple.CoreFoundation 0x00007fff847ec8df CFRunLoopRunSpecific + 575 13 com.apple.HIToolbox 0x00007fff864eeada RunCurrentEventLoopInMode + 333 14 com.apple.HIToolbox 0x00007fff864ee83d ReceiveNextEventCommon + 148 15 com.apple.HIToolbox 0x00007fff864ee798 BlockUntilNextEventMatchingListInMode + 59 16 com.apple.AppKit 0x00007fff86af2a2a _DPSNextEvent + 708 17 com.apple.AppKit 0x00007fff86af2379 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 155 18 com.apple.AppKit 0x00007fff86c46c17 -[NSScrollView scrollWheel:] + 711 19 com.apple.AppKit 0x00007fff86b1ed6e forwardMethod + 104 20 com.apple.AppKit 0x00007fff86c46922 -[NSView scrollWheel:] + 228 21 com.apple.AppKit 0x00007fff86b1ed6e forwardMethod + 104 22 com.apple.AppKit 0x00007fff86c46922 -[NSView scrollWheel:] + 228 23 com.apple.AppKit 0x00007fff86becc3b -[NSWindow sendEvent:] + 8769 24 com.apple.AppKit 0x00007fff86b21662 -[NSApplication sendEvent:] + 4719 25 com.apple.AppKit 0x00007fff86ab80aa -[NSApplication run] + 474 26 com.apple.AppKit 0x00007fff86ab0d7c NSApplicationMain + 364 27 com.jasonfharris.MachHg 0x0000000100001bf0 start + 52

Thread 1: Dispatch queue: com.apple.libdispatch-manager 0 libSystem.B.dylib 0x00007fff843b0996 select$DARWIN_EXTSN$NOCANCEL + 10 1 libSystem.B.dylib 0x00007fff843864a7 _dispatch_mgr_invoke + 388 2 libSystem.B.dylib 0x00007fff84386094 _dispatch_queue_invoke + 185 3 libSystem.B.dylib 0x00007fff84385bbe _dispatch_worker_thread2 + 252 4 libSystem.B.dylib 0x00007fff843854e8 _pthread_wqthread + 353 5 libSystem.B.dylib 0x00007fff84385385 start_wqthread + 13

Thread 2: 0 libSystem.B.dylib 0x00007fff843a6316 __semwait_signal + 10 1 libSystem.B.dylib 0x00007fff843aa131 _pthread_cond_wait + 1286 2 com.apple.CoreVideo 0x00007fff856768ba CVDisplayLink::runIOThread() + 804 3 com.apple.CoreVideo 0x00007fff8567655b startIOThread(void*) + 139 4 libSystem.B.dylib 0x00007fff843a48b6 _pthread_start + 331 5 libSystem.B.dylib 0x00007fff843a4769 thread_start + 13

Thread 3: 0 libSystem.B.dylib 0x00007fff843af286 select$DARWIN_EXTSN + 10 1 com.apple.CoreFoundation 0x00007fff8480eef2 __CFSocketManager + 818 2 libSystem.B.dylib 0x00007fff843a48b6 _pthread_start + 331 3 libSystem.B.dylib 0x00007fff843a4769 thread_start + 13

Thread 4: 0 libSystem.B.dylib 0x00007fff84385378 start_wqthread + 0

Thread 5: Dispatch queue: com.apple.root.default-priority 0 libSystem.B.dylib 0x00007fff8436b75a mach_msg_trap + 10 1 libSystem.B.dylib 0x00007fff8436bdcd mach_msg + 59 2 com.apple.CoreFoundation 0x00007fff847ed452 CFRunLoopRun + 1698 3 com.apple.CoreFoundation 0x00007fff847ec8df CFRunLoopRunSpecific + 575 4 com.apple.Foundation 0x00007fff85150bf8 -[NSConcreteTask waitUntilExit] + 230 5 com.jasonfharris.MachHg 0x0000000100020b81 -[NSTask(NSTaskPlusResultExtraction) extractResults] + 140 (TaskExecutions.m:282) 6 com.jasonfharris.MachHg 0x0000000100020d94 +[TaskExecutions synchronouslyExecute:withArgs:onTask:] + 118 (TaskExecutions.m:48) 7 com.jasonfharris.MachHg 0x000000010002128b +[TaskExecutions executeMercurialWithArgs:fromRoot:logging:onTask:] + 199 (TaskExecutions.m:205) 8 com.jasonfharris.MachHg 0x0000000100020cdd +[TaskExecutions executeMercurialWithArgs:fromRoot:logging:] + 39 (TaskExecutions.m:190) 9 com.jasonfharris.MachHg 0x0000000100049802 -[RepositoryData getHGHeads] + 159 (RepositoryData.m:265) 10 com.jasonfharris.MachHg 0x0000000100049fe8 -[RepositoryData updateOpenHeadParts]_block_invoke_1 + 114 (RepositoryData.m:444) 11 libSystem.B.dylib 0x00007fff843a7610 _dispatch_call_block_and_release + 15 12 libSystem.B.dylib 0x00007fff84385bb1 _dispatch_worker_thread2 + 239 13 libSystem.B.dylib 0x00007fff843854e8 _pthread_wqthread + 353 14 libSystem.B.dylib 0x00007fff84385385 start_wqthread + 13

Thread 6: Dispatch queue: com.apple.root.default-priority 0 libSystem.B.dylib 0x00007fff84375d46 read + 10 1 com.apple.Foundation 0x00007fff851497c2 _NSReadFromFileDescriptor + 63 2 com.apple.Foundation 0x00007fff85149610 -[NSConcreteFileHandle readDataOfLength:] + 252 3 com.jasonfharris.MachHg 0x0000000100006268 -[NSFileHandle(CSFileHandleExtensions) readDataToEndOfFileIgnoringErros] + 92 (Common.m:1072) 4 com.jasonfharris.MachHg 0x0000000100020b54 -[NSTask(NSTaskPlusResultExtraction) extractResults] + 95 (TaskExecutions.m:279) 5 com.jasonfharris.MachHg 0x0000000100020d94 +[TaskExecutions synchronouslyExecute:withArgs:onTask:] + 118 (TaskExecutions.m:48) 6 com.jasonfharris.MachHg 0x000000010002128b +[TaskExecutions executeMercurialWithArgs:fromRoot:logging:onTask:] + 199 (TaskExecutions.m:205) 7 com.jasonfharris.MachHg 0x0000000100020cdd +[TaskExecutions executeMercurialWithArgs:fromRoot:logging:] + 39 (TaskExecutions.m:190) 8 com.jasonfharris.MachHg 0x000000010004a9b5 __-[RepositoryData updateTagParts]_block_invoke_1 + 969 (RepositoryData.m:347) 9 libSystem.B.dylib 0x00007fff843a7610 _dispatch_call_block_and_release + 15 10 libSystem.B.dylib 0x00007fff84385bb1 _dispatch_worker_thread2 + 239 11 libSystem.B.dylib 0x00007fff843854e8 _pthread_wqthread + 353 12 libSystem.B.dylib 0x00007fff84385385 start_wqthread + 13

Thread 7 Crashed: Dispatch queue: com.apple.root.default-priority 0 libSystem.B.dylib 0x00007fff843de01e semwait_signal_nocancel + 10 1 libSystem.B.dylib 0x00007fff843ddf20 nanosleep$NOCANCEL + 129 2 libSystem.B.dylib 0x00007fff8443a902 usleep$NOCANCEL + 57 3 libSystem.B.dylib 0x00007fff84459eb8 abort + 93 4 libstdc++.6.dylib 0x00007fff87ea25d2 tcf_0 + 0 5 libobjc.A.dylib 0x00007fff82a81d29 _objc_terminate + 100 6 libstdc++.6.dylib 0x00007fff87ea0ae1 cxxabiv1::terminate(void ()()) + 11 7 libstdc++.6.dylib 0x00007fff87ea0b16 cxxabiv1::unexpected(void ()()) + 0 8 libstdc++.6.dylib 0x00007fff87ea0bfc gxx_exception_cleanup(_Unwind_Reason_Code, _Unwind_Exception*) + 0 9 libobjc.A.dylib 0x00007fff82a7e192 object_getIvar + 0 10 com.apple.CoreFoundation 0x00007fff84851b47 +[NSException raise:format:arguments:] + 103 11 com.apple.CoreFoundation 0x00007fff84851ad4 +[NSException raise:format:] + 148 12 com.apple.Foundation 0x00007fff850b9a98 -[NSCFDictionary setObject:forKey:] + 164 13 com.jasonfharris.MachHg 0x0000000100006071 -[NSMutableDictionary(NSMutableDictionaryPlusAccessors) synchronizedSetObject:forKey:] + 55 (Common.m:1020) 14 com.jasonfharris.MachHg 0x000000010004b452 -[RepositoryData entryForRevisionString:] + 434 (RepositoryData.m:757) 15 com.jasonfharris.MachHg 0x000000010001e2fa -[Sidebar informationTextViewMessage:] + 244 (Sidebar.m:489) 16 com.jasonfharris.MachHg 0x000000010001d0ff -[Sidebar updateInformationTextView] + 66 (Sidebar.m:540) 17 com.apple.Foundation 0x00007fff850c786e _nsnote_callback + 167 18 com.apple.CoreFoundation 0x00007fff847f9aea CFXNotificationPost + 954 19 com.apple.CoreFoundation 0x00007fff847e6098 _CFXNotificationPostNotification + 200 20 com.apple.Foundation 0x00007fff850be7d8 -[NSNotificationCenter postNotificationName:object:userInfo:] + 101 21 com.jasonfharris.MachHg 0x000000010004a5da __-[RepositoryData updateBranchParts]_block_invoke_1 + 850 (RepositoryData.m:424) 22 libSystem.B.dylib 0x00007fff843a7610 _dispatch_call_block_and_release + 15 23 libSystem.B.dylib 0x00007fff84385bb1 _dispatch_worker_thread2 + 239 24 libSystem.B.dylib 0x00007fff843854e8 _pthread_wqthread + 353 25 libSystem.B.dylib 0x00007fff84385385 start_wqthread + 13

Thread 8: Dispatch queue: machg.refreshBrowserSerialQueue 0 libSystem.B.dylib 0x00007fff8436b796 semaphore_wait_trap + 10 1 libSystem.B.dylib 0x00007fff843f19af _dispatch_group_wait_slow + 199 2 com.jasonfharris.MachHg 0x000000010000c8c1 __-[FSBrowser refreshBrowserPaths:resumeEventsWhenFinished:]_block_invoke_1 + 693 (FSBrowser.m:464) 3 libSystem.B.dylib 0x00007fff843a7610 _dispatch_call_block_and_release + 15 4 libSystem.B.dylib 0x00007fff843861b2 _dispatch_queue_drain + 251 5 libSystem.B.dylib 0x00007fff84386014 _dispatch_queue_invoke + 57 6 libSystem.B.dylib 0x00007fff84385bbe _dispatch_worker_thread2 + 252 7 libSystem.B.dylib 0x00007fff843854e8 _pthread_wqthread + 353 8 libSystem.B.dylib 0x00007fff84385385 start_wqthread + 13

Thread 9: Dispatch queue: com.apple.root.default-priority 0 libSystem.B.dylib 0x00007fff8436b75a mach_msg_trap + 10 1 libSystem.B.dylib 0x00007fff8436bdcd mach_msg + 59 2 com.apple.CoreFoundation 0x00007fff847ed452 CFRunLoopRun + 1698 3 com.apple.CoreFoundation 0x00007fff847ec8df CFRunLoopRunSpecific + 575 4 com.apple.Foundation 0x00007fff85150bf8 -[NSConcreteTask waitUntilExit] + 230 5 com.jasonfharris.MachHg 0x0000000100020b81 -[NSTask(NSTaskPlusResultExtraction) extractResults] + 140 (TaskExecutions.m:282) 6 com.jasonfharris.MachHg 0x0000000100020d94 +[TaskExecutions synchronouslyExecute:withArgs:onTask:] + 118 (TaskExecutions.m:48) 7 com.jasonfharris.MachHg 0x000000010002128b +[TaskExecutions executeMercurialWithArgs:fromRoot:logging:onTask:] + 199 (TaskExecutions.m:205) 8 com.jasonfharris.MachHg 0x0000000100015fd2 -[MacHgDocument statusLinesForPaths:withRootPath:] + 351 (MacHgDocument.m:1358) 9 com.jasonfharris.MachHg 0x000000010000ba0b -[FSBrowser refreshBrowserPaths:resumeEventsWhenFinished:]_block_invoke_2 + 59 (FSBrowser.m:442) 10 libSystem.B.dylib 0x00007fff843a7610 _dispatch_call_block_and_release + 15 11 libSystem.B.dylib 0x00007fff84385b90 _dispatch_worker_thread2 + 206 12 libSystem.B.dylib 0x00007fff843854e8 _pthread_wqthread + 353 13 libSystem.B.dylib 0x00007fff84385385 start_wqthread + 13

Thread 10: Dispatch queue: com.apple.root.default-priority 0 libSystem.B.dylib 0x00007fff8436b75a mach_msg_trap + 10 1 libSystem.B.dylib 0x00007fff8436bdcd mach_msg + 59 2 com.apple.CoreFoundation 0x00007fff847ed452 CFRunLoopRun + 1698 3 com.apple.CoreFoundation 0x00007fff847ec8df CFRunLoopRunSpecific + 575 4 com.apple.Foundation 0x00007fff85150bf8 -[NSConcreteTask waitUntilExit] + 230 5 com.jasonfharris.MachHg 0x0000000100020b81 -[NSTask(NSTaskPlusResultExtraction) extractResults] + 140 (TaskExecutions.m:282) 6 com.jasonfharris.MachHg 0x0000000100020d94 +[TaskExecutions synchronouslyExecute:withArgs:onTask:] + 118 (TaskExecutions.m:48) 7 com.jasonfharris.MachHg 0x000000010002128b +[TaskExecutions executeMercurialWithArgs:fromRoot:logging:onTask:] + 199 (TaskExecutions.m:205) 8 com.jasonfharris.MachHg 0x0000000100020cdd +[TaskExecutions executeMercurialWithArgs:fromRoot:logging:] + 39 (TaskExecutions.m:190) 9 com.jasonfharris.MachHg 0x0000000100049b14 -[RepositoryData fillTableFrom:to:]_block_invoke_1 + 68 (RepositoryData.m:681) 10 libSystem.B.dylib 0x00007fff843a7610 _dispatch_call_block_and_release + 15 11 libSystem.B.dylib 0x00007fff84385bb1 _dispatch_worker_thread2 + 239 12 libSystem.B.dylib 0x00007fff843854e8 _pthread_wqthread + 353 13 libSystem.B.dylib 0x00007fff84385385 start_wqthread + 13

Thread 11: Dispatch queue: com.apple.root.default-overcommit-priority 0 libSystem.B.dylib 0x00007fff84385fdc _dispatch_queue_invoke + 1 1 libSystem.B.dylib 0x00007fff84385bbe _dispatch_worker_thread2 + 252 2 libSystem.B.dylib 0x00007fff843854e8 _pthread_wqthread + 353 3 libSystem.B.dylib 0x00007fff84385385 start_wqthread + 13

Thread 12: 0 libSystem.B.dylib 0x00007fff8438530a __workq_kernreturn + 10 1 libSystem.B.dylib 0x00007fff8438571c _pthread_wqthread + 917 2 libSystem.B.dylib 0x00007fff84385385 start_wqthread + 13

Thread 13: 0 libSystem.B.dylib 0x00007fff843a6316 semwait_signal + 10 1 libSystem.B.dylib 0x00007fff843a61a5 nanosleep + 148 2 libSystem.B.dylib 0x00007fff843a610f usleep + 57 3 com.apple.AppKit 0x00007fff86c3ddb2 -[NSUIHeartBeat _heartBeatThread:] + 1540 4 com.apple.Foundation 0x00007fff850c7ead NSThreadmain + 1429 5 libSystem.B.dylib 0x00007fff843a48b6 _pthread_start + 331 6 libSystem.B.dylib 0x00007fff843a4769 thread_start + 13

Thread 14: 0 libSystem.B.dylib 0x00007fff8438530a __workq_kernreturn + 10 1 libSystem.B.dylib 0x00007fff8438571c _pthread_wqthread + 917 2 libSystem.B.dylib 0x00007fff84385385 start_wqthread + 13

Thread 7 crashed with X86 Thread State (64-bit): rax: 0x000000000000003c rbx: 0x00000001136c66f0 rcx: 0x00000001136c66a8 rdx: 0x0000000000000001 rdi: 0x0000000000000c03 rsi: 0x0000000000000000 rbp: 0x00000001136c66e0 rsp: 0x00000001136c66a8 r8: 0x0000000000000000 r9: 0x0000000000989680 r10: 0x0000000000000001 r11: 0x0000000000000246 r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x00007fff871f4c60 r15: 0x00000002003fe860 rip: 0x00007fff843de01e rfl: 0x0000000000000247 cr2: 0x00000001004de608

}}}

Comments (5)

  1. Marko Käning reporter

    I have to add that I added the remote repo manually before I had dropped the local clone onto the left pane.

    I tried to reproduce this, but I could not. :(

    Instead I saw something else: see attached file. Although the remote repo was already in my list of currently bookmarked remote repos the dropped in clone repo would create its own remote repo instance. (See the two entries "makeicnsGUI" below)

    Funnily enough, the clone would still relate to the originally existing remote repo, as you can see in the attached image.

  2. Jason Harris repo owner

    Actually I have guarded against this case now in 984750e3fd29 . I will close this but reopen if anyone can reproduce this.

    Marko can you split out and open a new bug report about the issue: (See the two entries "makeicnsGUI" below)

    Thanks! Jas

  3. Log in to comment