fotonauts/MongoHub-Mac — Issue #3: Crash in 2.4.1 when trying to query by ID
Author: yozlet
Created: 2011-10-10 20:39:07+00:00
State: open

I just downloaded the new 2.4.1 build from Github (thanks for putting it up!)

When I try to run this query:
{ "$oid" : "4E40C5111F85DD1BE9FAF825" }
... the app crashes.

Stack trace:

Process: MongoHub [14970]
Path: /Applications/MongoHub.app/Contents/MacOS/MongoHub
Identifier: com.thepeppersstudio.MongoHub
Version: 2.4.1 (75)
Code Type: X86-64 (Native)
Parent Process: launchd [10961]

Date/Time: 2011-10-10 13:38:01.569 -0700
OS Version: Mac OS X 10.7.1 (11B26)
Report Version: 9

Interval Since Last Report: 1175510 sec
Crashes Since Last Report: 21
Per-App Interval Since Last Report: 753 sec
Per-App Crashes Since Last Report: 4
Anonymous UUID: A459069F-5EEB-415F-A1BE-13F3F1AA37CA

Crashed Thread: 3 Dispatch queue: com.apple.root.default-priority

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000

VM Regions Near 0:
-->
__TEXT 0000000100000000-0000000100070000 [ 448K] r-x/rwx SM=COW /Applications/MongoHub.app/Contents/MacOS/MongoHub

Application Specific Information:
objc[14970]: garbage collection is OFF

Thread 0:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib	0x00007fff91d0367a mach_msg_trap + 10
1 libsystem_kernel.dylib	0x00007fff91d02d71 mach_msg + 73
2 com.apple.CoreFoundation	0x00007fff91d3f29c __CFRunLoopServiceMachPort + 188
3 com.apple.CoreFoundation	0x00007fff91d47a04 __CFRunLoopRun + 1204
4 com.apple.CoreFoundation	0x00007fff91d47216 CFRunLoopRunSpecific + 230
5 com.apple.HIToolbox	0x00007fff8f32c4ff RunCurrentEventLoopInMode + 277
6 com.apple.HIToolbox	0x00007fff8f333c21 ReceiveNextEventCommon + 355
7 com.apple.HIToolbox	0x00007fff8f333aae BlockUntilNextEventMatchingListInMode + 62
8 com.apple.AppKit	0x00007fff8df4c191 _DPSNextEvent + 659
9 com.apple.AppKit	0x00007fff8df4ba95 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 135
10 com.apple.AppKit	0x00007fff8df483d6 -[NSApplication run] + 463
11 com.apple.AppKit	0x00007fff8e1c652a NSApplicationMain + 867
12 com.thepeppersstudio.MongoHub	0x00000001000011c2 main + 34
13 com.thepeppersstudio.MongoHub	0x0000000100001194 start + 52

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib	0x00007fff91d057e6 kevent + 10
1 libdispatch.dylib	0x00007fff8b0c160e _dispatch_mgr_invoke + 923
2 libdispatch.dylib	0x00007fff8b0c019e _dispatch_mgr_thread + 54

Thread 2:
0 libsystem_c.dylib	0x00007fff8fa37b78 start_wqthread + 0

Thread 3 Crashed:: Dispatch queue: com.apple.root.default-priority
0 libsystem_c.dylib	0x00007fff8fa884f0 strlen + 16
1 com.thepeppersstudio.MongoHub	0x00000001000309d0 bson_append_estart + 32
2 com.thepeppersstudio.MongoHub	0x0000000100031492 bson_append_oid + 50
3 com.thepeppersstudio.MongoHub	0x000000010005007c -[MODJsonToBsonParser appendObjectId:length:withKey:previousStructure:previousStructureDictionary:] + 76
4 com.thepeppersstudio.MongoHub	0x000000010004ef7b append_data_for_bson + 379
5 com.thepeppersstudio.MongoHub	0x0000000100047492 json_parser_dom_callback + 1154
6 com.thepeppersstudio.MongoHub	0x0000000100047a14 do_callback_withbuf + 100
7 com.thepeppersstudio.MongoHub	0x0000000100047d89 act_se + 57
8 com.thepeppersstudio.MongoHub	0x000000010004653d do_action + 125
9 com.thepeppersstudio.MongoHub	0x000000010004628a json_parser_string + 362
10 com.thepeppersstudio.MongoHub	0x000000010004fbfb process_json + 507
11 com.thepeppersstudio.MongoHub	0x000000010004e7c5 -[MODJsonParser parseJsonWithCstring:error:] + 373
12 com.thepeppersstudio.MongoHub	0x000000010004fd9d -[MODJsonParser parseJsonWithString:withError:] + 77
13 com.thepeppersstudio.MongoHub	0x000000010004fe30 +[MODJsonToBsonParser bsonFromJson:json:error:] + 128
14 com.thepeppersstudio.MongoHub	0x0000000100048ac4 -[MODCursor _startCursorWithError:] + 916
15 com.thepeppersstudio.MongoHub	0x0000000100049147 -[MODCursor nextDocumentAsynchronouslyWithError:] + 263
16 com.thepeppersstudio.MongoHub	0x000000010003cf14 __66-[MODCollection findWithCriteria:fields:skip:limit:sort:callback:]_block_invoke_0 + 180
17 com.thepeppersstudio.MongoHub	0x0000000100043923 __29-[MODServer addQueryInQueue:]_block_invoke_0 + 67
18 com.apple.Foundation	0x00007fff8a733581 -[NSBlockOperation main] + 116
19 com.apple.Foundation	0x00007fff8a6fa0b0 -[__NSOperationInternal start] + 705
20 com.apple.Foundation	0x00007fff8a70d3d2 ____NSOQSchedule_block_invoke_2 + 124
21 libdispatch.dylib	0x00007fff8b0bf90a _dispatch_call_block_and_release + 18
22 libdispatch.dylib	0x00007fff8b0c07e9 _dispatch_worker_thread2 + 255
23 libsystem_c.dylib	0x00007fff8fa363da _pthread_wqthread + 316
24 libsystem_c.dylib	0x00007fff8fa37b85 start_wqthread + 13

Thread 4:
0 libsystem_kernel.dylib	0x00007fff91d05192 __workq_kernreturn + 10
1 libsystem_c.dylib	0x00007fff8fa36594 _pthread_wqthread + 758
2 libsystem_c.dylib	0x00007fff8fa37b85 start_wqthread + 13

Thread 5:

Thread 3 crashed with X86 Thread State (64-bit):
rax: 0x00000000ffffffff rbx: 0x000000010004ea90 rcx: 0x0000000000000000 rdx: 0x0000000000000000
rdi: 0x0000000000000000 rsi: 0x0000000000000007 rbp: 0x00000001054ea100 rsp: 0x00000001054ea0c8
r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x0000000000000001 r11: 0x0000000100050030
r12: 0x000000010004ee00 r13: 0x0000000000000000 r14: 0x000000010004eba0 r15: 0x000000010004ed90
rip: 0x00007fff8fa884f0 rfl: 0x0000000000010286 cr2: 0x0000000000000000
Logical CPU: 0