For several months now I have been living with a big problem that is preventing me from developing the plugin normally ((. I have to keep the plugin open all the time, otherwise the GUI dies when I close it. I reinstalled macOS, but still see the same blank white screen.
I’m not sure what to do. This has been happening version after version; doesn’t anyone notice that AU/AUv3 is broken? Unfortunately, I haven’t tested the VST, but I think it will likely be similar.
To reproduce it, simply open a window with your plugin (no matter fx or instrument), close it, and then try to open it again. The result is a white screen and errors in the console. And yes, this is in a newly created empty Juce project and for any other demo projects as well.
JUCE v7.0.9
Bootstrapping; external subsystem UIKit_PKSubsystem refused setup
Unable to open mach-O at path: default.metallib Error:2
fopen failed for data file: errno = 2 (No such file or directory)
Errors found! Invalidating cache...
fopen failed for data file: errno = 2 (No such file or directory)
Errors found! Invalidating cache...
FAULT: assertion failed: '<NSViewServiceMarshal: 0x144826000 <AUAudioUnitViewService: 0x145896e20 <NSWindow: 0x145864430>>> unable to create semaphore (orderedDrawerAndWindowKeyLoopGroupingViews:)' in -[NSViewServiceMarshal orderedDrawerAndWindowKeyLoopGroupingViews:] on line 2525 of file /AppleInternal/Library/BuildRoots/11aa8fb2-5f4b-11ee-bc7f-926038f30c31/Library/Caches/com.apple.xbs/Sources/ViewBridge/NSViewServiceMarshal.m
FAULT: deferNSXPCInvocationOntoMainThread_block_invoke caught NSInternalInconsistencyException 'assertion failed: '<NSViewServiceMarshal: 0x144826000 <AUAudioUnitViewService: 0x145896e20 <NSWindow: 0x145864430>>> unable to create semaphore (orderedDrawerAndWindowKeyLoopGroupingViews:)' in -[NSViewServiceMarshal orderedDrawerAndWindowKeyLoopGroupingViews:] on line 2525 of file /AppleInternal/Library/BuildRoots/11aa8fb2-5f4b-11ee-bc7f-926038f30c31/Library/Caches/com.apple.xbs/Sources/ViewBridge/NSViewServiceMarshal.m' with backtrace (
"0 CoreFoundation __exceptionPreprocess + 176",
"1 libobjc.A.dylib objc_exception_throw + 60",
"2 CoreFoundation _CFBundleGetValueForInfoKey + 0",
"3 ViewBridge -[NSViewServiceMarshal orderedDrawerAndWindowKeyLoopGroupingViews:] + 476",
"4 AppKit -[NSWindow _findKeyLoopGroupingViewFollowingKeyLoopGroupingView:direction:] + 116",
"5 AppKit _replacementKeyViewAlongKeyViewPath + 484",
"6 AppKit -[NSView nextValidKeyView] + 208",
"7 AppKit -[NSView _setHidden:setNeedsDisplay:] + 264",
"8 CoreAudioKit -[AUAudioUnitViewService viewDidDisappear] + 88",
"9 AppKit -[NSViewController _sendViewDidDisappear] + 32",
"10 ViewBridge -[NSServiceViewController _didDisassociateFromHostWindow] + 120",
"11 ViewBridge -[NSViewServiceMarshal didBecomeAssociatedWithHostWindow:withKeyness:isFirstResponder:inActiveApp:] + 472",
"12 CoreFoundation __invoking___ + 148",
"13 CoreFoundation -[NSInvocation invoke] + 428",
"14 CoreFoundation -[NSInvocation invokeWithTarget:] + 64",
"15 ViewBridge __68-[NSVB_ViewServiceImplicitAnimationDecodingProxy forwardInvocation:]_block_invoke_2 + 48",
"16 ViewBridge -[NSViewServiceMarshal withHostWindowFrameAnimationInProgress:perform:] + 80",
"17 ViewBridge __68-[NSVB_ViewServiceImplicitAnimationDecodingProxy forwardInvocation:]_block_invoke + 120",
"18 AppKit +[NSAnimationContext runAnimationGroup:] + 56",
"19 AppKit +[NSAnimationContext runAnimationGroup:completionHandler:] + 100",
"20 ViewBridge runAnimationGroup + 192",
"21 ViewBridge +[NSVB_AnimationFencingSupport _animateWithAttributes:animations:] + 140",
"22 ViewBridge -[NSVB_ViewServiceImplicitAnimationDecodingProxy forwardInvocation:] + 156",
"23 CoreFoundation ___forwarding___ + 968",
"24 CoreFoundation _CF_forwarding_prep_0 + 96",
"25 CoreFoundation __invoking___ + 148",
"26 CoreFoundation -[NSInvocation invoke] + 428",
"27 CoreFoundation -[NSInvocation invokeWithTarget:] + 64",
"28 ViewBridge -[NSVB_QueueingProxy _dispatchSuspendedMessages] + 376",
"29 ViewBridge -[NSViewServiceMarshal withResumingSuspendedMessagesInProgress:] + 48",
"30 ViewBridge -[NSVB_QueueingProxy resume] + 268",
"31 ViewBridge -[NSVB_ViewServiceFencingController fencingControlProxy:didEndFencingWithSendRight:] + 504",
"32 ViewBridge -[NSVB_ViewServiceFencingControlProxy __endFencingMessagesForSendRight:] + 240",
"33 CoreFoundation __invoking___ + 148",
"34 CoreFoundation -[NSInvocation invoke] + 428",
"35 CoreFoundation -[NSInvocation invokeWithTarget:] + 64",
"36 CoreFoundation ___forwarding___ + 968",
"37 CoreFoundation _CF_forwarding_prep_0 + 96",
"38 CoreFoundation __invoking___ + 148",
"39 CoreFoundation -[NSInvocation invoke] + 428",
"40 ViewBridge __deferNSXPCInvocationOntoMainThread_block_invoke + 120",
"41 ViewBridge __wrapBlockWithVoucher_block_invoke + 56",
"42 ViewBridge deferredBlockOpportunity_block_invoke_2 + 360",
"43 CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 28",
"44 CoreFoundation __CFRunLoopDoBlocks + 356",
"45 CoreFoundation __CFRunLoopRun + 2440",
"46 CoreFoundation CFRunLoopRunSpecific + 608",
"47 HIToolbox RunCurrentEventLoopInMode + 292",
"48 HIToolbox ReceiveNextEventCommon + 648",
"49 HIToolbox _BlockUntilNextEventMatchingListInModeWithFilter + 76",
"50 AppKit _DPSNextEvent + 660",
"51 AppKit -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 716",
"52 ViewBridge __77-[NSViewServiceApplication vbNextEventMatchingMask:untilDate:inMode:dequeue:]_block_invoke + 136",
"53 ViewBridge -[NSViewServiceApplication _withToxicEventMonitorPerform:] + 152",
"54 ViewBridge -[NSViewServiceApplication vbNextEventMatchingMask:untilDate:inMode:dequeue:] + 168",
"55 ViewBridge -[NSViewServiceApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 100",
"56 AppKit -[NSApplication run] + 476",
"57 AppKit NSApplicationMain + 880",
"58 libxpc.dylib _xpc_objc_main + 800",
"59 libxpc.dylib _xpc_main + 324",
"60 libxpc.dylib _xpc_copy_xpcservice_dictionary + 0",
"61 Foundation +[NSXPCListener serviceListener] + 0",
"62 PlugInKit pkIsServiceAccount + 34540",
"63 PlugInKit pkIsServiceAccount + 33348",
"64 PlugInKit pkIsServiceAccount + 35440",
"65 ExtensionFoundation EXExtensionMain + 304",
"66 Foundation NSExtensionMain + 204",
"67 dyld start + 2360"
)