[Wayland-bugs] [Bug 734501] SIGTRAP when using Gtk in dbus service
gtk+ (bugzilla.gnome.org)
bugzilla at gnome.org
Mon Aug 11 04:57:48 PDT 2014
https://bugzilla.gnome.org/show_bug.cgi?id=734501
gtk+ | Backend: Wayland | unspecified
--- Comment #4 from Christopher Schramm <gnome at cschramm.eu> 2014-08-11 11:57:44 UTC ---
If glib does not need any initialization, then it's in deed not a GTK issue.
Also my g_logv example above should work then, shouldn't it? So please reassign
this to glib.
What happens in case of our application is that the dbus service includes a
file shared with multiple components of the application. And this file in turn
includes gi.repository.Gtk. Gtk is in fact not needed for the dbus service, but
for other components. Yes, this common file is ugly and could be avoided, no
doubt about that... ;)
Anyway, as soon as the Gtk binding gets imported the library starts
initializing including a call to wl_display_connect if wayland support is built
in. In case of the dbus service, wayland will try to log the message "error:
XDG_RUNTIME_DIR not set in the environment.". This is where g_logv gets called
and the application crashes just as my code above does.
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Wayland-bugs
mailing list