Ubuntu 18.04 + SDL2 dbus error workaround

Post Reply
crashoverride
Posts: 4969
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 291 times
Contact:

Ubuntu 18.04 + SDL2 dbus error workaround

Post by crashoverride » Thu Apr 05, 2018 1:33 am

At the time of this writing, there is still an issue with the libsdl2 version packaged with Ubuntu 18.04. Attempting to use an SDL2 program produces the following and terminates:

Code: Select all

dbus[6617]: arguments to dbus_message_new_method_call() were incorrect, assertion "path != NULL" failed in file ../../../dbus/dbus-message.c line 1362.
This is normally a bug in some application using the D-Bus library.

  D-Bus not built with -rdynamic so unable to print a backtrace
A workaround for the issue is to kill ibus (not dbus):

Code: Select all

sudo killall ibus-daemon
I am posting this information because its not easily discoverable and to point out that its a bug in SDL2.

wallyz21
Posts: 137
Joined: Thu Apr 04, 2019 11:00 am
languages_spoken: english
ODROIDs: N2
Has thanked: 10 times
Been thanked: 16 times
Contact:

Re: Ubuntu 18.04 + SDL2 dbus error workaround

Post by wallyz21 » Thu Apr 09, 2020 1:37 pm

Keep in mind this solution only works in Mate.

If you are using Gnome then Gnome requires the dbus/ibus to be running and will automatically relaunch the daemon if it stops.

The work around for Gnome is to start the application like so:

$ DBUS_FATAL_WARNINGS=0 ./application

Of course this only works from a shell if you need to setup a desktop launcher then you need to create an executable shell script to execute instead.
Walter Zambotti
N2 - Ubuntu Mate Desktop

Post Reply

Return to “Ubuntu/Debian”

Who is online

Users browsing this forum: No registered users and 1 guest