(theapp:16751): Gdk-CRITICAL **: gdk_window_get_window_type: assertion 'GDK_IS_WINDOW (window)' failed

Thread 1 "theapp" received signal SIGTRAP, Trace/breakpoint trap.
0x00007ffff4268101 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
+(gdb) bt
#0  0x00007ffff4268101 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007ffff426950d in g_logv () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff426966f in g_log () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff5d45ba4 in gdk_window_get_window_type () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#4  0x00007ffff6259b0a in gtk_grab_add () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#5  0x00007ffff627c10b in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#6  0x00007ffff627c1a6 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#7  0x00007ffff6174cbf in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#8  0x00007ffff6175ffb in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#9  0x00007ffff625b9fc in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#10 0x00007ffff4539f85 in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#11 0x00007ffff454bf92 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#12 0x00007ffff455468f in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#13 0x00007ffff4554fcf in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#14 0x00007ffff63c2b2c in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#15 0x00007ffff625876e in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#16 0x00007ffff625a938 in gtk_main_do_event () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#17 0x00007ffff5d352b5 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#18 0x00007ffff5d69192 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#19 0x00007ffff4262697 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007ffff4262900 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007ffff42629ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007ffff518071d in g_application_run () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#23 0x00007ffff7972b32 in Gtk::Application::run(Gtk::Window&) () from /usr/lib/x86_64-linux-gnu/libgtkmm-3.0.so.1
#24 0x00000000004db125 in me::theapp::gui_run () at theapp_gui.cpp:323
#25 0x000000000055a433 in me::theapp::run () at main.cpp:47
#26 0x000000000055a56d in main () at main.cpp:54

