Public bug reported:

Binary package hint: terminator

Dear Colleagues,

terminator is segfaulting when no $DISPLAY is set, e.g. when you out of
accident do something like this:

[EMAIL PROTECTED]:~> ssh <remotehost where terminator lives>
[EMAIL PROTECTED]:~> terminator

Trace:var/lib/python-support/python2.5/gtk-2.0/gtk/__init__.py:72: GtkWarning: 
could not open display
  warnings.warn(str(e), _gtk.Warning)
/usr/bin/terminator:509: Warning: invalid (NULL) pointer instance
  self.window = gtk.Window ()
/usr/bin/terminator:509: Warning: g_signal_connect_data: assertion 
`G_TYPE_CHECK_INSTANCE (instance)' failed
  self.window = gtk.Window ()
/usr/bin/terminator:125: GtkWarning: gtk_clipboard_get_for_display: assertion 
`display != NULL' failed
  self.clipboard = gtk.clipboard_get (gtk.gdk.SELECTION_CLIPBOARD)
/usr/bin/terminator:129: GtkWarning: gtk_settings_get_for_screen: assertion 
`GDK_IS_SCREEN (screen)' failed
  self._vte = vte.Terminal ()
/usr/bin/terminator:168: GtkWarning: gdk_screen_get_display: assertion 
`GDK_IS_SCREEN (screen)' failed
  self.matches['full_uri'] = self._vte.match_add 
('''\<(news:|telnet:|nntp:|file:/|https?:|ftps?:|webcal:)//([-A-Za-z0-9]+(:[-A-Za-z0-9,?;.:/!%$^*&~"#']+)?@)?[-A-Za-z0-9.]+(:[0-9]+)?(/[-A-Za-z0-9_$.+!*(),;:@&=?/~#%]*[^]'.}>)
 \t\r\n,\"])?\>/?''')
/usr/bin/terminator:168: GtkWarning: gdk_cursor_new_for_display: assertion 
`GDK_IS_DISPLAY (display)' failed
  self.matches['full_uri'] = self._vte.match_add 
('''\<(news:|telnet:|nntp:|file:/|https?:|ftps?:|webcal:)//([-A-Za-z0-9]+(:[-A-Za-z0-9,?;.:/!%$^*&~"#']+)?@)?[-A-Za-z0-9.]+(:[0-9]+)?(/[-A-Za-z0-9_$.+!*(),;:@&=?/~#%]*[^]'.}>)
 \t\r\n,\"])?\>/?''')
/usr/bin/terminator:169: GtkWarning: gdk_screen_get_display: assertion 
`GDK_IS_SCREEN (screen)' failed
  self.matches['addr_only'] = self._vte.match_add 
('''\<(www|ftp)[-A-Za-z0-9]*\.[-A-Za-z0-9.]+(:[0-9]+)?(/[-A-Za-z0-9_$.+!*(),;:@&=?/~#%]*[^]'.}>)
 \t\r\n,\"])?\>/?''')
/usr/bin/terminator:169: GtkWarning: gdk_cursor_new_for_display: assertion 
`GDK_IS_DISPLAY (display)' failed
  self.matches['addr_only'] = self._vte.match_add 
('''\<(www|ftp)[-A-Za-z0-9]*\.[-A-Za-z0-9.]+(:[0-9]+)?(/[-A-Za-z0-9_$.+!*(),;:@&=?/~#%]*[^]'.}>)
 \t\r\n,\"])?\>/?''')
/usr/bin/terminator:171: GtkWarning: gdk_screen_get_display: assertion 
`GDK_IS_SCREEN (screen)' failed
  self.matches['email'] = self._vte.match_add ('''\<(mailto:)[EMAIL 
PROTECTED](\.[a-z0-9][a-z0-9-]*)+\>''')
/usr/bin/terminator:171: GtkWarning: gdk_cursor_new_for_display: assertion 
`GDK_IS_DISPLAY (display)' failed
  self.matches['email'] = self._vte.match_add ('''\<(mailto:)[EMAIL 
PROTECTED](\.[a-z0-9][a-z0-9-]*)+\>''')
/usr/bin/terminator:173: GtkWarning: gdk_screen_get_display: assertion 
`GDK_IS_SCREEN (screen)' failed
  self.matches['nntp'] = self._vte.match_add 
('''\<news:[-A-Z\^_a-z{|}~!"#$%&'()*+,./0-9;:[EMAIL PROTECTED](:[0-9]+)?\>''')
/usr/bin/terminator:173: GtkWarning: gdk_cursor_new_for_display: assertion 
`GDK_IS_DISPLAY (display)' failed
  self.matches['nntp'] = self._vte.match_add 
('''\<news:[-A-Z\^_a-z{|}~!"#$%&'()*+,./0-9;:[EMAIL PROTECTED](:[0-9]+)?\>''')
/usr/bin/terminator:531: GtkWarning: Screen for GtkWindow not set; you must 
always set
a screen for a GtkWindow before using the window
  self.window.show ()
/usr/bin/terminator:531: GtkWarning: gdk_pango_context_get_for_screen: 
assertion `GDK_IS_SCREEN (screen)' failed
  self.window.show ()
/usr/bin/terminator:531: PangoWarning: pango_context_set_font_description: 
assertion `context != NULL' failed
  self.window.show ()
/usr/bin/terminator:531: PangoWarning: pango_context_set_base_dir: assertion 
`context != NULL' failed
  self.window.show ()
/usr/bin/terminator:531: PangoWarning: pango_context_set_language: assertion 
`context != NULL' failed
  self.window.show ()
/usr/bin/terminator:531: PangoWarning: pango_context_get_language: assertion 
`context != NULL' failed
  self.window.show ()
/usr/bin/terminator:531: GtkWarning: gtk_settings_get_for_screen: assertion 
`GDK_IS_SCREEN (screen)' failed
  self.window.show ()
/usr/bin/terminator:531: GtkWarning: gdk_screen_get_display: assertion 
`GDK_IS_SCREEN (screen)' failed
  self.window.show ()
/usr/bin/terminator:531: GtkWarning: gdk_screen_get_root_window: assertion 
`GDK_IS_SCREEN (screen)' failed
  self.window.show ()
/usr/bin/terminator:531: Warning: g_object_get_data: assertion `G_IS_OBJECT 
(object)' failed
  self.window.show ()

I didn't check the new release in intrepid...but I think the fix should
be easy to check $DISPLAY environment before starting up.

Regards,

\sh

** Affects: terminator (Ubuntu)
     Importance: Undecided
         Status: New

-- 
[Hardy] Segfault of Terminator when no $DISPLAY is set
https://bugs.launchpad.net/bugs/234566
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to