Bug 156487 - hugin segfaults when closing file dialog
Summary: hugin segfaults when closing file dialog
Status: RESOLVED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: X11 Applications (show other bugs)
Version: Beta 4
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Michal Marek
QA Contact: Stefan Dirsch
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-09 14:54 UTC by Michal Marek
Modified: 2006-04-13 07:00 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
hugin.backtrace (5.40 KB, text/plain)
2006-03-09 14:55 UTC, Michal Marek
Details
hugin-0.5-filedialog-close-crash.patch (651 bytes, patch)
2006-03-09 16:17 UTC, Michal Marek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.