Ubuntu 24.04 Exit Crash

General help and assistance forum.
Post Reply
aldude999
New User
Posts: 3
Joined: Tue Sep 03, 2024 12:18 am

Ubuntu 24.04 Exit Crash

#1

Post by aldude999 » Tue Sep 03, 2024 12:58 am

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.

User avatar
Sean
IRC Operator
Posts: 982
Joined: Thu Jan 16, 2014 9:09 pm
Location: United Kingdom
Clan: Zandronum
Clan Tag: [Za]
Contact:

Re: Ubuntu 24.04 Exit Crash

#2

Post by Sean » 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.
<capodecima> i dont say any more word without my loyer jenova

aldude999
New User
Posts: 3
Joined: Tue Sep 03, 2024 12:18 am

Re: Ubuntu 24.04 Exit Crash

#3

Post by aldude999 » Thu Sep 05, 2024 11:34 pm

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.

aldude999
New User
Posts: 3
Joined: Tue Sep 03, 2024 12:18 am

Re: Ubuntu 24.04 Exit Crash

#4

Post by aldude999 » Sun Sep 08, 2024 3:37 pm

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

Post Reply