Segfault on glfwTerminate #2380
Labels
ANGLE
bug
Bug reports and bugfix pull requests
EGL
EGL API specific
help needed
Issues needing more contributors to solve
X11
I have found a bug in GLFW when using ANGLE.
When calling
glfwTerminate()
(with a valid and working context), a segfault occurs.I’ve run a gdb backtrace on it:
ANGLE was compiled from source, so was glfw.
Calling
glfwDestroyWindow(window)
does not improve this behavior.I’m using GLFW to load Angle:
And to initialize I’m doing this:
@mmozeiko over on the glfw discourse forum found the solution:
The fix for NVIDIA EGL having the same issue was to move
_glfwTerminateEGL()
but this breaks ANGLE.glfw/src/x11_init.c
Line 1641 in 3eaf125
Moving it back to where it was before (below
if (_glfw.x11.im) { ... }
, nowadays L1589) eliminates the error; GLFW can then shut down fine with ANGLE.Not trying to break NVIDIA EGL again either, a fix would need to be run-time, either detecting NVIDIA or ANGLE but I have no idea how to accomplish that.
If anyone has an idea, I could then finish up the PR.
The text was updated successfully, but these errors were encountered: