Gdk-ERROR **: The program 'gtkmm-demo' received an X Window System error. This probably reflects a bug in the program. The error was 'BadValue (integer parameter out of range for operation)'. (Details: serial 276 error_code 2 request_code 146 minor_code 5) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) aborting... Program received signal SIGTRAP, Trace/breakpoint trap. [Switching to Thread 0x7fc2956cb710 (LWP 477)] 0x00007fc28f6c2f44 in g_logv () from /usr/lib/libglib-2.0.so.0 (gdb) bt #0 0x00007fc28f6c2f44 in g_logv () from /usr/lib/libglib-2.0.so.0 #1 0x00007fc28f6c3343 in g_log () from /usr/lib/libglib-2.0.so.0 #2 0x00007fc293665602 in ?? () from /usr/lib/libgdk-x11-2.0.so.0 #3 0x00007fc2911a8fcc in _XError () from /usr/lib/libX11.so.6 #4 0x00007fc2911b17b4 in ?? () from /usr/lib/libX11.so.6 #5 0x00007fc2911b1b00 in _XReply () from /usr/lib/libX11.so.6 #6 0x00007fc29119c2df in XQueryPointer () from /usr/lib/libX11.so.6 #7 0x00007fc2936726e8 in ?? () from /usr/lib/libgdk-x11-2.0.so.0 #8 0x00007fc293640a2f in gdk_window_get_pointer () from /usr/lib/libgdk-x11-2.0.so.0 #9 0x00007fc293b0fd66 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #10 0x00007fc293b1049b in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #11 0x00007fc293a04523 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #12 0x00007fc28fd822da in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #13 0x00007fc28fd98723 in ?? () from /usr/lib/libgobject-2.0.so.0 #14 0x00007fc28fd99dcd in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #15 0x00007fc28fd9a453 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #16 0x00007fc293b223df in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #17 0x00007fc2939fcb50 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0 #18 0x00007fc2936415b5 in ?? () from /usr/lib/libgdk-x11-2.0.so.0 #19 0x00007fc293641ed9 in gdk_window_process_all_updates () from /usr/lib/libgdk-x11-2.0.so.0 #20 0x00007fc293970987 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #21 0x00007fc293625ea6 in ?? () from /usr/lib/libgdk-x11-2.0.so.0 #22 0x00007fc28f6ba61f in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #23 0x00007fc28f6bae98 in ?? () from /usr/lib/libglib-2.0.so.0 #24 0x00007fc28f6bb2dd in g_main_loop_run () from /usr/lib/libglib-2.0.so.0 #25 0x00007fc2939fcd67 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0 #26 0x00007fc294f1335b in Gtk::Main::run () from /usr/lib/libgtkmm-2.4.so.1 #27 0x0000000000453880 in ?? () #28 0x00007fc28eb96a26 in __libc_start_main () from /lib/libc.so.6 #29 0x0000000000416e49 in ?? () #30 0x00007fff769020f8 in ?? () #31 0x000000000000001c in ?? () #32 0x0000000000000001 in ?? () #33 0x00007fff76902f61 in ?? () #34 0x0000000000000000 in ?? () (gdb) q