P2D3::Crash when "playing" with repositories in the repository tab

Issue #228 resolved
André Sintzoff
created an issue

MacHg crashes when "playing" with repositories in the repository tab (if I remember correctly).

Hereafter, excerpt of the generated trace. I don't know if such kind of trace is usable. I'm more familiar with Python ones ;-).

{{{

!

Process: MacHg [1357] Path: /Users/as/Downloads/MacHg.app/Contents/MacOS/MacHg Identifier: com.jasonfharris.MachHg Version: 0.9.19 (0.9.19) Code Type: X86 (Native) Parent Process: launchd [239]

Date/Time: 2011-04-03 19:01:59.092 +0200 OS Version: Mac OS X 10.6.7 (10J869) Report Version: 6

Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000002, 0x0000000000000000 Crashed Thread: 9 Dispatch queue: com.apple.root.default-priority

Application Specific Information: objc[1357]: garbage collection is ON Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ' -[NSConcreteData initWithBytes:length:copy:freeWhenDone:bytesAreVM:]: absurd length: 4294967295, maximum size: 2147483648 bytes' *** Call stack at first throw: ( 0 CoreFoundation 0x939016ba raiseError + 410 1 libobjc.A.dylib 0x96d73509 objc_exception_throw + 56 2 CoreFoundation 0x939013e8 +[NSException raise:format:arguments:] + 136 3 CoreFoundation 0x9390135a +[NSException raise:format:] + 58 4 Foundation 0x99877bbe -[NSConcreteData initWithBytes:length:copy:freeWhenDone:bytesAreVM:] + 135 5 Foundation 0x99889741 -[NSData(NSData) initWithBytes:length:] + 72 6 Foundation 0x9989a61a +[NSData(NSData) dataWithBytes:length:] + 82 7 Foundation 0x9994fe4a _performFileHandleSource + 1085 8 CoreFoundation 0x9386c4cb CFRunLoopDoSources0 + 1563 9 CoreFoundation 0x93869f8f CFRunLoopRun + 1071 10 CoreFoundation 0x93869464 CFRunLoopRunSpecific + 452 11 CoreFoundation 0x93869291 CFRunLoopRunInMode + 97 12 Foundation 0x99912805 -[NSConcreteTask waitUntilExit] + 273 13 MacHg 0x000206f6 -[ShellTask waitTillFinished] + 31 14 MacHg 0x00022480 +[ShellTask execute:withArgs:withEnvironment:withDelegate:] + 344 15 MacHg 0x00020df3 +[TaskExecutions executeMercurialWithArgs:fromRoot:logging:withDelegate:] + 212 16 MacHg 0x00020173 +[TaskExecutions executeMercurialWithArgs:fromRoot:logging:] + 57 17 MacHg 0x000586a4 -[RepositoryData loadCombinedInformationAndNotify:]_block_invoke_1 + 271 18 libSystem.B.dylib 0x940ccfc4 _dispatch_call_block_and_release + 16 19 libSystem.B.dylib 0x940bf292 _dispatch_worker_thread2 + 228 20 libSystem.B.dylib 0x940bed21 _pthread_wqthread + 390 21 libSystem.B.dylib 0x940beb66 start_wqthread + 30 )

Thread 0: Dispatch queue: com.apple.main-thread 0 libSystem.B.dylib 0x9409909a mach_msg_trap + 10 1 libSystem.B.dylib 0x94099807 mach_msg + 68 2 com.apple.CoreFoundation 0x9386a37f __CFRunLoopRun + 2079 3 com.apple.CoreFoundation 0x93869464 CFRunLoopRunSpecific + 452 4 com.apple.CoreFoundation 0x93869291 CFRunLoopRunInMode + 97 5 com.apple.HIToolbox 0x94dc1e04 RunCurrentEventLoopInMode + 392 6 com.apple.HIToolbox 0x94dc1bb9 ReceiveNextEventCommon + 354 7 com.apple.HIToolbox 0x94dc1a3e BlockUntilNextEventMatchingListInMode + 81 8 com.apple.AppKit 0x922da78d _DPSNextEvent + 847 9 com.apple.AppKit 0x922d9fce -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 156 10 com.apple.AppKit 0x9229c247 -[NSApplication run] + 821 11 com.apple.AppKit 0x922942d9 NSApplicationMain + 574 12 com.jasonfharris.MachHg 0x00002f75 start + 53

Thread 9 Crashed: Dispatch queue: com.apple.root.default-priority 0 com.apple.CoreFoundation 0x9394ca37 TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION + 7 1 libobjc.A.dylib 0x96d73509 objc_exception_throw + 56 2 com.apple.CoreFoundation 0x938696ec CFRunLoopRunSpecific + 1100 3 com.apple.CoreFoundation 0x93869291 CFRunLoopRunInMode + 97 4 com.apple.Foundation 0x99912805 -[NSConcreteTask waitUntilExit] + 273 5 com.jasonfharris.MachHg 0x000206f6 -[ShellTask waitTillFinished] + 31 6 com.jasonfharris.MachHg 0x00022480 +[ShellTask execute:withArgs:withEnvironment:withDelegate:] + 344 7 com.jasonfharris.MachHg 0x00020df3 +[TaskExecutions executeMercurialWithArgs:fromRoot:logging:withDelegate:] + 212 8 com.jasonfharris.MachHg 0x00020173 +[TaskExecutions executeMercurialWithArgs:fromRoot:logging:] + 57 9 com.jasonfharris.MachHg 0x000586a4 __-[RepositoryData loadCombinedInformationAndNotify:]_block_invoke_1 + 271 10 libSystem.B.dylib 0x940ccfc4 _dispatch_call_block_and_release + 16 11 libSystem.B.dylib 0x940bf292 _dispatch_worker_thread2 + 228 12 libSystem.B.dylib 0x940bed21 _pthread_wqthread + 390 13 libSystem.B.dylib 0x940beb66 start_wqthread + 30

Thread 10: Dispatch queue: com.apple.root.default-priority 0 libSystem.B.dylib 0x940990ee semaphore_timedwait_trap + 10 1 libSystem.B.dylib 0x94127b88 _dispatch_group_wait_slow + 223 2 com.jasonfharris.MachHg 0x0000b61c dispatchWithTimeOut + 140 3 com.jasonfharris.MachHg 0x00006cd2 __-[AppController computeRepositoryIdentityForPath:forNodePath:]_block_invoke_1 + 371 4 libSystem.B.dylib 0x940ccfc4 _dispatch_call_block_and_release + 16 5 libSystem.B.dylib 0x940bf292 _dispatch_worker_thread2 + 228 6 libSystem.B.dylib 0x940bed21 _pthread_wqthread + 390 7 libSystem.B.dylib 0x940beb66 start_wqthread + 30

Thread 13: Dispatch queue: com.apple.root.default-priority 0 libSystem.B.dylib 0x9409909a mach_msg_trap + 10 1 libSystem.B.dylib 0x94099807 mach_msg + 68 2 com.apple.CoreFoundation 0x9386a37f CFRunLoopRun + 2079 3 com.apple.CoreFoundation 0x93869464 CFRunLoopRunSpecific + 452 4 com.apple.CoreFoundation 0x93869291 CFRunLoopRunInMode + 97 5 com.apple.Foundation 0x99912805 -[NSConcreteTask waitUntilExit] + 273 6 com.jasonfharris.MachHg 0x000206f6 -[ShellTask waitTillFinished] + 31 7 com.jasonfharris.MachHg 0x00022480 +[ShellTask execute:withArgs:withEnvironment:withDelegate:] + 344 8 com.jasonfharris.MachHg 0x00020df3 +[TaskExecutions executeMercurialWithArgs:fromRoot:logging:withDelegate:] + 212 9 com.jasonfharris.MachHg 0x00006876 -[AppController computeRepositoryIdentityForPath:forNodePath:]_block_invoke_2 + 77 10 libSystem.B.dylib 0x940ccfc4 _dispatch_call_block_and_release + 16 11 libSystem.B.dylib 0x940bf271 _dispatch_worker_thread2 + 195 12 libSystem.B.dylib 0x940bed21 _pthread_wqthread + 390 13 libSystem.B.dylib 0x940beb66 start_wqthread + 30

}}}

Comments (4)

  1. Jason Harris repo owner
    • changed status to open

    Hi André,

    Thanks for the report! I actually have this fixed in my development version and have been wondering about releasing a new version to fix this. However it would be another release so quickly after the previous releases. However, I should probably do another release to fix this.

    Thanks! Jas

  2. Log in to comment