demo: spews warnings/criticals when clicking _both_ accept and reject
Since we're delaying changing the state g_timeout_add...()
we can actually click both buttons and get a few warnings/criticals like:
call-ui-demo:66772): GLib-GObject-WARNING **: 11:49:41.027: invalid uninstantiatable type '(null)' in cast to 'CuiDemoCall'
Thread 1 "call-ui-demo" received signal SIGTRAP, Trace/breakpoint trap.
g_logv (log_domain=0x7ffff7d803e8 "GLib-GObject", log_level=G_LOG_LEVEL_WARNING, format=<optimized out>, args=<optimized out>) at ../../../glib/gmessages.c:1417
1417 in ../../../glib/gmessages.c
(gdb) bt
#0 g_logv (log_domain=0x7ffff7d803e8 "GLib-GObject", log_level=G_LOG_LEVEL_WARNING, format=<optimized out>, args=<optimized out>) at ../../../glib/gmessages.c:1417
#1 0x00007ffff7c6878f in g_log (log_domain=log_domain@entry=0x7ffff7d803e8 "GLib-GObject", log_level=log_level@entry=G_LOG_LEVEL_WARNING, format=format@entry=0x7ffff7d881b0 "invalid uninstantiatable type '%s' in cast to '%s'") at ../../../glib/gmessages.c:1455
#2 0x00007ffff7d7657a in g_type_check_instance_cast (type_instance=type_instance@entry=0x5555556cd840, iface_type=<optimized out>) at ../../../gobject/gtype.c:4137
#3 0x0000555555559174 in CUI_DEMO_CALL (ptr=0x5555556cd840) at ../examples/cui-demo-call.h:9
#4 on_accept_timeout (data=0x5555556cd840, data@entry=<error reading variable: value has been optimized out>) at ../examples/cui-demo-call.c:183
#5 0x00007ffff7c61744 in g_timeout_dispatch (source=0x55555562cbc0, callback=<optimized out>, user_data=<optimized out>) at ../../../glib/gmain.c:4933
#6 0x00007ffff7c60be4 in g_main_dispatch (context=0x55555558ce50) at ../../../glib/gmain.c:3381
#7 g_main_context_dispatch (context=0x55555558ce50) at ../../../glib/gmain.c:4099
#8 0x00007ffff7c60f88 in g_main_context_iterate (context=context@entry=0x55555558ce50, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4175
#9 0x00007ffff7c6103f in g_main_context_iteration (context=context@entry=0x55555558ce50, may_block=may_block@entry=1) at ../../../glib/gmain.c:4240
#10 0x00007ffff7e7d06d in g_application_run (application=0x55555558b0f0 [GtkApplication], argc=argc@entry=1, argv=argv@entry=0x7fffffffdf28) at ../../../gio/gapplication.c:2569
#11 0x0000555555558b62 in main (argc=1, argv=0x7fffffffdf28) at ../examples/call-ui-demo.c:48
(gdb) c
Continuing.
(call-ui-demo:66772): GLib-GObject-WARNING **: 12:00:18.640: invalid uninstantiatable type '(null)' in cast to 'GObject'
Thread 1 "call-ui-demo" received signal SIGTRAP, Trace/breakpoint trap.
g_logv (log_domain=0x7ffff7d803e8 "GLib-GObject", log_level=G_LOG_LEVEL_WARNING, format=<optimized out>, args=<optimized out>) at ../../../glib/gmessages.c:1417
1417 in ../../../glib/gmessages.c
(gdb) bt
#0 g_logv (log_domain=0x7ffff7d803e8 "GLib-GObject", log_level=G_LOG_LEVEL_WARNING, format=<optimized out>, args=<optimized out>) at ../../../glib/gmessages.c:1417
#1 0x00007ffff7c6878f in g_log (log_domain=log_domain@entry=0x7ffff7d803e8 "GLib-GObject", log_level=log_level@entry=G_LOG_LEVEL_WARNING, format=format@entry=0x7ffff7d881b0 "invalid uninstantiatable type '%s' in cast to '%s'") at ../../../glib/gmessages.c:1455
#2 0x00007ffff7d7657a in g_type_check_instance_cast (type_instance=0x5555556cd840, iface_type=iface_type@entry=0x50 [GObject]) at ../../../gobject/gtype.c:4137
#3 0x0000555555559188 in on_accept_timeout (data=0x5555556cd840, data@entry=<error reading variable: value has been optimized out>) at ../examples/cui-demo-call.c:186
#4 0x00007ffff7c61744 in g_timeout_dispatch (source=0x55555562cbc0, callback=<optimized out>, user_data=<optimized out>) at ../../../glib/gmain.c:4933
#5 0x00007ffff7c60be4 in g_main_dispatch (context=0x55555558ce50) at ../../../glib/gmain.c:3381
#6 g_main_context_dispatch (context=0x55555558ce50) at ../../../glib/gmain.c:4099
#7 0x00007ffff7c60f88 in g_main_context_iterate (context=context@entry=0x55555558ce50, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4175
#8 0x00007ffff7c6103f in g_main_context_iteration (context=context@entry=0x55555558ce50, may_block=may_block@entry=1) at ../../../glib/gmain.c:4240
#9 0x00007ffff7e7d06d in g_application_run (application=0x55555558b0f0 [GtkApplication], argc=argc@entry=1, argv=argv@entry=0x7fffffffdf28) at ../../../gio/gapplication.c:2569
#10 0x0000555555558b62 in main (argc=1, argv=0x7fffffffdf28) at ../examples/call-ui-demo.c:48
(gdb) c
Continuing.
(call-ui-demo:66772): GLib-GObject-CRITICAL **: 12:00:23.009: g_object_notify: assertion 'G_IS_OBJECT (object)' failed
Thread 1 "call-ui-demo" received signal SIGTRAP, Trace/breakpoint trap.
g_logv (log_domain=0x7ffff7d803e8 "GLib-GObject", log_level=G_LOG_LEVEL_CRITICAL, format=<optimized out>, args=<optimized out>) at ../../../glib/gmessages.c:1417
1417 in ../../../glib/gmessages.c
(gdb) bt
#0 g_logv (log_domain=0x7ffff7d803e8 "GLib-GObject", log_level=G_LOG_LEVEL_CRITICAL, format=<optimized out>, args=<optimized out>) at ../../../glib/gmessages.c:1417
#1 0x00007ffff7c6878f in g_log (log_domain=<optimized out>, log_level=<optimized out>, format=<optimized out>) at ../../../glib/gmessages.c:1455
#2 0x0000555555559197 in on_accept_timeout (data=0x5555556cd840, data@entry=<error reading variable: value has been optimized out>) at ../examples/cui-demo-call.c:186
#3 0x00007ffff7c61744 in g_timeout_dispatch (source=0x55555562cbc0, callback=<optimized out>, user_data=<optimized out>) at ../../../glib/gmain.c:4933
#4 0x00007ffff7c60be4 in g_main_dispatch (context=0x55555558ce50) at ../../../glib/gmain.c:3381
#5 g_main_context_dispatch (context=0x55555558ce50) at ../../../glib/gmain.c:4099
#6 0x00007ffff7c60f88 in g_main_context_iterate (context=context@entry=0x55555558ce50, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4175
#7 0x00007ffff7c6103f in g_main_context_iteration (context=context@entry=0x55555558ce50, may_block=may_block@entry=1) at ../../../glib/gmain.c:4240
#8 0x00007ffff7e7d06d in g_application_run (application=0x55555558b0f0 [GtkApplication], argc=argc@entry=1, argv=argv@entry=0x7fffffffdf28) at ../../../gio/gapplication.c:2569
#9 0x0000555555558b62 in main (argc=1, argv=0x7fffffffdf28) at ../examples/call-ui-demo.c:48
With !29 (merged) it will even have failed assertions