4

I used Meld 3.20.2-1ubuntu1 updated on 30/1/21 and upgraded to Ubuntu 20.04 recently. Meld was working fine until recently: though there is a warning for a crash report at the beginning, Meld compares the directories indicated and issues a report but the filenames are hidden (picture below). What is happening ? thanks for your help,

enter image description here


While executing

mkdir /tmp/{da,db}; echo a > /tmp/da/f; echo b > /tmp/db/f; meld /tmp/{da,db}

I get plenty of errors messages :

Traceback (most recent call last): File "/usr/lib/python3/dist-packages/meld/ui/emblemcellrenderer.py", line 95, in do_render pixbuf = self._get_pixbuf(self._icon_name, self._icon_size) File "/usr/lib/python3/dist-packages/meld/ui/emblemcellrenderer.py", line 83, in _get_pixbuf pixbuf = icon_theme.load_icon(name, size, 0).copy() gi.repository.GLib.Error: gtk-icon-theme-error-quark: Icon 'folder' not present in theme Adwaita (0)" several times and finishing with "cairo.Error: Context.restore() without matching Context.save()", but report correct,

$ gsettings list-recursively | grep icon-theme; export | grep DESKTOP
org.cinnamon.desktop.interface icon-theme 'gnome'
org.cinnamon.desktop.interface icon-theme-backup 'gnome'
com.canonical.unity-greeter icon-theme-name 'ubuntu-mono-dark'
org.gnome.desktop.interface icon-theme 'Adwaita'

declare -x DESKTOP_SESSION="ubuntu" declare -x GNOME_DESKTOP_SESSION_ID="this-is-deprecated" declare -x XDG_CURRENT_DESKTOP="ubuntu:GNOME" declare -x XDG_SESSION_DESKTOP="ubuntu"

N0rbert
  • 103,263
fb268
  • 81
  • 1
  • 7

2 Answers2

6

I initially encountered this problem in my newly installed Ubuntu 20.04 on WSL 1 and, later, in Ubuntu 22.04 on WSL 2. I'd like to share the solution originally pointed out by @logoff:

I installed the package adwaita-icon-theme-full:

sudo apt update
sudo apt install adwaita-icon-theme-full

After that, meld started running fine.

2

I just had this issue with meld (however I was trying to run it inside a docker container with X11 forwarding). My problem was that I just didn't have the icon theme on the host installed in the docker container (for me ubuntustudio-icon-theme). Meld seems to get very upset if it can't find the icons it expects.

It might be worth trying an apt install adwaita-icon-theme (I also noticed a adwaita-icon-theme-full package .. no idea if this is relevant for your problem though).

(I realise that my setup was likely different from yours and this might be a long shot to solve your issue, however I thought it was worth mentioning on off chance it helps and for all 3 people out there that are struggling to use meld inside docker)

David
  • 31