FS#25893 - geany 0.20-1 segfault after clicking on "Open file" more than once
Attached to Project:
Community Packages
Opened by Dima (dimka) - Monday, 05 September 2011, 06:27 GMT
Last edited by Alexander F. Rødseth (xyproto) - Sunday, 09 October 2011, 11:37 GMT
Opened by Dima (dimka) - Monday, 05 September 2011, 06:27 GMT
Last edited by Alexander F. Rødseth (xyproto) - Sunday, 09 October 2011, 11:37 GMT
|
Details
Description:
Clicking on "Open", then "Cancel", then "Open" again results in crash with the following error: ** Gtk:ERROR:gtkfilechooserdefault.c:8750:gtk_file_chooser_default_initial_focus: assertion failed: (widget != NULL) Aborted As far as I could tell from several tests, the problem happens ONLY when at the time of the first clicking on "Open", THERE IS NO FILE loaded in Geany. |
This task depends upon
Closed by Alexander F. Rødseth (xyproto)
Sunday, 09 October 2011, 11:37 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in 0.21.
Sunday, 09 October 2011, 11:37 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in 0.21.
geany rebuilt with CFLAGS=-g, backtrace attached.
I think it should go upstream or are there any Arch Linux specific aspects to this?
geany 0.20 (built on Sep 7 2011 with GTK 2.24.6, GLib 2.28.8, GIO)
@dorkster Ok I have gtk2-2.24.6-2 .. and I cannot reproduce it.
[0] http://www.geany.org/Support/Bugs
As you can see in my comment, I rebuilt it against gtk 2.24.6 without success.
Upstream reference: https://sourceforge.net/tracker/?func=detail&aid=3405777&group_id=153444&atid=787791
If some of you are receiving those problems on x86_64 maybe is doing some PEBKAC and it's not a bug.
(there's no need to downgrade or rebuild *anything* for me until now).
Didn't have this problem before.
Attempt to open a second file causes a crash.
If this issue is not reproducible with the given instructions, what other parts/programs could be relevant?
Here is the function with the failing assertion: http://git.gnome.org/browse/gtk+/tree/gtk/gtkfilechooserdefault.c?h=gtk-2-24#n8816
you didn't compile gtk2 and geany with debug symbols
https://wiki.archlinux.org/index.php/Debug_-_Getting_Traces#One_package_settings_only
export CFLAGS="$CLFAGS -g -O0"
export CXXFLAGS="$CXXLFAGS -g -O0"
now with this output, report on gnome bugzilla in gtk+ project and paste the link
I can recompile it later without optimization to see if it yields anything useful.
can anyone retest after updating their system ? It doesn't matter now whether geany starts with an empty session or restores previous session with open files. maybe it has something to do with system uptime ?
Installed version of GTK2: 2.24.6-2 w/ build date of 2011-09-01
Installed version of Geany: 0.20-1 w/ build date of 2011-01-06
However, building the AUR package geany-svn seems to fix the issue, which leads me to believe it's either just a matter of relinking it with the newest GTK, or it was an actual bug that was fixed in code, but it is more likely to be the former than the latter.
I built gtk2 with patch provided at bugzilla [1] and problem solved.
[1] http://bugzilla-attachments.gnome.org/attachment.cgi?id=196433