Hi JUCE Team,
It seems we’ve found an NSException crash in a very specific case of windowing code.
- creating a window inside a
handleAsyncUpdate(), which happens e.g. in a
- Manually set the window to kiosk mode, by clicking the green + button
- Close the window programmatically (in our case by clicking on the content component), calling the window destructor.
The above sequence of events results in an NSException, and an EXC_BAD_ACCESS on
[NSApp run]. Running the zombie profiler shows us a selector is sent to an already released object, and the call stack shows it probably has something to do with the kiosk animation. Creating a window outside of the AsyncUpdater works fine.
We’ve created a sample project which exhibits the described bug. The crash doesn’t happen every time (which only makes it worse).
crashlog.txt (7.6 KB)
Main.h (2.6 KB)
Main.cpp (213 Bytes)
MainComponent.h (1.1 KB)
MainComponent.cpp (1.2 KB)