gdnative-demos
gdnative-demos copied to clipboard
Linux. GLFW Crash after terminating the Godot Project
➜ glfw git:(master) ✗ scons platform=linux bits=64
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
scons: project/gdnative/linuxbsd/libglfw_godot.so is up to date.
scons: done building targets.
➜ glfw git:(master) ✗ Godot_v3.2.2-stable_x11.64 --path project
Godot Engine v3.2.2.stable.official - https://godotengine.org
OpenGL ES 2.0 Renderer: GeForce GTX 1060/PCIe/SSE2
OpenGL ES 2.0 Batching: ON
GLFW._init()
create window: 400x400
user says: "please close."
glfw_close
glfw_close
glfw_destructor
handle_crash: Program crashed with signal 11
Dumping the backtrace. Please include this when reporting the bug on https://github.com/godotengine/godot/issues
[1] /usr/lib/libc.so.6(+0x3d6a0) [0x7ff6a3d916a0] (??:0)
[2] /usr/lib/libpthread.so.0(pthread_mutex_lock+0x4) [0x7ff6a3a02664] (??:0)
[3] /usr/lib/libX11.so.6(XrmDestroyDatabase+0x2f) [0x7ff6a3c31d0f] (??:0)
[4] /usr/lib/libX11.so.6(_XFreeDisplayStructure+0x3bc) [0x7ff6a3c18a2c] (??:0)
[5] /usr/lib/libX11.so.6(XCloseDisplay+0xd3) [0x7ff6a3c06313] (??:0)
[6] Godot_v3.2.2-stable_x11.64() [0x29746fe] (<artificial>:?)
[7] Godot_v3.2.2-stable_x11.64() [0x2a5a792] (<artificial>:?)
[8] Godot_v3.2.2-stable_x11.64() [0x8582ff] (??:?)
[9] /usr/lib/libc.so.6(__libc_start_main+0xf2) [0x7ff6a3d7c152] (??:0)
[10] Godot_v3.2.2-stable_x11.64() [0x86695e] (??:?)
-- END OF BACKTRACE --
[1] 83286 abort (core dumped) Godot_v3.2.2-stable_x11.64 --path project
I'm on Arch linux 64. If I get rid of the GLFW code, I wont get the crash dump like this.
It's exactly the GLFW project under the C folder in the gdnative demos folder. You don't need to change anything. Other than running it under Linux after you compile and run them. EDIT2: I'm going to try to make minimal project and post it on my repo soon.
@dave0null Would you be willing to attempt to fix this bug? I'm not familiar with GLFW myself.