After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 653579 - Gtk-CRITICAL **: gtk_combo_box_text_get_active_text: assertion `text_column >= 0' failed
Gtk-CRITICAL **: gtk_combo_box_text_get_active_text: assertion `text_column >...
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: general
3.0.x
Other Linux
: Normal critical
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on: 650369
Blocks:
 
 
Reported: 2011-06-28 18:21 UTC by gtglus
Modified: 2012-01-04 12:51 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description gtglus 2011-06-28 18:21:49 UTC
From Gtkmm Users List (28.06.2011),

After compiling this tutorial example,

http://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/combobox/text

I get the message below,

Gtk-CRITICAL **: gtk_combo_box_text_get_active_text: assertion
`text_column >= 0' failed

I'm using Gtkmm 3.0.1 with Gtk+ 3.0.11 libraries...

Not sure if it's really a bug...
Comment 1 Murray Cumming 2011-06-29 07:11:18 UTC
Confirmed. This happens when selecting an item from the combobox. Here is the backtrace at that warning with "break g_log":

(gdb) bt
  • #0 g_log
    at gmessages.c line 572
  • #1 g_return_if_fail_warning
    at gmessages.c line 582
  • #2 gtk_combo_box_text_get_active_text
    at gtkcomboboxtext.c line 600
  • #3 Gtk::ComboBoxText::get_active_text
    at comboboxtext.cc line 192
  • #4 ExampleWindow::on_combo_changed
    at book/combobox/text/examplewindow.cc line 47
  • #5 sigc::bound_mem_functor0<void, ExampleWindow>::operator()
    at /opt/gnome30/include/sigc++-2.0/sigc++/functors/mem_fun.h line 1787
  • #6 sigc::adaptor_functor<sigc::bound_mem_functor0<void, ExampleWindow> >::operator()
    at /opt/gnome30/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h line 251
  • #7 sigc::internal::slot_call0<sigc::bound_mem_functor0<void, ExampleWindow>, void>::call_it
    at /opt/gnome30/include/sigc++-2.0/sigc++/functors/slot.h line 103
  • #8 sigc::slot0<void>::operator()
    at /opt/gnome30/include/sigc++-2.0/sigc++/functors/slot.h line 440
  • #9 Glib::SignalProxyNormal::slot0_void_callback
    at signalproxy.cc line 95
  • #10 g_cclosure_marshal_VOID__VOID
    at gmarshal.c line 85
  • #11 g_closure_invoke
    at gclosure.c line 773
  • #12 signal_emit_unlocked_R
    at gsignal.c line 3326
  • #13 g_signal_emit_valist
    at gsignal.c line 2987
  • #14 g_signal_emit
    at gsignal.c line 3044
  • #15 gtk_combo_box_set_active_internal
    at gtkcombobox.c line 4200
  • #16 gtk_combo_box_set_active_iter
    at gtkcombobox.c line 4258
  • #17 gtk_combo_box_menu_activate
    at gtkcombobox.c line 3105
  • #18 g_cclosure_marshal_VOID__STRING
    at gmarshal.c line 504
  • #19 g_closure_invoke
    at gclosure.c line 773
  • #20 signal_emit_unlocked_R
    at gsignal.c line 3256
  • #21 g_signal_emit_valist
  • #22 g_signal_emit
    at gsignal.c line 3044
  • #23 item_activated_cb
    at gtktreemenu.c line 1466
  • #24 g_cclosure_marshal_VOID__VOID
    at gmarshal.c line 85
  • #25 g_closure_invoke
    at gclosure.c line 773
  • #26 signal_emit_unlocked_R
    at gsignal.c line 3256
  • #27 g_signal_emit_valist
    at gsignal.c line 2987
  • #28 g_signal_emit
    at gsignal.c line 3044
  • #29 gtk_widget_activate
    at gtkwidget.c line 6136
  • #30 gtk_menu_shell_activate_item
    at gtkmenushell.c line 1404
  • #31 gtk_menu_shell_button_release
    at gtkmenushell.c line 803
  • #32 gtk_menu_button_release
    at gtkmenu.c line 3473
  • #33 _gtk_marshal_BOOLEAN__BOXED
    at gtkmarshalers.c line 85
  • #34 g_type_class_meta_marshal
    at gclosure.c line 884
  • #35 g_closure_invoke
    at gclosure.c line 773
  • #36 signal_emit_unlocked_R
    at gsignal.c line 3294
  • #37 g_signal_emit_valist
    at gsignal.c line 2997
  • #38 g_signal_emit
    at gsignal.c line 3044
  • #39 gtk_widget_event_internal
    at gtkwidget.c line 6105
  • #40 gtk_widget_event
    at gtkwidget.c line 5821
  • #41 gtk_propagate_event
    at gtkmain.c line 2599
  • #42 gtk_main_do_event
    at gtkmain.c line 1874
  • #43 _gdk_event_emit
    at gdkevents.c line 71
  • #44 gdk_event_source_dispatch
    at gdkeventsource.c line 360
  • #45 g_main_dispatch
    at gmain.c line 2512
  • #46 g_main_context_dispatch
    at gmain.c line 3095
  • #47 g_main_context_iterate
    at gmain.c line 3173
  • #48 g_main_loop_run
    at gmain.c line 3381
  • #49 gtk_main
    at gtkmain.c line 1357
  • #50 Gtk::Main::run_impl
    at main.cc line 420
  • #51 Gtk::Main::run
    at main.cc line 384
  • #52 main
    at book/combobox/text/main.cc line 28

Comment 2 Murray Cumming 2011-06-29 07:42:53 UTC
Fixed in the gtkmm-3-0 and master branches:
http://git.gnome.org/browse/gtkmm/commit/?id=876efee31ba47d8685b6a6d94e64231e2dc292a3

Thanks.
Comment 3 Kjell Ahlstedt 2011-06-29 13:54:28 UTC
The GTK+ bug 650369 emanates from the Python language binding. The problem
described in that bug is probably also caused by gtk_combo_box_text_new()
setting attribute values.
Comment 4 gtglus 2011-08-15 12:16:22 UTC
The bug seems that it has came again in the current last git release...
Comment 5 Murray Cumming 2011-08-15 13:17:00 UTC
(In reply to comment #4)
> The bug seems that it has came again in the current last git release...

What version do you mean? Does a certain git commit break things for you. It seems fine to me with git master.
Comment 6 Murray Cumming 2011-08-22 07:01:22 UTC
Please reopen if you have some information.
Comment 7 Kjell Ahlstedt 2012-01-03 15:44:11 UTC
The fix in gtk+ bug 612396 comment 67 makes it possible to undo the fix in
this bug's comment 2. Its removal is really not urgent. The fix makes no harm,
it's just unnecessary now.
Comment 8 Murray Cumming 2012-01-03 15:52:11 UTC
Thanks. Could you add a comment about that to the source code? I would prefer to keep the code there, to support older GTK+ versions.
Comment 9 Kjell Ahlstedt 2012-01-04 12:51:57 UTC
> Could you add a comment about that to the source code?

http://git.gnome.org/browse/gtkmm/commit/?id=b423e9d2bb50b22047062cbcc6ba98327ee390ea