Bug#425131: python-gtk2: segmentation fault when DISPLAY is not set

Sven Arvidsson sa at whiz.se
Mon May 28 15:15:51 UTC 2007


On Mon, 2007-05-28 at 00:11 +0200, Josselin Mouette wrote:
> I can reproduce it easily:
> $ DISPLAY= python
> >>> import gtk
> >>> a=gtk.FileChooserDialog()
> __main__:1: Warning: invalid (NULL) pointer instance
> __main__:1: Warning: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
> __main__:1: Warning: g_object_get: assertion `G_IS_OBJECT (object)' failed
> __main__:1: GtkWarning: gtk_icon_theme_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
> __main__:1: GtkWarning: gtk_icon_theme_has_icon: assertion `GTK_IS_ICON_THEME (icon_theme)' failed
> __main__:1: GtkWarning: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
> __main__:1: GtkWarning: gtk_icon_size_lookup_for_settings: assertion `GTK_IS_SETTINGS (settings)' failed
> __main__:1: GtkWarning: Invalid icon size 2
> 
> __main__:1: GtkWarning: gtk_icon_theme_load_icon: assertion `GTK_IS_ICON_THEME (icon_theme)' failed

Thanks, this way I can reproduce it too.

There's a note here about a change in checking for DISPLAY in 2.10, but
I guess it shouldn't lead to a segfault in any case?

http://live.gnome.org/PyGTK/WhatsNew210
http://bugzilla.gnome.org/show_bug.cgi?id=316877

-- 
Cheers,
Sven Arvidsson
http://www.whiz.se
PGP Key ID 760BDD22
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20070528/0cd27f46/attachment.pgp 


More information about the pkg-gnome-maintainers mailing list