Bug 156487

Summary: hugin segfaults when closing file dialog
Product: [openSUSE] SUSE Linux 10.1 Reporter: Michal Marek <mmarek>
Component: X11 ApplicationsAssignee: Michal Marek <mmarek>
Status: RESOLVED FIXED QA Contact: Stefan Dirsch <sndirsch>
Severity: Normal    
Priority: P5 - None    
Version: Beta 4   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: hugin.backtrace
hugin-0.5-filedialog-close-crash.patch

Description Michal Marek 2006-03-09 14:54:49 UTC
Run hugin, select "Add individual images..." and close the file dialog again.
hugin either segfaults immediatelly or prints:


(hugin:17019): GLib-GObject-WARNING **: invalid uninstantiatable type `gchararray' in cast to `GtkFileChooser'

(hugin:17019): Gtk-CRITICAL **: gtk_file_chooser_get_filter: assertion `GTK_IS_FILE_CHOOSER (chooser)' failed

(hugin:17019): Gtk-CRITICAL **: gtk_file_chooser_list_filters: assertion `GTK_IS_FILE_CHOOSER (chooser)' failed

After two or three iterations, hugin eventually segfaults. Same result
on x86_64 and i586.
Comment 1 Michal Marek 2006-03-09 14:55:54 UTC
Created attachment 71990 [details]
hugin.backtrace
Comment 2 Michal Marek 2006-03-09 16:17:21 UTC
Created attachment 72033 [details]
hugin-0.5-filedialog-close-crash.patch

Patch that avoids touching the dlg object when it's closed/cancelled.
The real problem is wxGTK not distinguishing between "dialog canceled" and
"dialog closed" (and the GTK widget free()d). It allways returns wxID_CANCEL :-(
Comment 3 Stanislav Brabec 2006-03-20 15:24:28 UTC
Fixed. Could you report it upstream?
Comment 4 Michal Marek 2006-04-13 07:00:37 UTC
done.