Re: Simplistic example GTK MM 3.4 failing!
- From: Murray Cumming <murrayc murrayc com>
- To: Basile Starynkevitch <basile starynkevitch net>
- Cc: gtkmm-list gnome org
- Subject: Re: Simplistic example GTK MM 3.4 failing!
- Date: Tue, 12 Jun 2012 12:47:41 +0200
On Tue, 2012-06-12 at 10:54 +0200, Basile Starynkevitch wrote:
> Hello All,
>
> The simplistic example below
>
> #include <gtkmm.h>
>
> int
> main (int argc, char **argv)
> {
> Glib::RefPtr<Gtk::Application> app =
> Gtk::Application::create(argc, argv,
> "net.starynkevitch.example1");
>
> Gtk::ApplicationWindow window;
> window.set_title("example " __FILE__);
> return app->run(window);
> }
>
> when compiled on Debian/Sid/AMD64 & gtkmm 3.4 package with
>
> g++ -Wall -g testbasile.cc $(pkg-config --cflags --libs gtkmm-3.0) -o testbasile.bin
>
> and run with ./testbasile.bin
> is failing with
> % ./testbasile.bin
>
> (testbasile.bin:28415): GLib-GIO-CRITICAL **: g_application_list_actions: assertion `application->priv->is_registered' failed
Yes, I see this too. Here is a backtrace at that warning, using "break
g_log" in gdb:
(gdb) bt
#0 g_log (log_domain=0x14ffb1d "GLib-GIO",
log_level=G_LOG_LEVEL_CRITICAL, format=0x12e3538 "%s: assertion `%s'
failed")
at gmessages.c:791
#1 0x0126295c in g_return_if_fail_warning (log_domain=0x14ffb1d
"GLib-GIO",
pretty_function=0x150025d "g_application_list_actions",
expression=0x14fffc8 "application->priv->is_registered")
at gmessages.c:801
#2 0x0147437d in g_application_list_actions (action_group=0x8081010) at
gapplication.c:1634
#3 0x01477458 in g_action_group_list_actions (action_group=0x8081010)
at gactiongroup.c:349
#4 0x00c2b467 in g_action_muxer_insert (muxer=0x8124720,
prefix=0xfa7ad8 "app", action_group=0x8081010) at gactionmuxer.c:443
#5 0x00c5293a in gtk_application_window_real_realize (widget=0x8113020)
at gtkapplicationwindow.c:754
#6 0x00477f34 in Gtk::Widget_Class::realize_callback (self=0x8113020)
at widget.cc:3946
#7 0x011cecc8 in g_cclosure_marshal_VOID__VOIDv (closure=0x80879c0,
return_value=0x0, instance=0x8113020,
args=0xbfffe5fc "1\373", <incomplete sequence \361>,
marshal_data=0x477e70, n_params=0, param_types=0x0) at gmarshal.c:115
#8 0x011cc956 in g_type_class_meta_marshalv (closure=0x80879c0,
return_value=0x0, instance=0x8113020,
args=0xbfffe5fc "1\373", <incomplete sequence \361>,
marshal_data=0x64, n_params=0, param_types=0x0) at gclosure.c:997
#9 0x011cc518 in _g_closure_invoke_va (closure=0x80879c0,
return_value=0x0, instance=0x8113020,
args=0xbfffe5fc "1\373", <incomplete sequence \361>, n_params=0,
param_types=0x0) at gclosure.c:840
#10 0x011e5d7c in g_signal_emit_valist (instance=0x8113020,
signal_id=19, detail=0,
var_args=0xbfffe5fc "1\373", <incomplete sequence \361>) at
gsignal.c:3207
#11 0x011e67b7 in g_signal_emit (instance=0x8113020, signal_id=19,
detail=0) at gsignal.c:3352
#12 0x00f19774 in gtk_widget_realize (widget=0x8113020) at
gtkwidget.c:4429
#13 0x00f37bb1 in gtk_window_show (widget=0x8113020) at gtkwindow.c:4852
#14 0x00477bac in Gtk::Widget_Class::show_callback (self=0x8113020) at
widget.cc:3786
#15 0x011cec60 in g_cclosure_marshal_VOID__VOID (closure=0x8087788,
return_value=0x0, n_param_values=1, param_values=0xbfffe910,
invocation_hint=0xbfffe868, marshal_data=0x477ae8) at gmarshal.c:85
#16 0x011cc8e8 in g_type_class_meta_marshal (closure=0x8087788,
return_value=0x0, n_param_values=1, param_values=0xbfffe910,
invocation_hint=0xbfffe868, marshal_data=0x50) at gclosure.c:970
#17 0x011cc2a8 in g_closure_invoke (closure=0x8087788, return_value=0x0,
n_param_values=1, param_values=0xbfffe910,
invocation_hint=0xbfffe868) at gclosure.c:777
#18 0x011e6bf7 in signal_emit_unlocked_R (node=0x80877a0, detail=0,
instance=0x8113020, emission_return=0x0,
instance_and_params=0xbfffe910) at gsignal.c:3477
#19 0x011e64bb in g_signal_emit_valist (instance=0x8113020,
signal_id=15, detail=0, var_args=0xbfffeb7c "") at gsignal.c:3296
---Type <return> to continue, or q <return> to quit---
#20 0x011e67b7 in g_signal_emit (instance=0x8113020, signal_id=15,
detail=0) at gsignal.c:3352
#21 0x00f188d2 in gtk_widget_show (widget=0x8113020) at gtkwidget.c:4011
#22 0x0047b41f in Gtk::Widget::show (this=0xbfffec24) at widget.cc:5872
#23 0x00374d57 in Gtk::Application::run (this=0x804d668, window=...) at
application.cc:154
#24 0x08048973 in main ()
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]