SimpleExample in gtkmm documentation raises errors

As in title, the following error shows up whenever I try to run the first application in the book ‘Programming with gtkmm 4’, and likewise whenever I resize the window:
(simple:24326): GLib-GIO-CRITICAL **: timestamp : g_dbus_connection_emit_signal: assertion 'object_path != NULL && g_variant_is_object_path (object_path)' failed

Recommend running with G_DEBUG=fatal-criticals environment variable so you can get a backtrace with gdb to show exactly where it is crashing.

I ran gdb with that flag set, and got the following:

(testapp:37525): GLib-GIO-CRITICAL **: 14:01:02.061: g_dbus_connection_emit_signal: assertion 'object_path != NULL && g_variant_is_object_path (object_path)' failed
[Thread 0x7fffe13fe6c0 (LWP 37535) exited]

Thread 1 "testapp" received signal SIGTRAP, Trace/breakpoint trap.
0x00007ffff6f45e92 in g_logv () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

This is from the helloworld example in that same book.
Additionally, pressing the ‘x’ on one of these applications causes a segmentation fault .

FIXED: programs were being run as root user, who of course does not have an X session running, thus raising these types of error.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.