Page 1 of 1

Ubuntu 24.04 Exit Crash

Posted: Tue Sep 03, 2024 12:58 am
by aldude999
Hello,

I wanted to submit a bug I've been having with Ubuntu, but it seems like my account has been banned from the bug tracker.

Every time I exit the game using the OpenGL Renderer, it crashes before my settings are saved to my .ini file, meaning I have to manually set any settings i want to change every time I start the game. I have this issue with both the dev builds and the latest release.

Doesn't matter if I'm in game, in menu, in console, OpenGL Renderer crashes on exit.

If I manually edit my zandronum.ini file to vid_renderer=0 (software renderer), I can edit the settings in the menu and they will save just fine, but if I set the renderer to OpenGL, I won't be able to save any settings until I go back and edit the zandronum.ini file again to use software rendering.

I'm running the following:
OS: Kubuntu 24.04
CPU: AMD Ryzen 9 7950X
GFX: AMD Radeon RX 7900 XTX
RAM: 62.0 GiB

Here is the output I get from the command, and the crash log: https://pastebin.com/dvuH8tAn

I can post the core dump as well if needed, but I don't want to overload my post with links.

Re: Ubuntu 24.04 Exit Crash

Posted: Thu Sep 05, 2024 2:19 pm
by Sean
The game has a habit of segfaulting while it's destroying OpenGL objects; I'm not sure why or how to fix it, I'd like to investigate it more when I have the time.

In the meantime you can workaround the ini not being saved by using writeini in the console. There's no other harm in allowing it to crash (though for me it does hang Pipewire audio mixing for a few seconds).

If you're willing to dive into the source code and compile Zandronum yourself you could also comment out the lines it crashes in.

Re: Ubuntu 24.04 Exit Crash

Posted: Thu Sep 05, 2024 11:34 pm
by aldude999
Sean wrote:
Thu Sep 05, 2024 2:19 pm
The game has a habit of segfaulting while it's destroying OpenGL objects; I'm not sure why or how to fix it, I'd like to investigate it more when I have the time.

In the meantime you can workaround the ini not being saved by using writeini in the console. There's no other harm in allowing it to crash (though for me it does hang Pipewire audio mixing for a few seconds).

If you're willing to dive into the source code and compile Zandronum yourself you could also comment out the lines it crashes in.
Sweet, I didn't know about that command, exactly what I was looking for!

I'll see if I can play with the source this weekend and get some more info.

Re: Ubuntu 24.04 Exit Crash

Posted: Sun Sep 08, 2024 3:37 pm
by aldude999
Removing line 209 from gl_shaders.cpp and recompiling allows Zandronum to shut down without core dumping:

https://foss.heptapod.net/zandronum/zan ... heads#L209