Bug 51600 - Bug NSInternalInconsistencyException', reason: '*** -[NSMapTable NSMapTable
Summary: Bug NSInternalInconsistencyException', reason: '*** -[NSMapTable NSMapTable
Status: RESOLVED NOT_ON_ROADMAP
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: Runtime ()
Version: 3.0.0 (C9)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-01-18 13:28 UTC by Alain
Modified: 2017-01-21 00:42 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_ON_ROADMAP

Description Alain 2017-01-18 13:28:19 UTC
Hi,

I have a problem with my Xamarin.Mac application. I often get the following error message:

NSInternalInconsistencyException ', reason:' *** - [NSMapTable NSMapTable

(See log below).

The problem is that it is random and that it is not reproducible. After some use and following what is done, there is this error.

I am with the latest release Xamarin.MAC 3.0.0.343 but I already had this with Xamarin.MAC 2.

Do you have any idea where it might come from?

I tried to integrate in the code

New System.Threading.Thread (() =>
{
While (true) {
System.Threading.Thread.Sleep (1000);
GC.Collect ();
}
}) Start ();

To see if I could reproduce the problem faster but not. I can work 1 hour without any problems and then I have this problem.

Thanks

Alain


Process:               Medinect [10466]
Path:                  /Users/USER/*/Medinect.app/Contents/MacOS/Medinect
Identifier:            medinect.offimed.be
Version:               2.3.1 (2.3.1)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Medinect [10466]
User ID:               501

Date/Time:             2017-01-18 14:00:08.822 +0100
OS Version:            Mac OS X 10.12.2 (16C67)
Report Version:        12
Anonymous UUID:        B4DD4C68-25A3-4699-D21C-4A2E8A5CDBFB

Sleep/Wake UUID:       19761563-55DA-4214-A857-6403AA7316FC

Time Awake Since Boot: 44000 seconds
Time Since Wake:       17000 seconds

System Integrity Protection: enabled

Crashed Thread:        29  Dispatch queue: NSOperationQueue 0x60800d821b40 :: NSOperation 0x6000022a9d20 (QOS: USER_INTERACTIVE)

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '*** -[NSMapTable NSMapTable {
[2] <NSThread: 0x600002264240>{number = 323, name = (null)} -> <NSWindowGraphicsContext: 0x6000084214e0>
[73] <NSThread: 0x600002c751c0>{number = 325, name = (null)} -> <NSWindowGraphicsContext: 0x60000a22dac0>
[74] <NSThread: 0x60800406ebc0>{number = 315, name = (null)} -> <NSWindowGraphicsContext: 0x60800b63fa00>
[83] <NSThread: 0x600002c65a40>{number = 328, name = (null)} -> <NSWindowGraphicsContext: 0x60000a22c000>
[125] <NSThread: 0x60800406bd40>{number = 329, name = (null)} -> <NSWindowGraphicsContext: 0x60800d6346c0>
}
] count underflow'
abort() called
terminating with uncaught exception of type NSException

Application Specific Backtrace 1:
0   CoreFoundation                      0x00007fff960e10db __exceptionPreprocess + 171
1   libobjc.A.dylib                     0x00007fffaad73a2a objc_exception_throw + 48
2   CoreFoundation                      0x00007fff9615e9c5 +[NSException raise:format:] + 197
3   Foundation                          0x00007fff97a7fde2 probeGC + 604
4   Foundation                          0x00007fff97a7fe67 -[NSConcreteMapTable setObject:forKey:] + 66
5   AppKit                              0x00007fff93cd0d08 -[NSWindow _threadContext] + 386
6   AppKit                              0x00007fff93cd0496 -[NSView lockFocusIfCanDraw] + 117
7   AppKit                              0x00007fff945186cd -[_NSViewDrawOperation main] + 158
8   Foundation                          0x00007fff97aaa6e4 -[__NSOperationInternal _start:] + 672
9   Foundation                          0x00007fff97aa659b __NSOQSchedule_f + 201
10  libdispatch.dylib                   0x00007fffab61f0b8 _dispatch_client_callout + 8
11  libdispatch.dylib                   0x00007fffab635ae5 _dispatch_queue_serial_drain + 896
12  libdispatch.dylib                   0x00007fffab627cd9 _dispatch_queue_invoke + 1046
13  libdispatch.dylib                   0x00007fffab620e70 _dispatch_root_queue_drain + 476
14  libdispatch.dylib                   0x00007fffab620c47 _dispatch_worker_thread3 + 99
15  libsystem_pthread.dylib             0x00007fffab86c712 _pthread_wqthread + 1299
16  libsystem_pthread.dylib             0x00007fffab86c1ed start_wqthread + 13

Thread 0:: tid_307  Dispatch queue: com.apple.main-thread
0   com.apple.CoreGraphics        	0x00007fff966b5d71 blt_pattern_blend_XXXX32 + 892
1   com.apple.CoreGraphics        	0x00007fff966b5f43 blt_bitmap_blend_AXXX32 + 95
2   com.apple.CoreGraphics        	0x00007fff9647c0db argb32_mark + 9385
3   com.apple.CoreGraphics        	0x00007fff96863594 RIPLayerBltShape + 1518
4   com.apple.CoreGraphics        	0x00007fff964eab00 ripc_Render + 318
5   com.apple.CoreGraphics        	0x00007fff964ed464 ripc_DrawRects + 411
6   com.apple.AppKit              	0x00007fff93d33b0a __backing_store_DrawRects_block_invoke + 39
7   com.apple.AppKit              	0x00007fff93d32e2b backing_store_delegate + 984
8   com.apple.AppKit              	0x00007fff93d327de backing_store_DrawRects + 1029
9   com.apple.CoreGraphics        	0x00007fff96726264 CGContextFillRects + 96
10  com.apple.CoreGraphics        	0x00007fff96726357 CGContextFillRect + 135
11  com.apple.CoreGraphics        	0x00007fff96662a7c CGContextDrawImages + 874
12  com.apple.coreui              	0x00007fffa1d06bfa DrawNinePartImageWithOperation + 6121
13  com.apple.coreui              	0x00007fffa1d053f2 DrawNinePartElementFromRenditionWithOperation + 455
14  com.apple.coreui              	0x00007fffa1d0d0db -[CUIThemeFacet _drawSpecificRenditionKey:rendition:inFrame:context:alpha:operation:isFocused:isFlipped:effects:] + 481
15  com.apple.coreui              	0x00007fffa1d0ce03 -[CUIThemeFacet _drawSpecificRenditionKey:inFrame:context:isFocused:isFlipped:effects:] + 172
16  com.apple.coreui              	0x00007fffa1d0afb7 -[CUIThemeFacet drawInFrame:isFocused:context:effects:] + 148
17  com.apple.coreui              	0x00007fffa1d184b4 CUICoreThemeRenderer::DrawSimple(CUIRenditionKey*, CUIDescriptor const*, signed char) + 584
18  com.apple.coreui              	0x00007fffa1cad43f CUIRenderer::Draw(CGRect, CGContext*, __CFDictionary const*, __CFDictionary const**) + 2137
19  com.apple.coreui              	0x00007fffa1cb0282 CUIDraw + 280
20  com.apple.AppKit              	0x00007fff93cd4024 __44-[NSAppearance _drawInRect:context:options:]_block_invoke + 60
21  com.apple.AppKit              	0x00007fff946676a7 -[NSCompositeAppearance _callCoreUIWithBlock:options:] + 226
22  com.apple.AppKit              	0x00007fff93cd3fe2 -[NSAppearance _drawInRect:context:options:] + 108
23  com.apple.AppKit              	0x00007fff93e80442 DrawThemeBox + 285
24  com.apple.AppKit              	0x00007fff93e7700c -[NSBox drawRect:] + 3055
25  com.apple.AppKit              	0x00007fff93ce1029 -[NSView _drawRect:clip:] + 2276
26  com.apple.AppKit              	0x00007fff93d30fd3 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1753
27  com.apple.AppKit              	0x00007fff93d3143e -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2884
28  com.apple.AppKit              	0x00007fff93d3143e -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2884
29  com.apple.AppKit              	0x00007fff93d3143e -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2884
30  com.apple.AppKit              	0x00007fff93d3143e -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2884
31  com.apple.AppKit              	0x00007fff93d3143e -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2884
32  com.apple.AppKit              	0x00007fff93cdeb62 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 837
33  com.apple.AppKit              	0x00007fff93cde33f -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 334
34  com.apple.AppKit              	0x00007fff93cdc768 -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 2452
35  com.apple.AppKit              	0x00007fff93cd8055 -[NSView displayIfNeeded] + 1748
36  com.apple.AppKit              	0x00007fff93cd7967 -[NSWindow displayIfNeeded] + 230
37  com.apple.AppKit              	0x00007fff944363f3 ___NSWindowGetDisplayCycleObserver_block_invoke.6228 + 277
38  com.apple.AppKit              	0x00007fff93cd7445 __37+[NSDisplayCycle currentDisplayCycle]_block_invoke + 454
39  com.apple.QuartzCore          	0x00007fff9bda7a96 CA::Transaction::run_commit_handlers(CATransactionPhase) + 46
40  com.apple.QuartzCore          	0x00007fff9beaf800 CA::Context::commit_transaction(CA::Transaction*) + 160
41  com.apple.QuartzCore          	0x00007fff9bda6631 CA::Transaction::commit() + 475
42  com.apple.AppKit              	0x00007fff93de73af __28-[NSMoveHelper _doAnimation]_block_invoke + 1066
43  com.apple.AppKit              	0x00007fff93d5a7f8 -[NSScreenDisplayLink _fire] + 329
44  com.apple.CoreFoundation      	0x00007fff96061294 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
45  com.apple.CoreFoundation      	0x00007fff96060f23 __CFRunLoopDoTimer + 1075
46  com.apple.CoreFoundation      	0x00007fff96060a7a __CFRunLoopDoTimers + 298
47  com.apple.CoreFoundation      	0x00007fff960585d1 __CFRunLoopRun + 2081
48  com.apple.CoreFoundation      	0x00007fff96057b54 CFRunLoopRunSpecific + 420
49  com.apple.AppKit              	0x00007fff93de6632 -[NSMoveHelper _doAnimation] + 1624
50  com.apple.AppKit              	0x00007fff93dfdfb4 -[NSMoveHelper _resizeWindow:toFrame:display:] + 390
51  com.apple.AppKit              	0x00007fff93d6535c -[NSWindow setFrame:display:animate:] + 1405
52  com.apple.AppKit              	0x00007fff943ba0f4 -[NSThemeFrame _animateToolbarWithReason:showToolbarPostWindowFrame:] + 257
53  com.apple.AppKit              	0x00007fff943bae58 -[NSThemeFrame _growWindowReshapeContentAndToolbarView:withOldToolbarFrameSize:animate:] + 1381
54  com.apple.AppKit              	0x00007fff943bb2e5 -[NSThemeFrame _reshapeContentAndToolbarView:withOldToolbarFrameSize:resizeWindow:animate:] + 571
55  com.apple.AppKit              	0x00007fff93c1fc31 -[NSThemeFrame _showHideToolbar:resizeWindow:animate:] + 271
56  com.apple.AppKit              	0x00007fff93c1916c -[NSWindow _showToolbar:animate:] + 128
57  com.apple.AppKit              	0x00007fff93c190d7 -[NSToolbar _show:animate:] + 52
58  medinect.offimed.be           	0x000000010343ec69 xamarin_dyn_objc_msgSend + 217
59  ???                           	0x0000000110b044d8 0 + 4574954712
60  ???                           	0x00000001922cbed0 0 + 6747373264
61  ???                           	0x000000010af656b1 0 + 4478883505
62  medinect.offimed.be           	0x000000010353d967 mono_jit_runtime_invoke + 2247 (mini-runtime.c:2563)
63  medinect.offimed.be           	0x00000001035fb378 do_runtime_invoke + 88 (object.c:2820)
64  medinect.offimed.be           	0x00000001035fb2f0 mono_runtime_invoke + 208 (object.c:2978)
65  medinect.offimed.be           	0x000000010343c6f5 xamarin_invoke_trampoline + 5589 (trampolines-invoke.m:441)
66  medinect.offimed.be           	0x000000010343d72d xamarin_arch_trampoline + 189 (trampolines-x86_64.m:540)
67  medinect.offimed.be           	0x000000010343eae1 xamarin_x86_64_common_trampoline + 110
68  libsystem_trace.dylib         	0x00007fffab887c3d _os_activity_initiate + 61
69  com.apple.AppKit              	0x00007fff94305150 -[NSApplication(NSResponder) sendAction:to:from:] + 456
70  com.apple.AppKit              	0x00007fff93dea988 -[NSControl sendAction:to:] + 86
71  com.apple.AppKit              	0x00007fff93dea8b0 __26-[NSCell _sendActionFrom:]_block_invoke + 136
72  libsystem_trace.dylib         	0x00007fffab887c3d _os_activity_initiate + 61
73  com.apple.AppKit              	0x00007fff93dea808 -[NSCell _sendActionFrom:] + 128
74  com.apple.AppKit              	0x00007fff93e2d201 -[NSButtonCell _sendActionFrom:] + 98
75  libsystem_trace.dylib         	0x00007fffab887c3d _os_activity_initiate + 61
76  com.apple.AppKit              	0x00007fff93de90ee -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2481
77  com.apple.AppKit              	0x00007fff93e2cf3a -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 798
78  com.apple.AppKit              	0x00007fff93de7aa3 -[NSControl mouseDown:] + 832
79  com.apple.AppKit              	0x00007fff9447cab7 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 6341
80  com.apple.AppKit              	0x00007fff944792d4 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 1942
81  com.apple.AppKit              	0x00007fff94478772 -[NSWindow(NSEventRouting) sendEvent:] + 541
82  com.apple.AppKit              	0x00007fff943010a9 -[NSApplication(NSEvent) sendEvent:] + 1145
83  com.apple.AppKit              	0x00007fff93ddedbe -[NSApplication _doModalLoop:peek:] + 563
84  com.apple.AppKit              	0x00007fff93fbef6a __35-[NSApplication runModalForWindow:]_block_invoke + 64
85  com.apple.AppKit              	0x00007fff93ddc862 -[NSApplication runModalForWindow:] + 137
86  medinect.offimed.be           	0x000000010343ec69 xamarin_dyn_objc_msgSend + 217
87  ???                           	0x0000000117840c16 0 + 4689497110
88  ???                           	0x000000012ddd6483 0 + 5064451203
89  medinect.offimed.be           	0x000000010353d967 mono_jit_runtime_invoke + 2247 (mini-runtime.c:2563)
90  medinect.offimed.be           	0x00000001035fb378 do_runtime_invoke + 88 (object.c:2820)
91  medinect.offimed.be           	0x00000001035fb2f0 mono_runtime_invoke + 208 (object.c:2978)
92  medinect.offimed.be           	0x000000010343c6f5 xamarin_invoke_trampoline + 5589 (trampolines-invoke.m:441)
93  medinect.offimed.be           	0x000000010343d72d xamarin_arch_trampoline + 189 (trampolines-x86_64.m:540)
94  medinect.offimed.be           	0x000000010343eae1 xamarin_x86_64_common_trampoline + 110
95  libsystem_trace.dylib         	0x00007fffab887c3d _os_activity_initiate + 61
96  com.apple.AppKit              	0x00007fff94305150 -[NSApplication(NSResponder) sendAction:to:from:] + 456
97  com.apple.AppKit              	0x00007fff93dea988 -[NSControl sendAction:to:] + 86
98  com.apple.AppKit              	0x00007fff93dea8b0 __26-[NSCell _sendActionFrom:]_block_invoke + 136
99  libsystem_trace.dylib         	0x00007fffab887c3d _os_activity_initiate + 61
100 com.apple.AppKit              	0x00007fff93dea808 -[NSCell _sendActionFrom:] + 128
101 com.apple.AppKit              	0x00007fff93e2d201 -[NSButtonCell _sendActionFrom:] + 98
102 libsystem_trace.dylib         	0x00007fffab887c3d _os_activity_initiate + 61
103 com.apple.AppKit              	0x00007fff93de90ee -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2481
104 com.apple.AppKit              	0x00007fff93e2cf3a -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 798
105 com.apple.AppKit              	0x00007fff93de7aa3 -[NSControl mouseDown:] + 832
106 com.apple.AppKit              	0x00007fff9447cab7 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 6341
107 com.apple.AppKit              	0x00007fff944792d4 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 1942
108 com.apple.AppKit              	0x00007fff94478772 -[NSWindow(NSEventRouting) sendEvent:] + 541
109 com.apple.AppKit              	0x00007fff943010a9 -[NSApplication(NSEvent) sendEvent:] + 1145
110 com.apple.AppKit              	0x00007fff93b7d4b1 -[NSApplication run] + 1002
111 com.apple.AppKit              	0x00007fff93b47d80 NSApplicationMain + 1237
112 ???                           	0x00000001076e0eba 0 + 4419620538
113 ???                           	0x00000001076e0a8d 0 + 4419619469
114 medinect.offimed.be           	0x000000010353d967 mono_jit_runtime_invoke + 2247 (mini-runtime.c:2563)
115 medinect.offimed.be           	0x00000001035fb378 do_runtime_invoke + 88 (object.c:2820)
116 medinect.offimed.be           	0x00000001035fe8c0 do_exec_main_checked + 144 (object.c:4641)
117 medinect.offimed.be           	0x000000010349883a mono_jit_exec + 298 (driver.g.c:1049)
118 medinect.offimed.be           	0x000000010349ad4a mono_main + 8458 (driver.g.c:2172)
119 medinect.offimed.be           	0x000000010343f3f4 xamarin_main + 980 (launcher.m:606)
120 medinect.offimed.be           	0x0000000103440104 main + 36 (launcher.m:617)
121 libdyld.dylib                 	0x00007fffab655255 start + 1

Thread 1:: SGen worker
0   libsystem_kernel.dylib        	0x00007fffab783c86 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fffab86d96a _pthread_cond_wait + 712
2   medinect.offimed.be           	0x00000001036918b0 thread_func + 624 (mono-os-mutex.h:150)
3   libsystem_pthread.dylib       	0x00007fffab86caab _pthread_body + 180
4   libsystem_pthread.dylib       	0x00007fffab86c9f7 _pthread_start + 286
5   libsystem_pthread.dylib       	0x00007fffab86c1fd thread_start + 13

Thread 2:: Finalizer
0   libsystem_kernel.dylib        	0x00007fffab77c3c6 semaphore_wait_trap + 10
1   medinect.offimed.be           	0x0000000103599b31 finalizer_thread + 193 (mono-os-semaphore.h:90)
2   medinect.offimed.be           	0x000000010364c263 start_wrapper + 339 (threads.c:760)
3   medinect.offimed.be           	0x00000001036b9a62 inner_start_thread + 354 (mono-threads.c:1183)
4   libsystem_pthread.dylib       	0x00007fffab86caab _pthread_body + 180
5   libsystem_pthread.dylib       	0x00007fffab86c9f7 _pthread_start + 286
6   libsystem_pthread.dylib       	0x00007fffab86c1fd thread_start + 13

Thread 3:: Debugger agent
0   libsystem_kernel.dylib        	0x00007fffab783e8a __recvfrom + 10
1   medinect.offimed.be           	0x000000010348dd15 socket_transport_recv + 149 (debugger-agent.c:1132)
2   medinect.offimed.be           	0x0000000103477d36 debugger_thread + 662 (debugger-agent.c:1538)
3   medinect.offimed.be           	0x00000001036b9a62 inner_start_thread + 354 (mono-threads.c:1183)
4   libsystem_pthread.dylib       	0x00007fffab86caab _pthread_body + 180
5   libsystem_pthread.dylib       	0x00007fffab86c9f7 _pthread_start + 286
6   libsystem_pthread.dylib       	0x00007fffab86c1fd thread_start + 13

Thread 4:: Timer-Scheduler
0   libsystem_kernel.dylib        	0x00007fffab783c86 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fffab86d96a _pthread_cond_wait + 712
2   medinect.offimed.be           	0x00000001036c0273 mono_os_cond_timedwait + 163 (mono-os-mutex.h:150)
3   medinect.offimed.be           	0x00000001036bef06 mono_w32handle_timedwait_signal_handle + 358 (w32handle.c:976)
4   medinect.offimed.be           	0x00000001036becd1 mono_w32handle_wait_one + 929 (w32handle.c:1238)
5   medinect.offimed.be           	0x00000001036a3b09 wapi_WaitForSingleObjectEx + 9 (wait.c:42)
6   medinect.offimed.be           	0x0000000103647484 mono_wait_uninterrupted + 116 (threads.c:1586)
7   medinect.offimed.be           	0x000000010364777d ves_icall_System_Threading_WaitHandle_WaitOne_internal + 109 (threads.c:1722)
8   ???                           	0x000000010fd2137b 0 + 4560393083
9   ???                           	0x000000010fd20980 0 + 4560390528
10  ???                           	0x000000010fd19ff6 0 + 4560363510
11  ???                           	0x000000010fd17c5c 0 + 4560354396
12  medinect.offimed.be           	0x000000010353d967 mono_jit_runtime_invoke + 2247 (mini-runtime.c:2563)
13  medinect.offimed.be           	0x00000001035fb378 do_runtime_invoke + 88 (object.c:2820)
14  medinect.offimed.be           	0x000000010364c35b start_wrapper + 587 (threads.c:770)
15  medinect.offimed.be           	0x00000001036b9a62 inner_start_thread + 354 (mono-threads.c:1183)
16  libsystem_pthread.dylib       	0x00007fffab86caab _pthread_body + 180
17  libsystem_pthread.dylib       	0x00007fffab86c9f7 _pthread_start + 286
18  libsystem_pthread.dylib       	0x00007fffab86c1fd thread_start + 13

Thread 5:: tid_bc03
0   medinect.offimed.be           	0x0000000103676337 major_start_major_collection + 359 (sgen-marksweep.c:1307)
1   medinect.offimed.be           	0x0000000103670c29 major_start_collection + 361 (sgen-gc.c:1910)
2   medinect.offimed.be           	0x000000010366c51e major_do_collection + 110 (sgen-gc.c:2066)
3   medinect.offimed.be           	0x000000010366b98e sgen_perform_collection + 686 (sgen-gc.c:2263)
4   medinect.offimed.be           	0x000000010366d163 sgen_gc_collect + 51 (mono-os-mutex.h:118)
5   ???                           	0x000000011371d452 0 + 4621194322
6   ???                           	0x000000010fd17c5c 0 + 4560354396
7   medinect.offimed.be           	0x000000010353d967 mono_jit_runtime_invoke + 2247 (mini-runtime.c:2563)
8   medinect.offimed.be           	0x00000001035fb378 do_runtime_invoke + 88 (object.c:2820)
9   medinect.offimed.be           	0x000000010364c35b start_wrapper + 587 (threads.c:770)
10  medinect.offimed.be           	0x00000001036b9a62 inner_start_thread + 354 (mono-threads.c:1183)
11  libsystem_pthread.dylib       	0x00007fffab86caab _pthread_body + 180
12  libsystem_pthread.dylib       	0x00007fffab86c9f7 _pthread_start + 286
13  libsystem_pthread.dylib       	0x00007fffab86c1fd thread_start + 13

Thread 6:: com.apple.NSEventThread
0   libsystem_kernel.dylib        	0x00007fffab77c38a mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fffab77b7d7 mach_msg + 55
2   com.apple.CoreFoundation      	0x00007fff96058e84 __CFRunLoopServiceMachPort + 212
3   com.apple.CoreFoundation      	0x00007fff96058301 __CFRunLoopRun + 1361
4   com.apple.CoreFoundation      	0x00007fff96057b54 CFRunLoopRunSpecific + 420
5   com.apple.AppKit              	0x00007fff93cd5f92 _NSEventThread + 205
6   libsystem_pthread.dylib       	0x00007fffab86caab _pthread_body + 180
7   libsystem_pthread.dylib       	0x00007fffab86c9f7 _pthread_start + 286
8   libsystem_pthread.dylib       	0x00007fffab86c1fd thread_start + 13

Thread 7:
0   libsystem_kernel.dylib        	0x00007fffab783c86 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fffab86d96a _pthread_cond_wait + 712
2   libc++.1.dylib                	0x00007fffaa1f558d std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 47
3   com.apple.JavaScriptCore      	0x00007fff98efe49c void std::__1::condition_variable_any::wait<std::__1::unique_lock<bmalloc::Mutex> >(std::__1::unique_lock<bmalloc::Mutex>&) + 108
4   com.apple.JavaScriptCore      	0x00007fff98efe41b bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadRunLoop() + 155
5   com.apple.JavaScriptCore      	0x00007fff98efe2e9 bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadEntryPoint(bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*) + 9
6   com.apple.JavaScriptCore      	0x00007fff98efe59d void* std::__1::__thread_proxy<std::__1::tuple<void (*)(bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*), bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*> >(void*) + 93
7   libsystem_pthread.dylib       	0x00007fffab86caab _pthread_body + 180
8   libsystem_pthread.dylib       	0x00007fffab86c9f7 _pthread_start + 286
9   libsystem_pthread.dylib       	0x00007fffab86c1fd thread_start + 13

Thread 8:: CVDisplayLink
0   libsystem_kernel.dylib        	0x00007fffab783c86 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fffab86d96a _pthread_cond_wait + 712
2   com.apple.CoreVideo           	0x00007fff97735bcc CVDisplayLink::runIOThread() + 694
3   libsystem_pthread.dylib       	0x00007fffab86caab _pthread_body + 180
4   libsystem_pthread.dylib       	0x00007fffab86c9f7 _pthread_start + 286
5   libsystem_pthread.dylib       	0x00007fffab86c1fd thread_start + 13

Thread 9:: JIT Worklist Worker Thread
0   libsystem_kernel.dylib        	0x00007fffab783c86 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fffab86d96a _pthread_cond_wait + 712
2   libc++.1.dylib                	0x00007fffaa1f558d std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 47
3   com.apple.JavaScriptCore      	0x00007fff98ee86be WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 2622
4   com.apple.JavaScriptCore      	0x00007fff98c9eb6a JSC::JITWorklist::runThread() + 234
5   com.apple.JavaScriptCore      	0x00007fff98c9effd std::__1::__function::__func<JSC::JITWorklist::JITWorklist()::$_0, std::__1::allocator<JSC::JITWorklist::JITWorklist()::$_0>, void ()>::operator()() + 13
6   com.apple.JavaScriptCore      	0x00007fff984e8262 WTF::threadEntryPoint(void*) + 178
7   com.apple.JavaScriptCore      	0x00007fff984e818f WTF::wtfThreadEntryPoint(void*) + 15
8   libsystem_pthread.dylib       	0x00007fffab86caab _pthread_body + 180
9   libsystem_pthread.dylib       	0x00007fffab86c9f7 _pthread_start + 286
10  libsystem_pthread.dylib       	0x00007fffab86c1fd thread_start + 13

Thread 10:: WTF Parallel Helper Thread
0   libsystem_kernel.dylib        	0x00007fffab783c86 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fffab86d96a _pthread_cond_wait + 712
2   libc++.1.dylib                	0x00007fffaa1f558d std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 47
3   com.apple.JavaScriptCore      	0x00007fff98ee86be WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 2622
4   com.apple.JavaScriptCore      	0x00007fff98ee7a32 WTF::ParallelHelperPool::waitForClientWithTask(WTF::Locker<WTF::LockBase> const&) + 370
5   com.apple.JavaScriptCore      	0x00007fff98ee77a3 WTF::ParallelHelperPool::helperThreadBody() + 83
6   com.apple.JavaScriptCore      	0x00007fff984e8262 WTF::threadEntryPoint(void*) + 178
7   com.apple.JavaScriptCore      	0x00007fff984e818f WTF::wtfThreadEntryPoint(void*) + 15
8   libsystem_pthread.dylib       	0x00007fffab86caab _pthread_body + 180
9   libsystem_pthread.dylib       	0x00007fffab86c9f7 _pthread_start + 286
10  libsystem_pthread.dylib       	0x00007fffab86c1fd thread_start + 13

Thread 11:: WTF Parallel Helper Thread
0   libsystem_kernel.dylib        	0x00007fffab783c86 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fffab86d96a _pthread_cond_wait + 712
2   libc++.1.dylib                	0x00007fffaa1f558d std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 47
3   com.apple.JavaScriptCore      	0x00007fff98ee86be WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 2622
4   com.apple.JavaScriptCore      	0x00007fff98ee7a32 WTF::ParallelHelperPool::waitForClientWithTask(WTF::Locker<WTF::LockBase> const&) + 370
5   com.apple.JavaScriptCore      	0x00007fff98ee77a3 WTF::ParallelHelperPool::helperThreadBody() + 83
6   com.apple.JavaScriptCore      	0x00007fff984e8262 WTF::threadEntryPoint(void*) + 178
7   com.apple.JavaScriptCore      	0x00007fff984e818f WTF::wtfThreadEntryPoint(void*) + 15
8   libsystem_pthread.dylib       	0x00007fffab86caab _pthread_body + 180
9   libsystem_pthread.dylib       	0x00007fffab86c9f7 _pthread_start + 286
10  libsystem_pthread.dylib       	0x00007fffab86c1fd thread_start + 13

Thread 12:: WTF Parallel Helper Thread
0   libsystem_kernel.dylib        	0x00007fffab783c86 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fffab86d96a _pthread_cond_wait + 712
2   libc++.1.dylib                	0x00007fffaa1f558d std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 47
3   com.apple.JavaScriptCore      	0x00007fff98ee86be WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 2622
4   com.apple.JavaScriptCore      	0x00007fff98ee7a32 WTF::ParallelHelperPool::waitForClientWithTask(WTF::Locker<WTF::LockBase> const&) + 370
5   com.apple.JavaScriptCore      	0x00007fff98ee77a3 WTF::ParallelHelperPool::helperThreadBody() + 83
6   com.apple.JavaScriptCore      	0x00007fff984e8262 WTF::threadEntryPoint(void*) + 178
7   com.apple.JavaScriptCore      	0x00007fff984e818f WTF::wtfThreadEntryPoint(void*) + 15
8   libsystem_pthread.dylib       	0x00007fffab86caab _pthread_body + 180
9   libsystem_pthread.dylib       	0x00007fffab86c9f7 _pthread_start + 286
10  libsystem_pthread.dylib       	0x00007fffab86c1fd thread_start + 13

Thread 13:: com.apple.NSURLConnectionLoader
0   libsystem_kernel.dylib        	0x00007fffab77c38a mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fffab77b7d7 mach_msg + 55
2   com.apple.CoreFoundation      	0x00007fff96058e84 __CFRunLoopServiceMachPort + 212
3   com.apple.CoreFoundation      	0x00007fff96058301 __CFRunLoopRun + 1361
4   com.apple.CoreFoundation      	0x00007fff96057b54 CFRunLoopRunSpecific + 420
5   com.apple.CFNetwork           	0x00007fff951c6680 +[NSURLConnection(Loader) _resourceLoadLoop:] + 313
6   com.apple.Foundation          	0x00007fff97a9ac6d __NSThread__start__ + 1243
7   libsystem_pthread.dylib       	0x00007fffab86caab _pthread_body + 180
8   libsystem_pthread.dylib       	0x00007fffab86c9f7 _pthread_start + 286
9   libsystem_pthread.dylib       	0x00007fffab86c1fd thread_start + 13

Thread 14:: WebCore: IconDatabase
0   libsystem_kernel.dylib        	0x00007fffab783c86 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fffab86d96a _pthread_cond_wait + 712
2   libc++.1.dylib                	0x00007fffaa1f558d std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 47
3   com.apple.JavaScriptCore      	0x00007fff98ee86be WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 2622
4   com.apple.WebCore             	0x00007fff9d067d85 WebCore::IconDatabase::syncThreadMainLoop() + 613
5   com.apple.WebCore             	0x00007fff9d06584c WebCore::IconDatabase::iconDatabaseSyncThread() + 380
6   com.apple.JavaScriptCore      	0x00007fff984e8262 WTF::threadEntryPoint(void*) + 178
7   com.apple.JavaScriptCore      	0x00007fff984e818f WTF::wtfThreadEntryPoint(void*) + 15
8   libsystem_pthread.dylib       	0x00007fffab86caab _pthread_body + 180
9   libsystem_pthread.dylib       	0x00007fffab86c9f7 _pthread_start + 286
10  libsystem_pthread.dylib       	0x00007fffab86c1fd thread_start + 13

Thread 15:: DFG Worklist Worker Thread
0   libsystem_kernel.dylib        	0x00007fffab783c86 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fffab86d96a _pthread_cond_wait + 712
2   libc++.1.dylib                	0x00007fffaa1f558d std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 47
3   com.apple.JavaScriptCore      	0x00007fff98ee86be WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 2622
4   com.apple.JavaScriptCore      	0x00007fff98a99cee JSC::DFG::Worklist::runThread(JSC::DFG::ThreadData*) + 382
5   com.apple.JavaScriptCore      	0x00007fff984e8262 WTF::threadEntryPoint(void*) + 178
6   com.apple.JavaScriptCore      	0x00007fff984e818f WTF::wtfThreadEntryPoint(void*) + 15
7   libsystem_pthread.dylib       	0x00007fffab86caab _pthread_body + 180
8   libsystem_pthread.dylib       	0x00007fffab86c9f7 _pthread_start + 286
9   libsystem_pthread.dylib       	0x00007fffab86c1fd thread_start + 13

Thread 16:: NetworkLoad
0   libsystem_kernel.dylib        	0x00007fffab77c38a mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fffab77b7d7 mach_msg + 55
2   com.apple.CoreFoundation      	0x00007fff96058e84 __CFRunLoopServiceMachPort + 212
3   com.apple.CoreFoundation      	0x00007fff96058301 __CFRunLoopRun + 1361
4   com.apple.CoreFoundation      	0x00007fff96057b54 CFRunLoopRunSpecific + 420
5   com.apple.GeoServices         	0x00007fffa43a863a _runNetworkThread + 445
6   libsystem_pthread.dylib       	0x00007fffab86caab _pthread_body + 180
7   libsystem_pthread.dylib       	0x00007fffab86c9f7 _pthread_start + 286
8   libsystem_pthread.dylib       	0x00007fffab86c1fd thread_start + 13

Thread 17:: tid_1b103
0   libsystem_kernel.dylib        	0x00007fffab783f4a __select + 10
1   medinect.offimed.be           	0x00000001036b2bd7 mono_poll + 407 (mono-poll.c:83)
2   medinect.offimed.be           	0x000000010363fd44 poll_event_wait + 260 (threadpool-ms-io-poll.c:147)
3   medinect.offimed.be           	0x000000010363f7a4 selector_thread + 1156 (threadpool-ms-io.c:426)
4   medinect.offimed.be           	0x000000010364c263 start_wrapper + 339 (threads.c:760)
5   medinect.offimed.be           	0x00000001036b9a62 inner_start_thread + 354 (mono-threads.c:1183)
6   libsystem_pthread.dylib       	0x00007fffab86caab _pthread_body + 180
7   libsystem_pthread.dylib       	0x00007fffab86c9f7 _pthread_start + 286
8   libsystem_pthread.dylib       	0x00007fffab86c1fd thread_start + 13

Thread 18:: CVDisplayLink
0   libsystem_kernel.dylib        	0x00007fffab783c86 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fffab86d96a _pthread_cond_wait + 712
2   com.apple.CoreVideo           	0x00007fff97735bcc CVDisplayLink::runIOThread() + 694
3   libsystem_pthread.dylib       	0x00007fffab86caab _pthread_body + 180
4   libsystem_pthread.dylib       	0x00007fffab86c9f7 _pthread_start + 286
5   libsystem_pthread.dylib       	0x00007fffab86c1fd thread_start + 13

Thread 19:: Threadpool worker
0   libsystem_kernel.dylib        	0x00007fffab783c86 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fffab86d96a _pthread_cond_wait + 712
2   medinect.offimed.be           	0x0000000103641af5 mono_coop_cond_timedwait + 149 (mono-os-mutex.h:183)
3   medinect.offimed.be           	0x0000000103643ee3 worker_thread + 595 (threadpool-ms.c:549)
4   medinect.offimed.be           	0x000000010364c263 start_wrapper + 339 (threads.c:760)
5   medinect.offimed.be           	0x00000001036b9a62 inner_start_thread + 354 (mono-threads.c:1183)
6   libsystem_pthread.dylib       	0x00007fffab86caab _pthread_body + 180
7   libsystem_pthread.dylib       	0x00007fffab86c9f7 _pthread_start + 286
8   libsystem_pthread.dylib       	0x00007fffab86c1fd thread_start + 13

Thread 20:: Threadpool worker
0   libsystem_kernel.dylib        	0x00007fffab783c86 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fffab86d96a _pthread_cond_wait + 712
2   medinect.offimed.be           	0x0000000103641af5 mono_coop_cond_timedwait + 149 (mono-os-mutex.h:183)
3   medinect.offimed.be           	0x0000000103643ee3 worker_thread + 595 (threadpool-ms.c:549)
4   medinect.offimed.be           	0x000000010364c263 start_wrapper + 339 (threads.c:760)
5   medinect.offimed.be           	0x00000001036b9a62 inner_start_thread + 354 (mono-threads.c:1183)
6   libsystem_pthread.dylib       	0x00007fffab86caab _pthread_body + 180
7   libsystem_pthread.dylib       	0x00007fffab86c9f7 _pthread_start + 286
8   libsystem_pthread.dylib       	0x00007fffab86c1fd thread_start + 13

Thread 21:: Threadpool worker
0   libsystem_kernel.dylib        	0x00007fffab783c86 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fffab86d96a _pthread_cond_wait + 712
2   medinect.offimed.be           	0x0000000103641af5 mono_coop_cond_timedwait + 149 (mono-os-mutex.h:183)
3   medinect.offimed.be           	0x0000000103643ee3 worker_thread + 595 (threadpool-ms.c:549)
4   medinect.offimed.be           	0x000000010364c263 start_wrapper + 339 (threads.c:760)
5   medinect.offimed.be           	0x00000001036b9a62 inner_start_thread + 354 (mono-threads.c:1183)
6   libsystem_pthread.dylib       	0x00007fffab86caab _pthread_body + 180
7   libsystem_pthread.dylib       	0x00007fffab86c9f7 _pthread_start + 286
8   libsystem_pthread.dylib       	0x00007fffab86c1fd thread_start + 13

Thread 22:: Threadpool worker
0   libsystem_kernel.dylib        	0x00007fffab783c86 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fffab86d96a _pthread_cond_wait + 712
2   medinect.offimed.be           	0x0000000103641af5 mono_coop_cond_timedwait + 149 (mono-os-mutex.h:183)
3   medinect.offimed.be           	0x0000000103643ee3 worker_thread + 595 (threadpool-ms.c:549)
4   medinect.offimed.be           	0x000000010364c263 start_wrapper + 339 (threads.c:760)
5   medinect.offimed.be           	0x00000001036b9a62 inner_start_thread + 354 (mono-threads.c:1183)
6   libsystem_pthread.dylib       	0x00007fffab86caab _pthread_body + 180
7   libsystem_pthread.dylib       	0x00007fffab86c9f7 _pthread_start + 286
8   libsystem_pthread.dylib       	0x00007fffab86c1fd thread_start + 13

Thread 23:: tid_122e7
0   libsystem_kernel.dylib        	0x00007fffab7844e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fffab86c791 _pthread_wqthread + 1426
2   libsystem_pthread.dylib       	0x00007fffab86c1ed start_wqthread + 13

Thread 24:: tid_4233
0   libsystem_kernel.dylib        	0x00007fffab7844e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fffab86c791 _pthread_wqthread + 1426
2   libsystem_pthread.dylib       	0x00007fffab86c1ed start_wqthread + 13

Thread 25:: tid_1f397
0   libsystem_kernel.dylib        	0x00007fffab7844e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fffab86c791 _pthread_wqthread + 1426
2   libsystem_pthread.dylib       	0x00007fffab86c1ed start_wqthread + 13

Thread 26:: tid_24703
0   libsystem_pthread.dylib       	0x00007fffab86c1e0 start_wqthread + 0

Thread 27:: tid_25a03
0   libsystem_kernel.dylib        	0x00007fffab7844e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fffab86c791 _pthread_wqthread + 1426
2   libsystem_pthread.dylib       	0x00007fffab86c1ed start_wqthread + 13

Thread 28:: tid_1fd53
0   libsystem_kernel.dylib        	0x00007fffab7844e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fffab86c791 _pthread_wqthread + 1426
2   libsystem_pthread.dylib       	0x00007fffab86c1ed start_wqthread + 13

Thread 29 Crashed:: Dispatch queue: NSOperationQueue 0x60800d821b40 :: NSOperation 0x6000022a9d20 (QOS: USER_INTERACTIVE)
0   libsystem_kernel.dylib        	0x00007fffab783dd6 __pthread_kill + 10
1   libsystem_pthread.dylib       	0x00007fffab86f787 pthread_kill + 90
2   libsystem_c.dylib             	0x00007fffab6e94bb __abort + 140
3   libsystem_c.dylib             	0x00007fffab6e942f abort + 144
4   libc++abi.dylib               	0x00007fffaa24685a abort_message + 266
5   libc++abi.dylib               	0x00007fffaa26bc4f default_terminate_handler() + 267
6   libobjc.A.dylib               	0x00007fffaad75b8e _objc_terminate() + 103
7   libc++abi.dylib               	0x00007fffaa268d69 std::__terminate(void (*)()) + 8
8   libc++abi.dylib               	0x00007fffaa268de3 std::terminate() + 51
9   libdispatch.dylib             	0x00007fffab61f0cc _dispatch_client_callout + 28
10  libdispatch.dylib             	0x00007fffab635ae5 _dispatch_queue_serial_drain + 896
11  libdispatch.dylib             	0x00007fffab627cd9 _dispatch_queue_invoke + 1046
12  libdispatch.dylib             	0x00007fffab620e70 _dispatch_root_queue_drain + 476
13  libdispatch.dylib             	0x00007fffab620c47 _dispatch_worker_thread3 + 99
14  libsystem_pthread.dylib       	0x00007fffab86c712 _pthread_wqthread + 1299
15  libsystem_pthread.dylib       	0x00007fffab86c1ed start_wqthread + 13

Thread 30:: tid_2113b
0   libsystem_kernel.dylib        	0x00007fffab7844e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fffab86c791 _pthread_wqthread + 1426
2   libsystem_pthread.dylib       	0x00007fffab86c1ed start_wqthread + 13

Thread 31:: Dispatch queue: NSOperationQueue 0x60800d821b40 :: NSOperation 0x6000034bc560 (QOS: USER_INTERACTIVE)
0   libsystem_kernel.dylib        	0x00007fffab784482 __wait4 + 10
1   medinect.offimed.be           	0x000000010352d4b1 mono_handle_native_sigsegv + 433 (mini-exceptions.c:2490)
2   medinect.offimed.be           	0x000000010353a7e1 mono_sigsegv_signal_handler + 225 (mini-runtime.c:2846)
3   libsystem_platform.dylib      	0x00007fffab862bba _sigtramp + 26
4   ???                           	0x0000000000000003 0 + 3
5   com.apple.Foundation          	0x00007fff97a7feca -[NSConcreteMapTable setObject:forKey:] + 165
6   com.apple.AppKit              	0x00007fff93cd0d08 -[NSWindow _threadContext] + 386
7   com.apple.AppKit              	0x00007fff93cd0496 -[NSView lockFocusIfCanDraw] + 117
8   com.apple.AppKit              	0x00007fff945186cd -[_NSViewDrawOperation main] + 158
9   com.apple.Foundation          	0x00007fff97aaa6e4 -[__NSOperationInternal _start:] + 672
10  com.apple.Foundation          	0x00007fff97aa659b __NSOQSchedule_f + 201
11  libdispatch.dylib             	0x00007fffab61f0b8 _dispatch_client_callout + 8
12  libdispatch.dylib             	0x00007fffab635ae5 _dispatch_queue_serial_drain + 896
13  libdispatch.dylib             	0x00007fffab627cd9 _dispatch_queue_invoke + 1046
14  libdispatch.dylib             	0x00007fffab620e70 _dispatch_root_queue_drain + 476
15  libdispatch.dylib             	0x00007fffab620c47 _dispatch_worker_thread3 + 99
16  libsystem_pthread.dylib       	0x00007fffab86c712 _pthread_wqthread + 1299
17  libsystem_pthread.dylib       	0x00007fffab86c1ed start_wqthread + 13

Thread 32:: tid_1ce03
0   libsystem_pthread.dylib       	0x00007fffab86c1e0 start_wqthread + 0

Thread 33:: tid_22c63
0   libsystem_kernel.dylib        	0x00007fffab7844e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fffab86c791 _pthread_wqthread + 1426
2   libsystem_pthread.dylib       	0x00007fffab86c1ed start_wqthread + 13

Thread 34:: tid_23947
0   libsystem_kernel.dylib        	0x00007fffab7844e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fffab86c791 _pthread_wqthread + 1426
2   libsystem_pthread.dylib       	0x00007fffab86c1ed start_wqthread + 13

Thread 35:: tid_24c07
0   libsystem_kernel.dylib        	0x00007fffab7844e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fffab86c791 _pthread_wqthread + 1426
2   libsystem_pthread.dylib       	0x00007fffab86c1ed start_wqthread + 13

Thread 36:: tid_24a07
0   libsystem_kernel.dylib        	0x00007fffab7844e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fffab86c791 _pthread_wqthread + 1426
2   libsystem_pthread.dylib       	0x00007fffab86c1ed start_wqthread + 13

Thread 37:: tid_24f07
0   libsystem_pthread.dylib       	0x00007fffab86c1e0 start_wqthread + 0

Thread 38:: tid_25107
0   libsystem_kernel.dylib        	0x00007fffab7844e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fffab86c791 _pthread_wqthread + 1426
2   libsystem_pthread.dylib       	0x00007fffab86c1ed start_wqthread + 13

Thread 39:
0   libsystem_pthread.dylib       	0x00007fffab86c1e0 start_wqthread + 0

Thread 40:

Thread 29 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x0000000000000006  rcx: 0x000070000154a6f8  rdx: 0x0000000000000000
  rdi: 0x000000000001f843  rsi: 0x0000000000000006  rbp: 0x000070000154a720  rsp: 0x000070000154a6f8
   r8: 0x0000000000000000   r9: 0x0000000000989680  r10: 0x000000000c000000  r11: 0x0000000000000206
  r12: 0x000070000154a8b0  r13: 0x0000000000000030  r14: 0x000070000154b000  r15: 0x0000000000000008
  rip: 0x00007fffab783dd6  rfl: 0x0000000000000206  cr2: 0x0000000107f94004
  
Logical CPU:     0
Error Code:      0x02000148
Trap Number:     133
Comment 1 Timothy Risi 2017-01-20 19:42:36 UTC
Hello Alain,

Please include your full build logs and all version informations.

The easiest way to get exact version information is to use the 
"Xamarin Studio" menu, "About Xamarin Studio" item, "Show Details" 
button and copy/paste the version informations (you can use the 
"Copy Information" button).
Comment 2 Chris Hamons 2017-01-21 00:42:30 UTC
So I do not believe this qualifies as a bug. As I mentioned on this thread:

https://forums.xamarin.com/discussion/comment/203176

"In this specific case, it appears the example is corrupting internal Cocoa state..."

Previous to this bug, I've previously analyzed code from the reporter and found threading issues.

Considering there has been zero other reports of this issue, or any similar crash stack, unless I have some concrete evidence that this is a Xamarin.Mac bug I will default to believing this is related to misuse of APIs in the particular application.


As I understand debugging crashes of this sort is difficult, I will give the stack trace my best analysis, despite the fact that using bugzilla for this is inappropriate. In the future questions of this type are much better suited for the Xamarin.Mac forums.

We're crashing on thread 29, not the UI thread, doing some sort of dispatch work

Thread one is drawing some recursive NSVIew thing with a nine grid, which appears to in the middle of an animation context, due to a resizing. There is some code related to showing / hiding a toolbar?

That drawing appears to be triggered from C# code or have some in the stack:

58  medinect.offimed.be           	0x000000010343ec69 xamarin_dyn_objc_msgSend + 217
59  ???                           	0x0000000110b044d8 0 + 4574954712
60  ???                           	0x00000001922cbed0 0 + 6747373264
61  ???                           	0x000000010af656b1 0 + 4478883505
62  medinect.offimed.be           	0x000000010353d967 mono_jit_runtime_invoke + 2247 (mini-runtime.c:2563)

and above that we're in a mouse button down action from the event loop.

Thread 1 and 2 and 5 are doing some GC work.

Thread 7 suggests we have a web view in the visual tree, and are doing some allocation.,

So your UI has a web view, we're doing a GC of some type, and we're handling a button press. The button press is causing a toolbar or something similar to change the size of our visual tree, which is causing us to do animations and draw, something in that drawing is causing us to notice the problem and die.

Debugging suggestions include:

- See if you can nail down a reproduction use case. Maybe something in your application is showing/hiding a toolbar? Causing the window to resize by changing context? Changing selection which is somehow causing toolbars to change? Being able to reproduce this would be incredibly helpful for your ability to figure out what is wrong.

- Try running your application under Apple's Instruments Zombie detection. If there was some lifetime issue, that would help track it down. WebKit views in particular can be tricky if you forget to null back callback properties (like your Delegate) and a web request calls back after you've left the visual tree and been collected (not that I see that in this particular case).

- As I've suggested before, biset your application. Remove 1/2 of your views and try to reproduce. Keep going until you get to a section that is causing issues. Maybe try removing some/all of your modal dialogs and see if that "makes it go away". Once you track that down, getting a reproduction use case might be more reasonable.

- Try running your application from lldb:

Enter lldb MyApp.app/Contents/MacOS/MyApp in the Terminal.
Enter run in the Terminal.
Enter c in the Terminal.

In this case for example, you could possible switch to thread one and figure out what views are drawing.

To sum up, I believe this crashes caused by either bugs in Cocoa or misuse of Cocoa APIs corrupting internal Cocoa state. Given the large scale of your application, finding the root cause may be difficult, but that is not in scope of a Xamarin.Mac bug. I've laid out a few approaches I would take. 

If you happen to have a small application reproducing the issue, proof to suggest it is a bug in Xamarin.mac or the like, feel free to open another bug or file a post on the forums.