GNOME Bugzilla – Bug 460235
Crash when printing (print_printer_combo_cb)
Last modified: 2008-02-14 06:39:22 UTC
Selected Print in the File menu, the dialog box appeared and then galeon crashed before it got drawn. Attaching the trace as i can't submit it (comment too large)
Created attachment 92397 [details] The stacktrace
Thanks for the report.
+ Trace 150450
*** Bug 475398 has been marked as a duplicate of this bug. ***
Created attachment 95857 [details] [review] Fixes the print dialog crash There seems to be a behavior change with Gtk 2.20. In this case, the print dialog gets its combo callback called *twice*: once before its show() method is called (which didn't happen with gtk 2.18), and once after. Problem is, when it's called before, the combo value is at -1 and that sets the selected_printer variable, hence the crash. I've attached a work-around patch that ignores the callback when the combo value is -1. That fixes the problem for me. If anyone knows more about that Gtk callback behavior change, there might be a cleaner way to fix this.
It fixes the crash for me, thanks :)
Committed. Thanks!
*** Bug 487330 has been marked as a duplicate of this bug. ***
*** Bug 501713 has been marked as a duplicate of this bug. ***
*** Bug 492613 has been marked as a duplicate of this bug. ***
*** Bug 493292 has been marked as a duplicate of this bug. ***
*** Bug 495471 has been marked as a duplicate of this bug. ***
*** Bug 496009 has been marked as a duplicate of this bug. ***
*** Bug 504180 has been marked as a duplicate of this bug. ***
*** Bug 507571 has been marked as a duplicate of this bug. ***
*** Bug 509064 has been marked as a duplicate of this bug. ***
*** Bug 511604 has been marked as a duplicate of this bug. ***
*** Bug 516295 has been marked as a duplicate of this bug. ***