Bug#831453: meld crashed when invoked from command line after recent upgrade (suspect GTK)

Bálint Réczey balint at balintreczey.hu
Mon Aug 1 18:36:19 UTC 2016


Control: notfound -1 3.16.1-1

Hi Chris,

2016-07-16 11:29 GMT+02:00 Chris Tillman <toff.tillman at gmail.com>:
> Package: meld
> Version: 3.16.1-1
> Severity: normal
>
> Dear Maintainer,
>
> Hi,
>
> I invoked meld with two small documents.
>
>         $ meld 6100.1.chk 6100.2.chk
>
> The result was
>
> No protocol specified
> Unable to init server: Could not connect: Connection refused
> No protocol specified
> Unable to init server: Could not connect: Connection refused
>
> (meld:14422): Gtk-CRITICAL **: gtk_icon_theme_get_for_screen: assertion
> 'GDK_IS_SCREEN (screen)' failed
> Traceback (most recent call last):
>   File "/usr/bin/meld", line 260, in <module>
>     setup_resources()
>   File "/usr/bin/meld", line 193, in setup_resources
>     Gtk.IconTheme.get_default().append_search_path(icon_dir)
> AttributeError: 'NoneType' object has no attribute 'append_search_path'
>
> I noticed bug 830952, so checked my GTK version; it was 3.20.6-2. Perhaps "too
> new"?
>
> When I opened meld through the menu instead, I was able to use it to view the
> diff.
>
> Let me just say that I think meld provides the most attractive diff result
> display I have ever seen, it's a joy to use just because of that.

Thank you for the kind words about meld. I started maintaining it
because I liked it very much, too. :-)

The crash you copied is a result of not having the proper DISPLAY
configured in the terminal:

$ DISPLAY=invalid meld
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused

(meld:3117): Gtk-CRITICAL **: gtk_icon_theme_get_for_screen: assertion
'GDK_IS_SCREEN (screen)' failed
Traceback (most recent call last):
  File "/usr/bin/meld", line 260, in <module>
    setup_resources()
  File "/usr/bin/meld", line 193, in setup_resources
    Gtk.IconTheme.get_default().append_search_path(icon_dir)
AttributeError: 'NoneType' object has no attribute 'append_search_path'

When running meld from the menu the DISPLAY is almost always but in a
terminal it can be missing when you for example change user using su
or ssh to a different machine without setting up X forwarding.

Cheers,
Balint




More information about the pkg-gnome-maintainers mailing list