I'm doing some testing with macos native build and I noticed an issue when manipulating the window.
I isolated the issue enough to reproduce it fairly consistently by running compiled build, using macos fullscreen function to make the app fullscreen, then toggling mission control which will move the fullscreen up to the desktop panel at the top of the screen. I use ctrl+↑ to trigger mission control, and after doing this a couple of times the app will freeze.
When the issue happens, system will say that the app is unresponsive and all calls to update and render stops and I will need to force quite the application because the window controls no longer slide down when moving my cursor to the top of the screen.
There is no spike in processor usage.
I don't see any errors in the terminal.
The project I am testing with is https://github.com/Kha-Samples/Empty.git, and only modification is three lines to render to draw something on screen -
static function render(framebuffer: Framebuffer): Void {
framebuffer.g2.begin();
framebuffer.g2.fillRect(100, 100, 32, 32);
framebuffer.g2.end();
}
I originally had loops that would draw hundreds of items on screen, and the issue seemed to happen faster when there was more drawing, but it still happens with this single rectangle.
I am using XCode Version 10.1 (10B61) on macOS Version 10.14.3 (18D109).
I tried to run the compiled build on another macbook with macos older than mojave, and I was unable to reproduce on that machine.
Is this something that is known? Is there anything I can do to avoid this issue?