Hi everyone!
I'm building a wxPython application and I just came across a strange crash.. If I try to create a wx.PrintDialog after importing the gtk module, the program segfaults immediately.
Here's how to recreate the bug:
import wx
import gtk
app = wx.PySimpleApp()
wx.PrintDialog(None).ShowModal()
app.MainLoop()
If I run this testcase, I get the following:
GnomePrint-WARNING **: Could not create filter from description 'GnomePrintFilterSelect': filter 'GnomePrintFilterSelect' is unknown
Segmentation fault
If I leave out the "import gtk", the program shows the dialog (after throwing a bunch of warnings)
GnomePrint-WARNING **: Could not create filter from description 'GnomePrintFilterSelect': filter 'GnomePrintFilterSelect' is unknown
GLib-GObject-WARNING **: invalid (NULL) pointer instance
GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
GnomePrint-WARNING **: Could not create filter from description 'GnomePrintFilterClip [ GnomePrintFilterMultipage ]': filter 'GnomePrintFilterClip' is unknown
GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
libgnomeprintui-CRITICAL **: gnome_print_layout_selector_load_filter: assertion `GNOME_IS_PRINT_FILTER (f)' failed
GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed
GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed
GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed
GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed
GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed
Please note that the problem emerges as soon as I instantiate the dialog, not by calling ShowModal()
I'm attaching a gdb backtrace.. Any hint on what I could try next? Should I open a bug report for wxPython?
I'm running Xubuntu 9.04 with wxPython 2.8.9.1, but I could reproduce the error on Ubuntu 10.04 too.
Thanks for your attention!
gdb.txt (5.59 KB)