Bug#439189: update-manager: Horrible death if run outside of an X environment

Javier Fernández-Sanguino Peña jfs at computer.org
Thu Aug 23 06:44:27 UTC 2007


Package: update-manager
Version: 0.42.2ubuntu22-15
Priority: wishlist

If I start update-manager from the CLI of a non-X terminal (no $DISPLAY)
it dies with a 'Segment violation' and produces in STDERR the attached
errors. 

Why doesn't it start by checking if you do not have a $DISPLAY and abort
saying it's not a console application? A simple message trapping those
exceptions and saying "Sorry, this application needs a graphical environment
to run" would be sufficient.

Regards

Javier
-------------- next part --------------
/var/lib/python-support/python2.4/gtk-2.0/gtk/__init__.py:69: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
/usr/lib/python2.4/site-packages/apt/__init__.py:18: FutureWarning: apt API not stable yet
  warnings.warn("apt API not stable yet", FutureWarning)
/usr/bin/update-manager:63: Warning: invalid (NULL) pointer instance
  _("You need to be root to run this program"))
/usr/bin/update-manager:63: Warning: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
  _("You need to be root to run this program"))
/usr/bin/update-manager:63: GtkWarning: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
  _("You need to be root to run this program"))
/usr/bin/update-manager:63: Warning: g_object_get: assertion `G_IS_OBJECT (object)' failed
  _("You need to be root to run this program"))
/usr/bin/update-manager:63: Warning: value "TRUE" of type `gboolean' is invalid or out of range for property `visible' of type `gboolean'
  _("You need to be root to run this program"))
/usr/bin/update-manager:64: GtkWarning: Screen for GtkWindow not set; you must always set
a screen for a GtkWindow before using the window
  dialog.run()
/usr/bin/update-manager:64: GtkWarning: gdk_pango_context_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
  dialog.run()
/usr/bin/update-manager:64: PangoWarning: pango_context_set_font_description: assertion `context != NULL' failed
  dialog.run()
/usr/bin/update-manager:64: PangoWarning: pango_context_set_base_dir: assertion `context != NULL' failed
  dialog.run()
/usr/bin/update-manager:64: PangoWarning: pango_context_set_language: assertion `context != NULL' failed
  dialog.run()
/usr/bin/update-manager:64: PangoWarning: pango_layout_new: assertion `context != NULL' failed
  dialog.run()
/usr/bin/update-manager:64: PangoWarning: pango_layout_set_text: assertion `layout != NULL' failed
  dialog.run()
/usr/bin/update-manager:64: PangoWarning: pango_layout_set_attributes: assertion `layout != NULL' failed
  dialog.run()
/usr/bin/update-manager:64: PangoWarning: pango_layout_set_alignment: assertion `layout != NULL' failed
  dialog.run()
/usr/bin/update-manager:64: PangoWarning: pango_layout_set_ellipsize: assertion `PANGO_IS_LAYOUT (layout)' failed
  dialog.run()
/usr/bin/update-manager:64: PangoWarning: pango_layout_set_single_paragraph_mode: assertion `PANGO_IS_LAYOUT (layout)' failed
  dialog.run()
/usr/bin/update-manager:64: PangoWarning: pango_layout_set_width: assertion `layout != NULL' failed
  dialog.run()
/usr/bin/update-manager:64: PangoWarning: pango_layout_get_extents: assertion `layout != NULL' failed
  dialog.run()
/usr/bin/update-manager:64: GtkWarning: gtk_icon_theme_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
  dialog.run()
/usr/bin/update-manager:64: GtkWarning: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
  dialog.run()
/usr/bin/update-manager:64: GtkWarning: gtk_icon_size_lookup_for_settings: assertion `GTK_IS_SETTINGS (settings)' failed
  dialog.run()
/usr/bin/update-manager:64: GtkWarning: Invalid icon size 6

  dialog.run()
/usr/bin/update-manager:64: GtkWarning: gtk_icon_theme_load_icon: assertion `GTK_IS_ICON_THEME (icon_theme)' failed
  dialog.run()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20070823/1b6b43c0/attachment-0001.pgp 


More information about the pkg-gnome-maintainers mailing list