JuliaGL / GLFW.jl

Julia interface to GLFW, a multi-platform library for creating windows with OpenGL contexts and managing input and events.
http://www.glfw.org/
MIT License
138 stars 32 forks source link

Hang on window close on macOS #190

Closed rsrock closed 5 years ago

rsrock commented 5 years ago

If I run the example on the README, the window doesn't close when clicking the close button. Julia does get out of the WindowShouldClose loop, but the DestroyWindow call has no effect. I have to force-quit (from the GLFW icon that appears in my dock), which in turn terminates julia (with a signal 15).

This is on a dev'd copy of GLFW. I ran into this issue while trying out SpinnakerGUI.jl, which uses CImGui.jl.

rsrock commented 5 years ago

Just stumbled across this: https://github.com/glfw/glfw/issues/1412

Seems to work with the README example if I add GLFW.PollEvents() just after the DestroyWindow call. I will check if that works in SpinnakerGUI.jl tomorrow.

rsrock commented 5 years ago

That does work in the full program. This workaround should be good enough for anyone, so closing for now.