Crash when rearranging monitors
A GnuCash user reported on the mailing list: " I was recently doing some testing with a secondary display, and every time I would connect/disconnect or re-arrange my displays, GnuCash would crash.
"I just now turned my monitor back on (just one display connected presently) and saw the below report. I normally just send the display and computer to sleep at the same time, but this particular time I turned the monitor off instead and then back on later. I’ve done this prior to 3.4 without resulting in a crash."
Process: Gnucash [5056]
Path: /Applications/Gnucash.app/Contents/MacOS/Gnucash
Identifier: org.gnucash.Gnucash
Version: 3.4-1 (3.4-1)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Gnucash [5056]
User ID: 501
Date/Time: 2019-01-26 00:52:18.759 -0600
OS Version: Mac OS X 10.14.2 (18C54)
Report Version: 12
Anonymous UUID: 20A006DC-9F58-1A8B-0D8A-91E60BA4F10A
Time Awake Since Boot: 430000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000044
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [5056]
VM Regions Near 0x44:
-->
__TEXT 0000000102bc4000-0000000102bd6000 [ 72K] r-x/rwx SM=COW /Applications/Gnucash.app/Contents/MacOS/Gnucash
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libgdk-3.0.dylib 0x0000000103741611 gdk_quartz_screen_calculate_layout + 177
1 libgdk-3.0.dylib 0x00000001037414fb gdk_quartz_screen_reconfigure + 43
2 libgobject-2.0.0.dylib 0x0000000103b297a2 g_closure_invoke + 306
3 libgobject-2.0.0.dylib 0x0000000103b40cc9 signal_emit_unlocked_R + 1865
4 libgobject-2.0.0.dylib 0x0000000103b41b30 g_signal_emit_valist + 2288
5 libgobject-2.0.0.dylib 0x0000000103b42216 g_signal_emit + 134
6 com.apple.SkyLight 0x00007fff789ddc72 displayConfigFinalizedProc + 240
7 com.apple.SkyLight 0x00007fff789d37f2 CGSPostLocalNotification + 420
8 com.apple.SkyLight 0x00007fff789d33e4 (anonymous namespace)::notify_datagram_handler(unsigned int, CGSDatagramType, void*, unsigned long, void*) + 94
9 com.apple.SkyLight 0x00007fff789d70dc CGSDatagramReadStream::dispatch_next_main_queue_datagram() + 270
10 com.apple.SkyLight 0x00007fff78c2c19e invocation function for block in CGSDatagramReadStream::dispatch_main_queue_datagrams_async(dispatch_queue_s*, CGSDatagramReadStream*) + 59
11 libdispatch.dylib 0x00007fff7fac4d53 _dispatch_call_block_and_release + 12
12 libdispatch.dylib 0x00007fff7fac5dcf _dispatch_client_callout + 8
13 libdispatch.dylib 0x00007fff7fad0f63 _dispatch_main_queue_callback_4CF + 1125
14 com.apple.CoreFoundation 0x00007fff528d31ab __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
15 com.apple.CoreFoundation 0x00007fff528d28ba __CFRunLoopRun + 2335
16 com.apple.CoreFoundation 0x00007fff528d1d48 CFRunLoopRunSpecific + 463
17 com.apple.HIToolbox 0x00007fff51b68ab5 RunCurrentEventLoopInMode + 293
18 com.apple.HIToolbox 0x00007fff51b687eb ReceiveNextEventCommon + 618
19 com.apple.HIToolbox 0x00007fff51b68568 _BlockUntilNextEventMatchingListInModeWithFilter + 64
20 com.apple.AppKit 0x00007fff4fe23363 _DPSNextEvent + 997
21 com.apple.AppKit 0x00007fff4fe22102 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1362
22 libgdk-3.0.dylib 0x000000010373eed2 poll_func + 178
23 libglib-2.0.0.dylib 0x0000000102ecf28d g_main_context_iterate + 333
24 libglib-2.0.0.dylib 0x0000000102ecf60f g_main_loop_run + 223
25 libgtk-3.0.dylib 0x00000001031b646a gtk_main + 74
26 libgncmod-gnome-utils.dylib 0x0000000105cbd93f gnc_ui_start_event_loop + 47
27 org.gnucash.Gnucash 0x0000000102bd31ec inner_main + 1116
28 libguile-2.2.1.dylib 0x0000000102d27632 invoke_main_func + 34
29 libguile-2.2.1.dylib 0x0000000102d07eef c_body + 15
30 libguile-2.2.1.dylib 0x0000000102d8fc5a vm_regular_engine + 1290
31 libguile-2.2.1.dylib 0x0000000102d8ebff scm_call_n + 495
32 libguile-2.2.1.dylib 0x0000000102d8b8aa catch + 506
33 libguile-2.2.1.dylib 0x0000000102d07ebc scm_c_with_continuation_barrier + 140
34 libguile-2.2.1.dylib 0x0000000102d8b4b1 with_guile + 65
35 libgc.1.dylib 0x0000000102e467fb GC_call_with_stack_base + 27
36 libguile-2.2.1.dylib 0x0000000102d8935b scm_with_guile + 43
37 libguile-2.2.1.dylib 0x0000000102d275f5 scm_boot_guile + 69
38 org.gnucash.Gnucash 0x0000000102bd2bc1 main + 3425
39 libdyld.dylib 0x00007fff7fb13ed9 start + 1