GNOME Bugzilla – Bug 669121
gtk_combo_box_text_get_active_text critical
Last modified: 2012-02-08 08:30:55 UTC
Call to gtk_combo_box_text_get_active_text from "changed" callback gives a critical error: Gtk-CRITICAL **: gtk_combo_box_text_get_active_text: assertion `text_column >= 0' failed
I found that this bug was in gtkmm. Here is a link to mail about it: http://mail.gnome.org/archives/gtkmm-list/2011-June/msg00066.html
Do you have a simple-as-possible test case?
Also, what version of gtkmm are you using?
(In reply to comment #2) > Do you have a simple-as-possible test case? Yes, I can. GTKBuilder (.ui) file: ... <object class="GtkComboBoxText" id="combobox1"> ... <signal name="changed" handler="changed_callback" swapped="no"/> ... </object> ... Callback: void changed_callback(GtkComboBoxText *widget, gpointer user_data) { ... printf("%s", gtk_combo_box_text_get_active_text(widget)); ... }
(In reply to comment #3) > Also, what version of gtkmm are you using? I am not using gtkmm. I said that same bug was found and corrected in gtkmm.
Please provide a simple-as-possible test case that can be compiled and run. However, what version of GTK+ are you using? I suspect that the problem might have been fixed already here: Bug #612396#c65
(In reply to comment #6) > Please provide a simple-as-possible test case that can be compiled and run. > > However, what version of GTK+ are you using? I suspect that the problem might > have been fixed already here: Bug #612396#c65 I am using version 3.2.3. Here is simple-as-possible code tarball: http://dl.dropbox.com/u/17502574/gtk3-bug.tar.gz
It seems to be a GtkBuilder bug. With "entry-text-column" property it works perfectly.
> It seems to be a GtkBuilder bug. With "entry-text-column" property it works perfectly. Glade triggered it, but the fix was made in GTK+. > I suspect that the problem might > > have been fixed already here: Bug #612396#c65 > > I am using version 3.2.3. > Here is simple-as-possible code tarball: > http://dl.dropbox.com/u/17502574/gtk3-bug.tar.gz Note that you need a \n in your printf string to actually print the message out. I cannot reproduce the problem with gtk+ from git master (3.3.15) in jhbuild. I can reproduce it with gtk+ 3.2.0 (the Ubuntu Oneiric packaged version), as expected. gtk+ 3.2.3 was released before the fix in Bug #612396#c65 was made, so I guess you need a new stable tarball release. Closing as a duplicate. I will request a new tarball release in the original bug report. *** This bug has been marked as a duplicate of bug 612396 ***
(In reply to comment #9) > Note that you need a \n in your printf string to actually print the message > out. Yes, I know, but printf was needed to invoke critical error. Thank you for reply. I am waiting for new tarball.