Hello Sandro, here is the output from reportbug running from /dev/tty6
1) Configured with a text UI: allcomp@ewa8044:~$ reportbug /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display warnings.warn(str(e), _gtk.Warning) Please enter the name of the package in which you have found a problem, or type 'other' to report a more general problem. > 2) Configured for gtk2 UI: allcomp@ewa8044:~$ reportbug /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display warnings.warn(str(e), _gtk.Warning) /usr/lib/python2.7/dist-packages/reportbug/ui/gtk2_ui.py:1520: Warning: invalid (NULL) pointer instance gtk.MESSAGE_INFO, gtk.BUTTONS_CLOSE, None) /usr/lib/python2.7/dist-packages/reportbug/ui/gtk2_ui.py:1520: Warning: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed gtk.MESSAGE_INFO, gtk.BUTTONS_CLOSE, None) /usr/lib/python2.7/dist-packages/reportbug/ui/gtk2_ui.py:1520: GtkWarning: IA__gtk_settings_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed gtk.MESSAGE_INFO, gtk.BUTTONS_CLOSE, None) /usr/lib/python2.7/dist-packages/reportbug/ui/gtk2_ui.py:1520: Warning: g_object_get: assertion 'G_IS_OBJECT (object)' failed gtk.MESSAGE_INFO, gtk.BUTTONS_CLOSE, None) /usr/lib/python2.7/dist-packages/reportbug/ui/gtk2_ui.py:1522: GtkWarning: Screen for GtkWindow not set; you must always set a screen for a GtkWindow before using the window dialog.run () /usr/lib/python2.7/dist-packages/reportbug/ui/gtk2_ui.py:1522: GtkWarning: IA__gdk_pango_context_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed dialog.run () /usr/lib/python2.7/dist-packages/reportbug/ui/gtk2_ui.py:1522: PangoWarning: pango_context_set_font_description: assertion 'context != NULL' failed dialog.run () /usr/lib/python2.7/dist-packages/reportbug/ui/gtk2_ui.py:1522: PangoWarning: pango_context_set_base_dir: assertion 'context != NULL' failed dialog.run () /usr/lib/python2.7/dist-packages/reportbug/ui/gtk2_ui.py:1522: PangoWarning: pango_context_set_language: assertion 'context != NULL' failed dialog.run () /usr/lib/python2.7/dist-packages/reportbug/ui/gtk2_ui.py:1522: PangoWarning: pango_layout_new: assertion 'context != NULL' failed dialog.run () /usr/lib/python2.7/dist-packages/reportbug/ui/gtk2_ui.py:1522: PangoWarning: pango_layout_set_text: assertion 'layout != NULL' failed dialog.run () /usr/lib/python2.7/dist-packages/reportbug/ui/gtk2_ui.py:1522: PangoWarning: pango_layout_set_attributes: assertion 'layout != NULL' failed dialog.run () /usr/lib/python2.7/dist-packages/reportbug/ui/gtk2_ui.py:1522: PangoWarning: pango_layout_set_alignment: assertion 'layout != NULL' failed dialog.run () /usr/lib/python2.7/dist-packages/reportbug/ui/gtk2_ui.py:1522: PangoWarning: pango_layout_set_ellipsize: assertion 'PANGO_IS_LAYOUT (layout)' failed dialog.run () /usr/lib/python2.7/dist-packages/reportbug/ui/gtk2_ui.py:1522: PangoWarning: pango_layout_set_single_paragraph_mode: assertion 'PANGO_IS_LAYOUT (layout)' failed dialog.run () /usr/lib/python2.7/dist-packages/reportbug/ui/gtk2_ui.py:1522: PangoWarning: pango_layout_set_width: assertion 'layout != NULL' failed dialog.run () /usr/lib/python2.7/dist-packages/reportbug/ui/gtk2_ui.py:1522: PangoWarning: pango_layout_get_extents: assertion 'layout != NULL' failed dialog.run () /usr/lib/python2.7/dist-packages/reportbug/ui/gtk2_ui.py:1522: GtkWarning: IA__gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed dialog.run () /usr/lib/python2.7/dist-packages/reportbug/ui/gtk2_ui.py:1522: GtkWarning: IA__gtk_settings_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed dialog.run () /usr/lib/python2.7/dist-packages/reportbug/ui/gtk2_ui.py:1522: GtkWarning: IA__gtk_icon_size_lookup_for_settings: assertion 'GTK_IS_SETTINGS (settings)' failed dialog.run () /usr/lib/python2.7/dist-packages/reportbug/ui/gtk2_ui.py:1522: GtkWarning: Invalid icon size 6 dialog.run () /usr/lib/python2.7/dist-packages/reportbug/ui/gtk2_ui.py:1522: GtkWarning: IA__gtk_icon_theme_load_icon: assertion 'GTK_IS_ICON_THEME (icon_theme)' failed dialog.run () /usr/lib/python2.7/dist-packages/reportbug/ui/gtk2_ui.py:1522: GtkWarning: Error loading theme icon 'dialog-information' for stock: dialog.run () /usr/lib/python2.7/dist-packages/reportbug/ui/gtk2_ui.py:1522: GtkWarning: /build/gtk+2.0-zztKf7/gtk+2.0-2.24.24/gtk/gtkstyle.c:2358: invalid icon size '6' dialog.run () /usr/lib/python2.7/dist-packages/reportbug/ui/gtk2_ui.py:1522: GtkWarning: IA__gtk_style_render_icon: assertion 'pixbuf != NULL' failed dialog.run () /usr/lib/python2.7/dist-packages/reportbug/ui/gtk2_ui.py:1522: Warning: g_object_ref: assertion 'G_IS_OBJECT (object)' failed dialog.run () /usr/lib/python2.7/dist-packages/reportbug/ui/gtk2_ui.py:1522: PangoWarning: pango_layout_set_wrap: assertion 'PANGO_IS_LAYOUT (layout)' failed dialog.run () /usr/lib/python2.7/dist-packages/reportbug/ui/gtk2_ui.py:1522: Warning: g_object_unref: assertion 'G_IS_OBJECT (object)' failed dialog.run () /usr/lib/python2.7/dist-packages/reportbug/ui/gtk2_ui.py:1522: GtkWarning: IA__gdk_screen_get_width: assertion 'GDK_IS_SCREEN (screen)' failed dialog.run () /usr/lib/python2.7/dist-packages/reportbug/ui/gtk2_ui.py:1522: PangoWarning: pango_layout_get_line_count: assertion 'layout != NULL' failed dialog.run () Floating point exception allcomp@ewa8044:~$ I think reportbug should test the DISPLAY environment variable and shouldn't try to init GUI if it is not set. Regards, Petr ______________________________________________________________ > Od: Sandro Tosi <mo...@debian.org> > Komu: Petr <mi...@volny.cz>, <764...@bugs.debian.org> > Datum: 08.10.2014 17:11 > Předmět: Re: Bug#764175: reportbug: Tries to init GUI even if it runs from > the text console. > >Hello Petr, > >On Mon, Oct 6, 2014 at 8:15 AM, Petr <mi...@volny.cz> wrote: >> if reportbug is run from the console (ttyN), it crash if configured to use >> GUI. Even if configured to use TUI, the gtk2 error message is produced. >> I expect the program should test if graphic environment is available >> (the DISPLAY variable is set) and use the text mode if not. > >this is actually a feature, which checks the available UIs so that >--help will present the options list with the currently activale UIs >for --ui switch. The problem with GTK is that there is no way to >disable warnings, but if you can provide what is the exact output you >are seeing (cut&pasting the terminal output here) I can be less >generic. > -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org