Fixed bug 3854 - arguments to dbus_type_is_basic() were incorrect
authorSam Lantinga <slouken@libsdl.org>
Thu, 05 Oct 2017 09:37:28 -0700
changeset 11567dc7245e3d1f2
parent 11563 3a23ca106752
child 11572 7e0f1498ddb5
Fixed bug 3854 - arguments to dbus_type_is_basic() were incorrect

Aaron

As of 2.0.6, all of my games are failing with the following error:

process 31778: arguments to dbus_type_is_basic() were incorrect, assertion "dbus_type_is_valid (typecode) || typecode == DBUS_TYPE_INVALID" failed in file dbus-signature.c line 322.
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

(patch by Ozkan Sezer)
src/core/linux/SDL_ibus.c
     1.1 --- a/src/core/linux/SDL_ibus.c	Mon Oct 02 10:50:33 2017 -0700
     1.2 +++ b/src/core/linux/SDL_ibus.c	Thu Oct 05 09:37:28 2017 -0700
     1.3 @@ -479,7 +479,7 @@
     1.4      SDL_DBusContext *dbus = SDL_DBus_GetContext();
     1.5      
     1.6      if (IBus_CheckConnection(dbus)) {
     1.7 -        SDL_DBus_CallVoidMethodOnConnection(ibus_conn, IBUS_SERVICE, input_ctx_path, IBUS_INPUT_INTERFACE, method);
     1.8 +        SDL_DBus_CallVoidMethodOnConnection(ibus_conn, IBUS_SERVICE, input_ctx_path, IBUS_INPUT_INTERFACE, method, DBUS_TYPE_INVALID);
     1.9      }
    1.10  }
    1.11