There is a crash in multi-window Catalyst Mac apps (iPad apps built for Mac). Steps to reproduce:
1, Download Apple's multi-window sample code (https://developer.apple.com/documentation/uikit/app_and_environment/scenes/supporting_multiple_windows_on_ipad)
2, Enable the Mac platform and build
3, Launch app
4, Open another window from File->New
5, Close new window
6, Open another new window from File->New
7, The app crashes.
Error Messages:
Unable to create a new scene. Error: Error Domain=BSServiceConnectionErrorDomain Code=3 "(null)" UserInfo={BSErrorCodeDescription=OperationFailed}
When I build with Address Sanitizer and Zombie objects enabled, I see the following error message:
Gallery[15640:3666137] *** -[UIWindow isProxy]: message sent to deallocated instance 0x618000072c80
I have tested other multi-window Catalyst apps including my own and see the same crash in all of the apps.
I have submitted a bug using Apple's feedback assistant(FB7571990). I am seeing this in Catalina 10.15.3.
Are there any workarounds for this problem?