GZDoom crashes after upgrade to Ubuntu 17.04

Tue Apr 18, 2017 6:59 am

Hi, I have been using Ubuntu Linux for about 2 years now. GZDoom has worked well for me since version 14.04. I believe that the last Ubuntu version that I ran GZDoom on was 16.04(Xenial Xerus). I recently upgraded to version 17.04(Zesty Zapus) and now whenever I try to run GZDoom, I get this error...

GZDoom g2.4.0 - 2017-03-19 21:36:18 +0100 - SDL version
Compiled on Mar 21 2017

M_LoadDefaults: Load system defaults.
Aborted (core dumped)

The only change that I've made to my system was the Ubuntu version upgrade, so I am assuming that this is to blame for GZDoom not working. I have tried uninstalling and then reinstalling GZDoom, but the problem persists. If anyone has any ideas on why this is happening or how to fix it, I would be grateful. Thanks!

Re: GZDoom crashes after upgrade to Ubuntu 17.04

Tue Apr 18, 2017 8:56 am

It's impossible to say anything without crash report.
Some unknown failure happened on early stage of initialization.

If really want to investigate it, you need to run GZDoom under debugger to get a callstack.
Execute the following command in Terminal:
Code:
gdb /opt/gzdoom/gzdoom

If it says that gdb program is not installed, install it using this command and run the first command again:
Code:
sudo apt-get install gdb

In (gdb) prompt execute run command. When it stops execute bt command and post whole output here.

Re: GZDoom crashes after upgrade to Ubuntu 17.04

Tue Apr 18, 2017 9:20 am

Also make sure you compile with "cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo", otherwise the debug info it gives will be nothing more than an incoherent string of numbers.

Re: GZDoom crashes after upgrade to Ubuntu 17.04

Tue Apr 18, 2017 9:38 am

It's about build installed from .deb package. That's why path to GZDoom is /opt/gzdoom/gzdoom.

Re: GZDoom crashes after upgrade to Ubuntu 17.04

Tue Apr 18, 2017 9:49 am

Ah - my apologies.

Re: GZDoom crashes after upgrade to Ubuntu 17.04

Tue Apr 18, 2017 11:06 am

_mental_ wrote:When it stops execute bt command and post whole output here.


Ok, here's the output I got. Thanks for the instructions by the way!

Spoiler:


Hope this helps!

Re: GZDoom crashes after upgrade to Ubuntu 17.04

Tue Apr 18, 2017 1:00 pm

Could you please try to run GZDoom with -iwad command line option? For example
Code:
gzdoom -iwad doom2
The problem is caused by IWAD selection window and I'm curious is this the only issue or not.

Re: GZDoom crashes after upgrade to Ubuntu 17.04

Tue Apr 18, 2017 5:31 pm

_mental_ wrote:Could you please try to run GZDoom with -iwad command line option?


GZDoom successfully runs when I specify iwad, no matter which iwad. Before it would pop up an iwad selection screen up if I didn't specify iwad, but now it just bombs out with that "Aborted, core dump" error. I keep all my iwads in /usr/local/share/games/doom/, and have for years.

Re: GZDoom crashes after upgrade to Ubuntu 17.04

Wed Apr 19, 2017 2:44 am

The problem is not related to upgrade of Ubuntu and reproduces on the clean install.
However in GZDoom 2.4.0 built on 17.04 from sources IWAD selector works fine.
Unfortunately I have no idea why it doesn't in the released version.

Re: GZDoom crashes after upgrade to Ubuntu 17.04

Wed May 17, 2017 9:13 am

I'd like to bump this saying I experience the same issues. It kind of sucks but gzdoom1 (1.9.1) still works fine

Re: GZDoom crashes after upgrade to Ubuntu 17.04

Thu May 18, 2017 2:47 am

This looks a bit odd. The last line of GZDoom that appears in the stack trace is this:

Code:
      GtkAvailable = Gtk::gtk_init_check (&argc, &argv);


The file containing this line was added in November 2016 which may explain why 1.9.1 still works. The check was in a different place there.

Relevant commit log:

Code:
- Added support for GTK3 (thanks to "MineyMe" and edward-san)
- Replaced GTK/OS X (note different from Cocoa) clipboard code with SDL clipboard API.
- Removed requirement to link to GTK in order to compile with GTK support.
   - GTK is no longer init'd if the GTK IWAD picker is not used.
   - Our usage of GTK is such that the dynamic loader can work with both GTK2 and GTK3 depending on what's installed.
   - Since we're accumulating a lot of library loaders I've built a generic interface as FModule which replaces TOptWin32Proc and the loaders in the OpenAL and Fluidsynth code.