The mac solution is using Mono to implement the host/application, using Xamarin.Mac (ie. the `WebView` sample control) and relevant bits from MonoMac / Xammac sample projects.
The solution works wonderfully, with one exception: When I call window.close() the application crashes.
The same 'core' code is running on Windows platform was well, and when run on Windows the code does not show the same problem. Calling `window.close()` from JS properly results in native window closure and the host app remains running.
While attempting to debug this I set breakpoints for the following methods, none of these are trapped (ie. it would appear the failure is internal to CEF3 and/or the CefGlue proxies, as all pointers provided are non-null, and again, the same classes are in use on Windows platform and does not result in appcrash on Windows) -- this has been scrubbed, and "frob" references in the stacks are references to our solution. I can investigate as necessary, but I cannot provision proprietary code for review:
- CefLifeSpanHandler::DoClose
- CefLifeSpanHandler::on_before_close
- CefLifeSpanHandler::OnBeforeClose
To further the above, it's worth noting that breakpoints ARE hit for "CefLifeSpanHandler::on_after_created" (and related upstream handlers.)
This is what is being reported by the crash reporter on macOS:
Date/Time: 2017-01-04 12:55:27.880 -0800
OS Version: Mac OS X 10.12.2 (16C67)
Report Version: 12
Anonymous UUID: 183CC8DF-A3C3-5F7E-F076-9D77146B4DF2
Time Awake Since Boot: 880 seconds
System Integrity Protection: enabled
Crashed Thread: 0 CrBrowserMain Dispatch queue: com.apple.main-thread
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [0]
Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread
0 org.chromium.ContentShell.framework 0x000000010cda0571 0x10c395000 + 10532209
1 org.chromium.ContentShell.framework 0x000000010cdbd000 0x10c395000 + 10649600
2 org.chromium.ContentShell.framework 0x000000010cdd032f 0x10c395000 + 10728239
3 org.chromium.ContentShell.framework 0x000000011012baf4 0x10c395000 + 64580340
4 org.chromium.ContentShell.framework 0x0000000110021032 0x10c395000 + 63488050
5 org.chromium.ContentShell.framework 0x000000011001fe3a 0x10c395000 + 63483450
6 org.chromium.ContentShell.framework 0x00000001100265a6 0x10c395000 + 63509926
7 org.chromium.ContentShell.framework 0x000000011001277c 0x10c395000 + 63428476
8 org.chromium.ContentShell.framework 0x000000010d8eced8 0x10c395000 + 22380248
9 org.chromium.ContentShell.framework 0x000000010cda0afb 0x10c395000 + 10533627
10 org.chromium.ContentShell.framework 0x000000010cdcbf4c 0x10c395000 + 10710860
11 org.chromium.ContentShell.framework 0x000000010cdcc24c 0x10c395000 + 10711628
12 org.chromium.ContentShell.framework 0x000000010cdcc59b 0x10c395000 + 10712475
13 org.chromium.ContentShell.framework 0x000000010cdcf8b7 0x10c395000 + 10725559
14 org.chromium.ContentShell.framework 0x000000010cdbd64a 0x10c395000 + 10651210
15 org.chromium.ContentShell.framework 0x000000010cdcf264 0x10c395000 + 10723940
16 com.apple.CoreFoundation 0x00007fffbb4f78d1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
17 com.apple.CoreFoundation 0x00007fffbb4d8be7 __CFRunLoopDoSources0 + 423
18 com.apple.CoreFoundation 0x00007fffbb4d8156 __CFRunLoopRun + 934
19 com.apple.CoreFoundation 0x00007fffbb4d7b54 CFRunLoopRunSpecific + 420
20 com.apple.HIToolbox 0x00007fffbaa62acc RunCurrentEventLoopInMode + 240
21 com.apple.HIToolbox 0x00007fffbaa62901 ReceiveNextEventCommon + 432
22 com.apple.HIToolbox 0x00007fffbaa62736 _BlockUntilNextEventMatchingListInModeWithFilter + 71
23 com.apple.AppKit 0x00007fffb9008ae4 _DPSNextEvent + 1120
24 com.apple.AppKit 0x00007fffb978321f -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2789
25 org.chromium.ContentShell.framework 0x000000010cdd0100 0x10c395000 + 10727680
26 org.chromium.ContentShell.framework 0x000000010cdcf6ef 0x10c395000 + 10725103
27 org.chromium.ContentShell.framework 0x000000010cdcbaa7 0x10c395000 + 10709671
28 org.chromium.ContentShell.framework 0x000000010cded8a3 0x10c395000 + 10848419
29 org.chromium.ContentShell.framework 0x00000001104abbfd 0x10c395000 + 68250621
30 ??? 0x000000011935539c 0 + 4717892508
31 com.frobinator.froboz-pushar 0x000000010508f1a7 mono_jit_runtime_invoke + 2247 (mini-runtime.c:2563)
32 com.frobinator.froboz-pushar 0x000000010514c988 do_runtime_invoke + 88 (object.c:2820)
33 com.frobinator.froboz-pushar 0x000000010514c900 mono_runtime_invoke + 208 (object.c:2978)
34 com.frobinator.froboz-pushar 0x0000000104f8e435 xamarin_invoke_trampoline + 5589 (trampolines-invoke.m:441)
35 com.frobinator.froboz-pushar 0x0000000104f8f1ad xamarin_arch_trampoline + 189 (trampolines-x86_64.m:540)
36 com.frobinator.froboz-pushar 0x0000000104f90561 xamarin_x86_64_common_trampoline + 110
37 com.apple.Foundation 0x00007fffbcf5988a __NSThreadPerformPerform + 326
38 com.apple.CoreFoundation 0x00007fffbb4f78d1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
39 com.apple.CoreFoundation 0x00007fffbb4d8c6c __CFRunLoopDoSources0 + 556
40 com.apple.CoreFoundation 0x00007fffbb4d8156 __CFRunLoopRun + 934
41 com.apple.CoreFoundation 0x00007fffbb4d7b54 CFRunLoopRunSpecific + 420
42 com.apple.HIToolbox 0x00007fffbaa62acc RunCurrentEventLoopInMode + 240
43 com.apple.HIToolbox 0x00007fffbaa62901 ReceiveNextEventCommon + 432
44 com.apple.HIToolbox 0x00007fffbaa62736 _BlockUntilNextEventMatchingListInModeWithFilter + 71
45 com.apple.AppKit 0x00007fffb9008ae4 _DPSNextEvent + 1120
46 com.apple.AppKit 0x00007fffb978321f -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2789
47 com.apple.AppKit 0x00007fffb8ffd465 -[NSApplication run] + 926
48 com.apple.AppKit 0x00007fffb8fc7d80 NSApplicationMain + 1237
49 ??? 0x0000000116df280a 0 + 4678690826
50 ??? 0x0000000116df191d 0 + 4678687005
Thread 1:: SGen worker
0 libsystem_kernel.dylib 0x00007fffd0c03c86 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fffd0ced96a _pthread_cond_wait + 712
2 com.frobinator.froboz-pushar 0x00000001051e2e60 thread_func + 624 (mono-os-mutex.h:150)
3 libsystem_pthread.dylib 0x00007fffd0cecaab _pthread_body + 180
4 libsystem_pthread.dylib 0x00007fffd0cec9f7 _pthread_start + 286
5 libsystem_pthread.dylib 0x00007fffd0cec1fd thread_start + 13
Thread 2:: Finalizer
0 libsystem_kernel.dylib 0x00007fffd0bfc3c6 semaphore_wait_trap + 10
1 com.frobinator.froboz-pushar 0x00000001050eb1f1 finalizer_thread + 193 (mono-os-semaphore.h:90)
2 com.frobinator.froboz-pushar 0x000000010519d813 start_wrapper + 339 (threads.c:760)
3 com.frobinator.froboz-pushar 0x000000010520b012 inner_start_thread + 354 (mono-threads.c:1183)
4 libsystem_pthread.dylib 0x00007fffd0cecaab _pthread_body + 180
5 libsystem_pthread.dylib 0x00007fffd0cec9f7 _pthread_start + 286
6 libsystem_pthread.dylib 0x00007fffd0cec1fd thread_start + 13
Thread 3:: Debugger agent
0 libsystem_kernel.dylib 0x00007fffd0c03e8a __recvfrom + 10
1 com.frobinator.froboz-pushar 0x0000000104fdf815 socket_transport_recv + 149 (debugger-agent.c:1130)
2 com.frobinator.froboz-pushar 0x0000000104fc9886 debugger_thread + 662 (debugger-agent.c:1536)
3 com.frobinator.froboz-pushar 0x000000010520b012 inner_start_thread + 354 (mono-threads.c:1183)
4 libsystem_pthread.dylib 0x00007fffd0cecaab _pthread_body + 180
5 libsystem_pthread.dylib 0x00007fffd0cec9f7 _pthread_start + 286
6 libsystem_pthread.dylib 0x00007fffd0cec1fd thread_start + 13
Thread 4:
0 libsystem_kernel.dylib 0x00007fffd0c044e2 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fffd0cec5fe _pthread_wqthread + 1023
2 libsystem_pthread.dylib 0x00007fffd0cec1ed start_wqthread + 13
Thread 5:: NetworkConfigWatcher
0 libsystem_kernel.dylib 0x00007fffd0bfc38a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fffd0bfb7d7 mach_msg + 55
2 com.apple.CoreFoundation 0x00007fffbb4d8e84 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fffbb4d8301 __CFRunLoopRun + 1361
4 com.apple.CoreFoundation 0x00007fffbb4d7b54 CFRunLoopRunSpecific + 420
5 com.apple.Foundation 0x00007fffbcf0a612 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 277
6 org.chromium.ContentShell.framework 0x000000010cdcff8e 0x10c395000 + 10727310
7 org.chromium.ContentShell.framework 0x000000010cdcf6ef 0x10c395000 + 10725103
8 org.chromium.ContentShell.framework 0x000000010cdcbaa7 0x10c395000 + 10709671
9 org.chromium.ContentShell.framework 0x000000010cded8a3 0x10c395000 + 10848419
10 org.chromium.ContentShell.framework 0x000000010ce13ffd 0x10c395000 + 11005949
11 org.chromium.ContentShell.framework 0x000000010ce141c2 0x10c395000 + 11006402
12 org.chromium.ContentShell.framework 0x000000010ce0edb8 0x10c395000 + 10984888
13 libsystem_pthread.dylib 0x00007fffd0cecaab _pthread_body + 180
14 libsystem_pthread.dylib 0x00007fffd0cec9f7 _pthread_start + 286
15 libsystem_pthread.dylib 0x00007fffd0cec1fd thread_start + 13
Thread 6:: DnsConfigService
0 libsystem_kernel.dylib 0x00007fffd0c04e2a kevent + 10
1 org.chromium.ContentShell.framework 0x000000010ce4e167 0x10c395000 + 11243879
2 org.chromium.ContentShell.framework 0x000000010ce4bbfd 0x10c395000 + 11234301
3 org.chromium.ContentShell.framework 0x000000010cdcebbf 0x10c395000 + 10722239
4 org.chromium.ContentShell.framework 0x000000010cdcbaa7 0x10c395000 + 10709671
5 org.chromium.ContentShell.framework 0x000000010cded8a3 0x10c395000 + 10848419
6 org.chromium.ContentShell.framework 0x000000010ce13ffd 0x10c395000 + 11005949
7 org.chromium.ContentShell.framework 0x000000010ce141c2 0x10c395000 + 11006402
8 org.chromium.ContentShell.framework 0x000000010ce0edb8 0x10c395000 + 10984888
9 libsystem_pthread.dylib 0x00007fffd0cecaab _pthread_body + 180
10 libsystem_pthread.dylib 0x00007fffd0cec9f7 _pthread_start + 286
11 libsystem_pthread.dylib 0x00007fffd0cec1fd thread_start + 13
Thread 7:: WorkerPool/29187
0 libsystem_kernel.dylib 0x00007fffd0c03c86 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fffd0ced9a3 _pthread_cond_wait + 769
2 org.chromium.ContentShell.framework 0x000000010cdffb41 0x10c395000 + 10922817
3 org.chromium.ContentShell.framework 0x000000010ce16f1b 0x10c395000 + 11018011
4 org.chromium.ContentShell.framework 0x000000010ce17353 0x10c395000 + 11019091
5 org.chromium.ContentShell.framework 0x000000010ce0edb8 0x10c395000 + 10984888
6 libsystem_pthread.dylib 0x00007fffd0cecaab _pthread_body + 180
7 libsystem_pthread.dylib 0x00007fffd0cec9f7 _pthread_start + 286
8 libsystem_pthread.dylib 0x00007fffd0cec1fd thread_start + 13
Thread 8:: WorkerPool/29699
0 libsystem_kernel.dylib 0x00007fffd0c03c86 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fffd0ced9a3 _pthread_cond_wait + 769
2 org.chromium.ContentShell.framework 0x000000010cdffb41 0x10c395000 + 10922817
3 org.chromium.ContentShell.framework 0x000000010ce16f1b 0x10c395000 + 11018011
4 org.chromium.ContentShell.framework 0x000000010ce17353 0x10c395000 + 11019091
5 org.chromium.ContentShell.framework 0x000000010ce0edb8 0x10c395000 + 10984888
6 libsystem_pthread.dylib 0x00007fffd0cecaab _pthread_body + 180
7 libsystem_pthread.dylib 0x00007fffd0cec9f7 _pthread_start + 286
8 libsystem_pthread.dylib 0x00007fffd0cec1fd thread_start + 13
Thread 9:: Chrome_DBThread
0 libsystem_kernel.dylib 0x00007fffd0bfc38a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fffd0bfb7d7 mach_msg + 55
2 com.apple.CoreFoundation 0x00007fffbb4d8e84 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fffbb4d8301 __CFRunLoopRun + 1361
4 com.apple.CoreFoundation 0x00007fffbb4d7b54 CFRunLoopRunSpecific + 420
5 org.chromium.ContentShell.framework 0x000000010cdcfcdf 0x10c395000 + 10726623
6 org.chromium.ContentShell.framework 0x000000010cdcf6ef 0x10c395000 + 10725103
7 org.chromium.ContentShell.framework 0x000000010cdcbaa7 0x10c395000 + 10709671
8 org.chromium.ContentShell.framework 0x000000010cded8a3 0x10c395000 + 10848419
9 org.chromium.ContentShell.framework 0x000000010ce13ffd 0x10c395000 + 11005949
10 org.chromium.ContentShell.framework 0x000000010fd87cf4 0x10c395000 + 60763380
11 org.chromium.ContentShell.framework 0x000000010fd87e7c 0x10c395000 + 60763772
12 org.chromium.ContentShell.framework 0x000000010ce141c2 0x10c395000 + 11006402
13 org.chromium.ContentShell.framework 0x000000010ce0edb8 0x10c395000 + 10984888
14 libsystem_pthread.dylib 0x00007fffd0cecaab _pthread_body + 180
15 libsystem_pthread.dylib 0x00007fffd0cec9f7 _pthread_start + 286
16 libsystem_pthread.dylib 0x00007fffd0cec1fd thread_start + 13
Thread 10:: Chrome_FileThread
0 libsystem_kernel.dylib 0x00007fffd0c04e2a kevent + 10
1 org.chromium.ContentShell.framework 0x000000010ce4e167 0x10c395000 + 11243879
2 org.chromium.ContentShell.framework 0x000000010ce4bbfd 0x10c395000 + 11234301
3 org.chromium.ContentShell.framework 0x000000010cdcebbf 0x10c395000 + 10722239
4 org.chromium.ContentShell.framework 0x000000010cdcbaa7 0x10c395000 + 10709671
5 org.chromium.ContentShell.framework 0x000000010cded8a3 0x10c395000 + 10848419
6 org.chromium.ContentShell.framework 0x000000010ce13ffd 0x10c395000 + 11005949
7 org.chromium.ContentShell.framework 0x000000010fd87d24 0x10c395000 + 60763428
8 org.chromium.ContentShell.framework 0x000000010fd87e89 0x10c395000 + 60763785
9 org.chromium.ContentShell.framework 0x000000010ce141c2 0x10c395000 + 11006402
10 org.chromium.ContentShell.framework 0x000000010ce0edb8 0x10c395000 + 10984888
11 libsystem_pthread.dylib 0x00007fffd0cecaab _pthread_body + 180
12 libsystem_pthread.dylib 0x00007fffd0cec9f7 _pthread_start + 286
13 libsystem_pthread.dylib 0x00007fffd0cec1fd thread_start + 13
Thread 11:: Chrome_FileUserBlockingThread
0 libsystem_kernel.dylib 0x00007fffd0bfc38a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fffd0bfb7d7 mach_msg + 55
2 com.apple.CoreFoundation 0x00007fffbb4d8e84 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fffbb4d8301 __CFRunLoopRun + 1361
4 com.apple.CoreFoundation 0x00007fffbb4d7b54 CFRunLoopRunSpecific + 420
5 org.chromium.ContentShell.framework 0x000000010cdcfcdf 0x10c395000 + 10726623
6 org.chromium.ContentShell.framework 0x000000010cdcf6ef 0x10c395000 + 10725103
7 org.chromium.ContentShell.framework 0x000000010cdcbaa7 0x10c395000 + 10709671
8 org.chromium.ContentShell.framework 0x000000010cded8a3 0x10c395000 + 10848419
9 org.chromium.ContentShell.framework 0x000000010ce13ffd 0x10c395000 + 11005949
10 org.chromium.ContentShell.framework 0x000000010fd87d54 0x10c395000 + 60763476
11 org.chromium.ContentShell.framework 0x000000010fd87e96 0x10c395000 + 60763798
12 org.chromium.ContentShell.framework 0x000000010ce141c2 0x10c395000 + 11006402
13 org.chromium.ContentShell.framework 0x000000010ce0edb8 0x10c395000 + 10984888
14 libsystem_pthread.dylib 0x00007fffd0cecaab _pthread_body + 180
15 libsystem_pthread.dylib 0x00007fffd0cec9f7 _pthread_start + 286
16 libsystem_pthread.dylib 0x00007fffd0cec1fd thread_start + 13
Thread 12:: Chrome_ProcessLauncherThread
0 libsystem_kernel.dylib 0x00007fffd0bfc38a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fffd0bfb7d7 mach_msg + 55
2 com.apple.CoreFoundation 0x00007fffbb4d8e84 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fffbb4d8301 __CFRunLoopRun + 1361
4 com.apple.CoreFoundation 0x00007fffbb4d7b54 CFRunLoopRunSpecific + 420
5 org.chromium.ContentShell.framework 0x000000010cdcfcdf 0x10c395000 + 10726623
6 org.chromium.ContentShell.framework 0x000000010cdcf6ef 0x10c395000 + 10725103
7 org.chromium.ContentShell.framework 0x000000010cdcbaa7 0x10c395000 + 10709671
8 org.chromium.ContentShell.framework 0x000000010cded8a3 0x10c395000 + 10848419
9 org.chromium.ContentShell.framework 0x000000010ce13ffd 0x10c395000 + 11005949
10 org.chromium.ContentShell.framework 0x000000010fd87d84 0x10c395000 + 60763524
11 org.chromium.ContentShell.framework 0x000000010fd87ea3 0x10c395000 + 60763811
12 org.chromium.ContentShell.framework 0x000000010ce141c2 0x10c395000 + 11006402
13 org.chromium.ContentShell.framework 0x000000010ce0edb8 0x10c395000 + 10984888
14 libsystem_pthread.dylib 0x00007fffd0cecaab _pthread_body + 180
15 libsystem_pthread.dylib 0x00007fffd0cec9f7 _pthread_start + 286
16 libsystem_pthread.dylib 0x00007fffd0cec1fd thread_start + 13
Thread 13:: Chrome_CacheThread
0 libsystem_kernel.dylib 0x00007fffd0bfc38a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fffd0bfb7d7 mach_msg + 55
2 com.apple.CoreFoundation 0x00007fffbb4d8e84 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fffbb4d8301 __CFRunLoopRun + 1361
4 com.apple.CoreFoundation 0x00007fffbb4d7b54 CFRunLoopRunSpecific + 420
5 org.chromium.ContentShell.framework 0x000000010cdcfcdf 0x10c395000 + 10726623
6 org.chromium.ContentShell.framework 0x000000010cdcf6ef 0x10c395000 + 10725103
7 org.chromium.ContentShell.framework 0x000000010cdcbaa7 0x10c395000 + 10709671
8 org.chromium.ContentShell.framework 0x000000010cded8a3 0x10c395000 + 10848419
9 org.chromium.ContentShell.framework 0x000000010ce13ffd 0x10c395000 + 11005949
10 org.chromium.ContentShell.framework 0x000000010fd87db4 0x10c395000 + 60763572
11 org.chromium.ContentShell.framework 0x000000010fd87eb0 0x10c395000 + 60763824
12 org.chromium.ContentShell.framework 0x000000010ce141c2 0x10c395000 + 11006402
13 org.chromium.ContentShell.framework 0x000000010ce0edb8 0x10c395000 + 10984888
14 libsystem_pthread.dylib 0x00007fffd0cecaab _pthread_body + 180
15 libsystem_pthread.dylib 0x00007fffd0cec9f7 _pthread_start + 286
16 libsystem_pthread.dylib 0x00007fffd0cec1fd thread_start + 13
Thread 14:: tid_8103
0 libsystem_kernel.dylib 0x00007fffd0c04e2a kevent + 10
1 org.chromium.ContentShell.framework 0x000000010ce4e167 0x10c395000 + 11243879
2 org.chromium.ContentShell.framework 0x000000010ce4bbfd 0x10c395000 + 11234301
3 org.chromium.ContentShell.framework 0x000000010cdceba6 0x10c395000 + 10722214
4 org.chromium.ContentShell.framework 0x000000010cdcbaa7 0x10c395000 + 10709671
5 org.chromium.ContentShell.framework 0x000000010cded8a3 0x10c395000 + 10848419
6 org.chromium.ContentShell.framework 0x000000010ce13ffd 0x10c395000 + 11005949
7 org.chromium.ContentShell.framework 0x000000010fd87de4 0x10c395000 + 60763620
8 org.chromium.ContentShell.framework 0x000000010fd87ebd 0x10c395000 + 60763837
9 org.chromium.ContentShell.framework 0x000000010ce141c2 0x10c395000 + 11006402
10 org.chromium.ContentShell.framework 0x000000010ce0edb8 0x10c395000 + 10984888
11 libsystem_pthread.dylib 0x00007fffd0cecaab _pthread_body + 180
12 libsystem_pthread.dylib 0x00007fffd0cec9f7 _pthread_start + 286
13 libsystem_pthread.dylib 0x00007fffd0cec1fd thread_start + 13
Thread 15:: IndexedDB
0 libsystem_kernel.dylib 0x00007fffd0bfc38a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fffd0bfb7d7 mach_msg + 55
2 com.apple.CoreFoundation 0x00007fffbb4d8e84 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fffbb4d8301 __CFRunLoopRun + 1361
4 com.apple.CoreFoundation 0x00007fffbb4d7b54 CFRunLoopRunSpecific + 420
5 org.chromium.ContentShell.framework 0x000000010cdcfcdf 0x10c395000 + 10726623
6 org.chromium.ContentShell.framework 0x000000010cdcf6ef 0x10c395000 + 10725103
7 org.chromium.ContentShell.framework 0x000000010cdcbaa7 0x10c395000 + 10709671
8 org.chromium.ContentShell.framework 0x000000010cded8a3 0x10c395000 + 10848419
9 org.chromium.ContentShell.framework 0x000000010ce13ffd 0x10c395000 + 11005949
10 org.chromium.ContentShell.framework 0x000000010ce141c2 0x10c395000 + 11006402
11 org.chromium.ContentShell.framework 0x000000010ce0edb8 0x10c395000 + 10984888
12 libsystem_pthread.dylib 0x00007fffd0cecaab _pthread_body + 180
13 libsystem_pthread.dylib 0x00007fffd0cec9f7 _pthread_start + 286
14 libsystem_pthread.dylib 0x00007fffd0cec1fd thread_start + 13
Thread 16:: CompositorTileWorker1/41475
0 libsystem_kernel.dylib 0x00007fffd0c03c86 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fffd0ced96a _pthread_cond_wait + 712
2 org.chromium.ContentShell.framework 0x000000010cdffa5b 0x10c395000 + 10922587
3 org.chromium.ContentShell.framework 0x000000010cf07bc8 0x10c395000 + 12004296
4 org.chromium.ContentShell.framework 0x000000010ce13558 0x10c395000 + 11003224
5 org.chromium.ContentShell.framework 0x000000010ce1338d 0x10c395000 + 11002765
6 org.chromium.ContentShell.framework 0x000000010ce0edb8 0x10c395000 + 10984888
7 libsystem_pthread.dylib 0x00007fffd0cecaab _pthread_body + 180
8 libsystem_pthread.dylib 0x00007fffd0cec9f7 _pthread_start + 286
9 libsystem_pthread.dylib 0x00007fffd0cec1fd thread_start + 13
Thread 17:: AudioThread
0 libsystem_kernel.dylib 0x00007fffd0bfc38a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fffd0bfb7d7 mach_msg + 55
2 com.apple.CoreFoundation 0x00007fffbb4d8e84 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fffbb4d8301 __CFRunLoopRun + 1361
4 com.apple.CoreFoundation 0x00007fffbb4d7b54 CFRunLoopRunSpecific + 420
5 org.chromium.ContentShell.framework 0x000000010cdcfcdf 0x10c395000 + 10726623
6 org.chromium.ContentShell.framework 0x000000010cdcf6ef 0x10c395000 + 10725103
7 org.chromium.ContentShell.framework 0x000000010cdcbaa7 0x10c395000 + 10709671
8 org.chromium.ContentShell.framework 0x000000010cded8a3 0x10c395000 + 10848419
9 org.chromium.ContentShell.framework 0x000000010ce13ffd 0x10c395000 + 11005949
10 org.chromium.ContentShell.framework 0x000000010ce141c2 0x10c395000 + 11006402
11 org.chromium.ContentShell.framework 0x000000010ce0edb8 0x10c395000 + 10984888
12 libsystem_pthread.dylib 0x00007fffd0cecaab _pthread_body + 180
13 libsystem_pthread.dylib 0x00007fffd0cec9f7 _pthread_start + 286
14 libsystem_pthread.dylib 0x00007fffd0cec1fd thread_start + 13
Thread 18:: NetworkConfigWatcher
0 libsystem_kernel.dylib 0x00007fffd0bfc38a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fffd0bfb7d7 mach_msg + 55
2 com.apple.CoreFoundation 0x00007fffbb4d8e84 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fffbb4d8301 __CFRunLoopRun + 1361
4 com.apple.CoreFoundation 0x00007fffbb4d7b54 CFRunLoopRunSpecific + 420
5 com.apple.Foundation 0x00007fffbcf0a612 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 277
6 org.chromium.ContentShell.framework 0x000000010cdcff8e 0x10c395000 + 10727310
7 org.chromium.ContentShell.framework 0x000000010cdcf6ef 0x10c395000 + 10725103
8 org.chromium.ContentShell.framework 0x000000010cdcbaa7 0x10c395000 + 10709671
9 org.chromium.ContentShell.framework 0x000000010cded8a3 0x10c395000 + 10848419
10 org.chromium.ContentShell.framework 0x000000010ce13ffd 0x10c395000 + 11005949
11 org.chromium.ContentShell.framework 0x000000010ce141c2 0x10c395000 + 11006402
12 org.chromium.ContentShell.framework 0x000000010ce0edb8 0x10c395000 + 10984888
13 libsystem_pthread.dylib 0x00007fffd0cecaab _pthread_body + 180
14 libsystem_pthread.dylib 0x00007fffd0cec9f7 _pthread_start + 286
15 libsystem_pthread.dylib 0x00007fffd0cec1fd thread_start + 13
Thread 19:: Chrome_DevToolsHandlerThread
0 libsystem_kernel.dylib 0x00007fffd0c04e2a kevent + 10
1 org.chromium.ContentShell.framework 0x000000010ce4e167 0x10c395000 + 11243879
2 org.chromium.ContentShell.framework 0x000000010ce4bbfd 0x10c395000 + 11234301
3 org.chromium.ContentShell.framework 0x000000010cdcebbf 0x10c395000 + 10722239
4 org.chromium.ContentShell.framework 0x000000010cdcbaa7 0x10c395000 + 10709671
5 org.chromium.ContentShell.framework 0x000000010cded8a3 0x10c395000 + 10848419
6 org.chromium.ContentShell.framework 0x000000010ce13ffd 0x10c395000 + 11005949
7 org.chromium.ContentShell.framework 0x000000010ce141c2 0x10c395000 + 11006402
8 org.chromium.ContentShell.framework 0x000000010ce0edb8 0x10c395000 + 10984888
9 libsystem_pthread.dylib 0x00007fffd0cecaab _pthread_body + 180
10 libsystem_pthread.dylib 0x00007fffd0cec9f7 _pthread_start + 286
11 libsystem_pthread.dylib 0x00007fffd0cec1fd thread_start + 13
Thread 20:: tid_da03
0 libsystem_kernel.dylib 0x00007fffd0c03c86 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fffd0ced96a _pthread_cond_wait + 712
2 com.frobinator.froboz-pushar 0x0000000105211807 mono_os_cond_timedwait + 135 (mono-os-mutex.h:183)
3 com.frobinator.froboz-pushar 0x00000001052104b6 mono_w32handle_timedwait_signal_handle + 358 (w32handle.c:976)
4 com.frobinator.froboz-pushar 0x0000000105210281 mono_w32handle_wait_one + 929 (w32handle.c:1238)
5 com.frobinator.froboz-pushar 0x00000001051f50b9 wapi_WaitForSingleObjectEx + 9 (wait.c:42)
6 com.frobinator.froboz-pushar 0x00000001051989f4 mono_wait_uninterrupted + 116 (threads.c:1586)
7 com.frobinator.froboz-pushar 0x0000000105198ced ves_icall_System_Threading_WaitHandle_WaitOne_internal + 109 (threads.c:1722)
8 ??? 0x0000000116b2c88b 0 + 4675782795
9 ??? 0x0000000116b2c420 0 + 4675781664
10 ??? 0x0000000116df239a 0 + 4678689690
11 ??? 0x0000000116df165e 0 + 4678686302
12 ??? 0x000000011674294c 0 + 4671678796
13 ??? 0x0000000116deffc6 0 + 4678680518
Thread 21:: tid_dd03
0 libsystem_kernel.dylib 0x00007fffd0c03c86 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fffd0ced96a _pthread_cond_wait + 712
2 com.frobinator.froboz-pushar 0x000000010520b393 mono_thread_info_sleep + 723 (mono-os-mutex.h:183)
3 com.frobinator.froboz-pushar 0x0000000105194c93 monitor_thread + 147 (threadpool-ms.c:934)
4 com.frobinator.froboz-pushar 0x000000010519d813 start_wrapper + 339 (threads.c:760)
5 com.frobinator.froboz-pushar 0x000000010520b012 inner_start_thread + 354 (mono-threads.c:1183)
6 libsystem_pthread.dylib 0x00007fffd0cecaab _pthread_body + 180
7 libsystem_pthread.dylib 0x00007fffd0cec9f7 _pthread_start + 286
8 libsystem_pthread.dylib 0x00007fffd0cec1fd thread_start + 13
Thread 22:: Threadpool worker
0 libsystem_kernel.dylib 0x00007fffd0c03c86 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fffd0ced96a _pthread_cond_wait + 712
2 com.apple.Foundation 0x00007fffbcf1adcb -[NSCondition wait] + 240
3 com.apple.Foundation 0x00007fffbcf19e88 -[NSObject(NSThreadPerformAdditions) performSelector:onThread:withObject:waitUntilDone:modes:] + 904
4 com.apple.Foundation 0x00007fffbcf19a82 -[NSObject(NSThreadPerformAdditions) performSelectorOnMainThread:withObject:waitUntilDone:] + 131
5 com.frobinator.froboz-pushar 0x0000000104f906e9 xamarin_dyn_objc_msgSend + 217
Thread 23:: Threadpool worker
0 libsystem_kernel.dylib 0x00007fffd0c03c86 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fffd0ced96a _pthread_cond_wait + 712
2 com.frobinator.froboz-pushar 0x0000000105193065 mono_coop_cond_timedwait + 149 (mono-os-mutex.h:183)
3 com.frobinator.froboz-pushar 0x0000000105195453 worker_thread + 595 (threadpool-ms.c:545)
4 com.frobinator.froboz-pushar 0x000000010519d813 start_wrapper + 339 (threads.c:760)
5 com.frobinator.froboz-pushar 0x000000010520b012 inner_start_thread + 354 (mono-threads.c:1183)
6 libsystem_pthread.dylib 0x00007fffd0cecaab _pthread_body + 180
7 libsystem_pthread.dylib 0x00007fffd0cec9f7 _pthread_start + 286
8 libsystem_pthread.dylib 0x00007fffd0cec1fd thread_start + 13
Thread 24:: com.apple.NSEventThread
0 libsystem_kernel.dylib 0x00007fffd0bfc38a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fffd0bfb7d7 mach_msg + 55
2 com.apple.CoreFoundation 0x00007fffbb4d8e84 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fffbb4d8301 __CFRunLoopRun + 1361
4 com.apple.CoreFoundation 0x00007fffbb4d7b54 CFRunLoopRunSpecific + 420
5 com.apple.AppKit 0x00007fffb9155f92 _NSEventThread + 205
6 libsystem_pthread.dylib 0x00007fffd0cecaab _pthread_body + 180
7 libsystem_pthread.dylib 0x00007fffd0cec9f7 _pthread_start + 286
8 libsystem_pthread.dylib 0x00007fffd0cec1fd thread_start + 13
Thread 25:: Timer-Scheduler
0 libsystem_kernel.dylib 0x00007fffd0c03c86 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fffd0ced96a _pthread_cond_wait + 712
2 com.frobinator.froboz-pushar 0x0000000105211807 mono_os_cond_timedwait + 135 (mono-os-mutex.h:183)
3 com.frobinator.froboz-pushar 0x00000001052104b6 mono_w32handle_timedwait_signal_handle + 358 (w32handle.c:976)
4 com.frobinator.froboz-pushar 0x0000000105210281 mono_w32handle_wait_one + 929 (w32handle.c:1238)
5 com.frobinator.froboz-pushar 0x00000001051f50b9 wapi_WaitForSingleObjectEx + 9 (wait.c:42)
6 com.frobinator.froboz-pushar 0x00000001051989f4 mono_wait_uninterrupted + 116 (threads.c:1586)
7 com.frobinator.froboz-pushar 0x0000000105198ced ves_icall_System_Threading_WaitHandle_WaitOne_internal + 109 (threads.c:1722)
8 ??? 0x0000000116b2c88b 0 + 4675782795
9 ??? 0x0000000116b2c420 0 + 4675781664
10 ??? 0x0000000116def696 0 + 4678678166
11 ??? 0x000000011674294c 0 + 4671678796
12 com.frobinator.froboz-pushar 0x000000010508f1a7 mono_jit_runtime_invoke + 2247 (mini-runtime.c:2563)
13 com.frobinator.froboz-pushar 0x000000010514c988 do_runtime_invoke + 88 (object.c:2820)
14 com.frobinator.froboz-pushar 0x000000010519d90b start_wrapper + 587 (threads.c:770)
15 com.frobinator.froboz-pushar 0x000000010520b012 inner_start_thread + 354 (mono-threads.c:1183)
16 libsystem_pthread.dylib 0x00007fffd0cecaab _pthread_body + 180
17 libsystem_pthread.dylib 0x00007fffd0cec9f7 _pthread_start + 286
18 libsystem_pthread.dylib 0x00007fffd0cec1fd thread_start + 13
Thread 26:: Threadpool worker
0 libsystem_kernel.dylib 0x00007fffd0c03c86 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fffd0ced96a _pthread_cond_wait + 712
2 com.frobinator.froboz-pushar 0x0000000105211807 mono_os_cond_timedwait + 135 (mono-os-mutex.h:183)
3 com.frobinator.froboz-pushar 0x00000001052104b6 mono_w32handle_timedwait_signal_handle + 358 (w32handle.c:976)
4 com.frobinator.froboz-pushar 0x0000000105210281 mono_w32handle_wait_one + 929 (w32handle.c:1238)
5 com.frobinator.froboz-pushar 0x00000001051f50b9 wapi_WaitForSingleObjectEx + 9 (wait.c:42)
6 com.frobinator.froboz-pushar 0x00000001051989f4 mono_wait_uninterrupted + 116 (threads.c:1586)
7 com.frobinator.froboz-pushar 0x0000000105198ced ves_icall_System_Threading_WaitHandle_WaitOne_internal + 109 (threads.c:1722)
8 ??? 0x0000000116b2c88b 0 + 4675782795
9 ??? 0x0000000116b2c420 0 + 4675781664
Thread 27:: tid_16007
0 libsystem_kernel.dylib 0x00007fffd0c03f4a __select + 10
1 com.frobinator.froboz-pushar 0x0000000105204187 mono_poll + 407 (mono-poll.c:83)
2 com.frobinator.froboz-pushar 0x00000001051912b4 poll_event_wait + 260 (threadpool-ms-io-poll.c:147)
3 com.frobinator.froboz-pushar 0x0000000105190d14 selector_thread + 1156 (threadpool-ms-io.c:426)
4 com.frobinator.froboz-pushar 0x000000010519d813 start_wrapper + 339 (threads.c:760)
5 com.frobinator.froboz-pushar 0x000000010520b012 inner_start_thread + 354 (mono-threads.c:1183)
6 libsystem_pthread.dylib 0x00007fffd0cecaab _pthread_body + 180
7 libsystem_pthread.dylib 0x00007fffd0cec9f7 _pthread_start + 286
8 libsystem_pthread.dylib 0x00007fffd0cec1fd thread_start + 13
Thread 28:: Threadpool worker
0 libsystem_kernel.dylib 0x00007fffd0c03c86 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fffd0ced96a _pthread_cond_wait + 712
2 com.frobinator.froboz-pushar 0x0000000105193065 mono_coop_cond_timedwait + 149 (mono-os-mutex.h:183)
3 com.frobinator.froboz-pushar 0x0000000105195453 worker_thread + 595 (threadpool-ms.c:545)
4 com.frobinator.froboz-pushar 0x000000010519d813 start_wrapper + 339 (threads.c:760)
5 com.frobinator.froboz-pushar 0x000000010520b012 inner_start_thread + 354 (mono-threads.c:1183)
6 libsystem_pthread.dylib 0x00007fffd0cecaab _pthread_body + 180
7 libsystem_pthread.dylib 0x00007fffd0cec9f7 _pthread_start + 286
8 libsystem_pthread.dylib 0x00007fffd0cec1fd thread_start + 13
Thread 29:: Threadpool worker
0 libsystem_kernel.dylib 0x00007fffd0c03c86 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fffd0ced96a _pthread_cond_wait + 712
2 com.frobinator.froboz-pushar 0x0000000105193065 mono_coop_cond_timedwait + 149 (mono-os-mutex.h:183)
3 com.frobinator.froboz-pushar 0x0000000105195453 worker_thread + 595 (threadpool-ms.c:545)
4 com.frobinator.froboz-pushar 0x000000010519d813 start_wrapper + 339 (threads.c:760)
5 com.frobinator.froboz-pushar 0x000000010520b012 inner_start_thread + 354 (mono-threads.c:1183)
6 libsystem_pthread.dylib 0x00007fffd0cecaab _pthread_body + 180
7 libsystem_pthread.dylib 0x00007fffd0cec9f7 _pthread_start + 286
8 libsystem_pthread.dylib 0x00007fffd0cec1fd thread_start + 13
Thread 30:
0 libsystem_pthread.dylib 0x00007fffd0cec1e0 start_wqthread + 0
1 ??? 0x0000618000275840 0 + 107202386286656
Thread 31:: BrowserBlockingWorker1/94979
0 libsystem_kernel.dylib 0x00007fffd0c03c86 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fffd0ced96a _pthread_cond_wait + 712
2 org.chromium.ContentShell.framework 0x000000010cdffa5b 0x10c395000 + 10922587
3 org.chromium.ContentShell.framework 0x000000010ce10061 0x10c395000 + 10989665
4 org.chromium.ContentShell.framework 0x000000010ce0f5f5 0x10c395000 + 10986997
5 org.chromium.ContentShell.framework 0x000000010ce1338d 0x10c395000 + 11002765
6 org.chromium.ContentShell.framework 0x000000010ce0edb8 0x10c395000 + 10984888
7 libsystem_pthread.dylib 0x00007fffd0cecaab _pthread_body + 180
8 libsystem_pthread.dylib 0x00007fffd0cec9f7 _pthread_start + 286
9 libsystem_pthread.dylib 0x00007fffd0cec1fd thread_start + 13
Thread 32:: Threadpool worker
0 libsystem_kernel.dylib 0x00007fffd0c03c86 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fffd0ced96a _pthread_cond_wait + 712
2 com.frobinator.froboz-pushar 0x0000000105193065 mono_coop_cond_timedwait + 149 (mono-os-mutex.h:183)
3 com.frobinator.froboz-pushar 0x0000000105195453 worker_thread + 595 (threadpool-ms.c:545)
4 com.frobinator.froboz-pushar 0x000000010519d813 start_wrapper + 339 (threads.c:760)
5 com.frobinator.froboz-pushar 0x000000010520b012 inner_start_thread + 354 (mono-threads.c:1183)
6 libsystem_pthread.dylib 0x00007fffd0cecaab _pthread_body + 180
7 libsystem_pthread.dylib 0x00007fffd0cec9f7 _pthread_start + 286
8 libsystem_pthread.dylib 0x00007fffd0cec1fd thread_start + 13
Thread 33:: Threadpool worker
0 libsystem_kernel.dylib 0x00007fffd0c03c86 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fffd0ced96a _pthread_cond_wait + 712
2 com.frobinator.froboz-pushar 0x0000000105193065 mono_coop_cond_timedwait + 149 (mono-os-mutex.h:183)
3 com.frobinator.froboz-pushar 0x0000000105195453 worker_thread + 595 (threadpool-ms.c:545)
4 com.frobinator.froboz-pushar 0x000000010519d813 start_wrapper + 339 (threads.c:760)
5 com.frobinator.froboz-pushar 0x000000010520b012 inner_start_thread + 354 (mono-threads.c:1183)
6 libsystem_pthread.dylib 0x00007fffd0cecaab _pthread_body + 180
7 libsystem_pthread.dylib 0x00007fffd0cec9f7 _pthread_start + 286
8 libsystem_pthread.dylib 0x00007fffd0cec1fd thread_start + 13
Thread 34:: Threadpool worker
0 libsystem_kernel.dylib 0x00007fffd0c03c86 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fffd0ced96a _pthread_cond_wait + 712
2 com.frobinator.froboz-pushar 0x0000000105193065 mono_coop_cond_timedwait + 149 (mono-os-mutex.h:183)
3 com.frobinator.froboz-pushar 0x0000000105195453 worker_thread + 595 (threadpool-ms.c:545)
4 com.frobinator.froboz-pushar 0x000000010519d813 start_wrapper + 339 (threads.c:760)
5 com.frobinator.froboz-pushar 0x000000010520b012 inner_start_thread + 354 (mono-threads.c:1183)
6 libsystem_pthread.dylib 0x00007fffd0cecaab _pthread_body + 180
7 libsystem_pthread.dylib 0x00007fffd0cec9f7 _pthread_start + 286
8 libsystem_pthread.dylib 0x00007fffd0cec1fd thread_start + 13
Thread 35:: Threadpool worker
0 libsystem_kernel.dylib 0x00007fffd0c03c86 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fffd0ced96a _pthread_cond_wait + 712
2 com.frobinator.froboz-pushar 0x0000000105193065 mono_coop_cond_timedwait + 149 (mono-os-mutex.h:183)
3 com.frobinator.froboz-pushar 0x0000000105195453 worker_thread + 595 (threadpool-ms.c:545)
4 com.frobinator.froboz-pushar 0x000000010519d813 start_wrapper + 339 (threads.c:760)
5 com.frobinator.froboz-pushar 0x000000010520b012 inner_start_thread + 354 (mono-threads.c:1183)
6 libsystem_pthread.dylib 0x00007fffd0cecaab _pthread_body + 180
7 libsystem_pthread.dylib 0x00007fffd0cec9f7 _pthread_start + 286
8 libsystem_pthread.dylib 0x00007fffd0cec1fd thread_start + 13
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000071 rbx: 0x0000000000000000 rcx: 0x0000000000000010 rdx: 0xffffffffffffffe1
rdi: 0x000000011302e2d4 rsi: 0x0000600000eed550 rbp: 0x00007fff5ac89b70 rsp: 0x00007fff5ac89b70
r8: 0x0000608000261f98 r9: 0x00007fffd9904300 r10: 0xffffffffffffffff r11: 0x00001fff59d9c6c0
r12: 0x00007fff5ac89bc0 r13: 0x00007fff5ac8a0a0 r14: 0x00007fff5ac8a098 r15: 0x00007fff5ac8a090
rip: 0x000000010cda0571 rfl: 0x0000000000000246 cr2: 0x0000000006272000
Logical CPU: 0
Error Code: 0x00000000
In terms of guidance, here's what would help me:
- Are there other good places to set a breakpoint to confirm state?
- Is there any reason the struct layout for this type/fmap would be different on macOS?
- Is there an alternative mechanism for handling window.close() (ie. can we override this JS function from the native host to be handled correctly by the native host?)
Thanks.