Foton icon indicating copy to clipboard operation
Foton copied to clipboard

Closing windows can cause segfaults or other bad exit codes

Open cyanpelican opened this issue 6 years ago • 2 comments

For example on Mac, closing a window causes the following: libc++abi.dylib: terminating with uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument Abort trap: 6

cyanpelican avatar Feb 19 '19 20:02 cyanpelican

I can reproduce this error on my machine. Will take a look...

natevm avatar Apr 10 '19 17:04 natevm

I believe this is fixed.

In destroy_window in the GLFW wrapper class, the GLFW window was being destroyed after destroying its swapchain. Switching this order (destroying the window before destroying its swapchain) seems to have fixed the issue.

@cyanpelican If you get a chance, could you see if you get the same assertion as reported above on the latest version of development?

natevm avatar Apr 10 '19 18:04 natevm