liamstask wrote on Friday, October 05, 2012:
Hello! I’m maintaining an application developed with glfw 2.7.2 and am trying
to upgrade to 2.7.6.
On OS X, I see that glfw_atexit() is called on a thread that is not the
main thread, and segfaults during glfwTerminate() - there’s a comment in
cocoa_init.m _glfwPlatformTerminate() that says “fail unless this is the
main thread”…if I insert a check for the main thread there and return
GL_FALSE, all goes according to plan.
Alternatively, if I call glfwTerminate() myself on the main thread and
disable glfw_atexit(), everything works.
Is this a known issue, or does this possibly indicate some other step I need
to take in upgrading from 2.7.2 to 2.7.6? Obviously there are a couple
workarounds, but each require editing glfw source, which I’d prefer to avoid
if possible
Thanks.