To reproduce:
Load Scrivener on primary monitor
Switch to Composition mode.
Switch back to non-composition mode.
Move Scrivener to second monitor.
Switch to Composition mode.
Crash.
Exception Name: NSGenericException
Exception Reason: *** Collection <__NSArrayM: 0x600000567c30> was mutated while being enumerated.
I tried this with more than one project.
KB
November 8, 2018, 6:01pm
2
Hmm, I’ve tried this but I’m afraid I cannot reproduce it. I plugged my MacBook into an external monitor, fired up composition mode on my MacBook screen, exited, then moved the window to the external monitor and fired up composition mode there - no crash. Could you please post the full backtrace?
Thanks and all the best,
Keith
Exception Name: NSGenericException
-------
Exception Reason: *** Collection <__NSArrayM: 0x60000133a970> was mutated while being enumerated.
-------
0 CoreFoundation 0x00007fff43e8ae65 __exceptionPreprocess + 256
1 libobjc.A.dylib 0x00007fff6fee6720 objc_exception_throw + 48
2 CoreFoundation 0x00007fff43f01b45 -[__NSSingleObjectEnumerator init] + 0
3 Scrivener 0x0000000101fdf5da Scrivener + 1447386
4 CoreFoundation 0x00007fff43e373f2 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
5 CoreFoundation 0x00007fff43e3736c ___CFXRegistrationPost_block_invoke + 63
6 CoreFoundation 0x00007fff43e3728d _CFXRegistrationPost + 398
7 CoreFoundation 0x00007fff43e3f6d9 ___CFXNotificationPost_block_invoke + 87
8 CoreFoundation 0x00007fff43da6e8a -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1633
9 CoreFoundation 0x00007fff43da624d _CFXNotificationPost + 742
10 AppKit 0x00007fff413b5b68 -[NSView _postFrameChangeNotification] + 314
11 AppKit 0x00007fff413aec40 -[NSView setFrameSize:] + 2082
12 AppKit 0x00007fff4141f975 -[NSVisualEffectView setFrameSize:] + 171
13 AppKit 0x00007fff414091ff -[NSWindow _oldPlaceWindow:] + 1012
14 AppKit 0x00007fff41408639 -[NSWindow _setFrameCommon:display:stashSize:] + 3006
15 AppKit 0x00007fff41407a65 -[NSWindow _setFrame:display:allowImplicitAnimation:stashSize:] + 192
16 AppKit 0x00007fff4140799e -[NSWindow setFrame:display:] + 51
17 Scrivener 0x0000000101fd7cbd Scrivener + 1416381
18 Scrivener 0x0000000101ea42d8 Scrivener + 156376
19 AppKit 0x00007fff416212cf -[NSApplication(NSResponder) sendAction:to:from:] + 312
20 AppKit 0x00007fff4167e33f -[NSMenuItem _corePerformAction] + 323
21 AppKit 0x00007fff4167e0b2 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 114
22 AppKit 0x00007fff4167cf14 -[NSMenu performKeyEquivalent:] + 363
23 AppKit 0x00007fff41b246cb routeKeyEquivalent + 870
24 AppKit 0x00007fff4133378d -[NSApplication(NSEvent) sendEvent:] + 1077
25 Scrivener 0x0000000101ef5c60 Scrivener + 490592
26 AppKit 0x00007fff41320cf1 -[NSApplication run] + 755
27 AppKit 0x00007fff413103f7 NSApplicationMain + 780
28 libdyld.dylib 0x00007fff70fb508d start + 1
29 ??? 0x0000000000000001 0x0 + 1