Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux. GLFW Crash after terminating the Godot Project #41

Open
dave0null opened this issue Dec 30, 2020 · 2 comments
Open

Linux. GLFW Crash after terminating the Godot Project #41

dave0null opened this issue Dec 30, 2020 · 2 comments
Labels

Comments

@dave0null
Copy link

dave0null commented Dec 30, 2020

➜  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.

@Calinou Calinou added the bug label Dec 30, 2020
@dave0null
Copy link
Author

dave0null commented Dec 30, 2020

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.

@aaronfranke
Copy link
Member

@dave0null Would you be willing to attempt to fix this bug? I'm not familiar with GLFW myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants