Bug 2058897

Summary: [abrt] meld: _get_pixbuf(): emblemcellrenderer.py:64:_get_pixbuf:gi.repository.GLib.GError: gtk-icon-theme-error-quark: Icon 'emblem-new' not present in theme Adwaita (0)
Product: [Fedora] Fedora Reporter: Markus Rathgeb <maggu2810>
Component: meldAssignee: Dominic Hopf <dmaphy>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 36CC: dmaphy, jon.dufresne, kparal, lkundrak, mads, oliver
Target Milestone: ---Flags: dmaphy: needinfo+
dmaphy: needinfo+
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/5ef7a8a6df13d8045620a0acbbbe7942a597eaa6
Whiteboard: abrt_hash:2f8cd84968781ea15a4b273fbac83b789bafee1d;VARIANT_ID=workstation;
Fixed In Version: meld-3.21.0-12.fc36 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-29 02:07:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description Markus Rathgeb 2022-02-26 19:36:13 UTC
Description of problem:
I compared two directories with a bunch of files.

Version-Release number of selected component:
meld-3.21.0-9.fc36

Additional info:
reporter:       libreport-2.17.0
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-2caf6759-0baa-4306-afe5-531495b9d6f4.scope
cmdline:        /usr/bin/python3 /usr/bin/meld /tmp/selinux/original /tmp/selinux/waydroid
crash_function: _get_pixbuf
exception_type: gi.repository.GLib.GError
executable:     /usr/bin/meld
interpreter:    python3-3.10.2-3.fc36.x86_64
kernel:         5.17.0-0.rc5.102.fc36.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
emblemcellrenderer.py:64:_get_pixbuf:gi.repository.GLib.GError: gtk-icon-theme-error-quark: Icon 'emblem-new' not present in theme Adwaita (0)

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/meld/ui/emblemcellrenderer.py", line 100, in do_render
    pixbuf = self._get_pixbuf(self.emblem_name, self._emblem_size)
  File "/usr/lib/python3.10/site-packages/meld/ui/emblemcellrenderer.py", line 64, in _get_pixbuf
    pixbuf = icon_theme.load_icon(name, size, 0).copy()
gi.repository.GLib.GError: gtk-icon-theme-error-quark: Icon 'emblem-new' not present in theme Adwaita (0)

Local variables in innermost frame:
self: <emblemcellrenderer.EmblemCellRenderer object at 0x7f1854345980 (EmblemCellRenderer at 0x55946df18500)>
name: 'emblem-new'
size: 8
icon_theme: <Gtk.IconTheme object at 0x7f185432c180 (GtkIconTheme at 0x55946d4f5a30)>

Comment 1 Markus Rathgeb 2022-02-26 19:36:16 UTC
Created attachment 1863430 [details]
File: backtrace

Comment 2 Markus Rathgeb 2022-02-26 19:36:17 UTC
Created attachment 1863431 [details]
File: cpuinfo

Comment 3 Markus Rathgeb 2022-02-26 19:36:18 UTC
Created attachment 1863432 [details]
File: environ

Comment 4 Markus Rathgeb 2022-02-26 19:36:20 UTC
Created attachment 1863433 [details]
File: mountinfo

Comment 5 Markus Rathgeb 2022-02-26 19:36:21 UTC
Created attachment 1863434 [details]
File: namespaces

Comment 6 Markus Rathgeb 2022-02-26 19:36:22 UTC
Created attachment 1863435 [details]
File: open_fds

Comment 7 Markus Rathgeb 2022-05-04 11:33:01 UTC
Similar problem has been detected:

Compare two directories recursive

reporter:       libreport-2.17.1
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-004f191d-ade3-4b98-974f-ceec0528e5ba.scope
cmdline:        /usr/bin/python3 /usr/bin/meld /home/de23a4/workspace/dir1/ /home/de23a4/workspace/dir2/
crash_function: _get_pixbuf
exception_type: gi.repository.GLib.GError
executable:     /usr/bin/meld
interpreter:    python3-3.10.4-1.fc36.x86_64
kernel:         5.17.4-300.fc36.x86_64
package:        meld-3.21.0-9.fc36
reason:         emblemcellrenderer.py:64:_get_pixbuf:gi.repository.GLib.GError: gtk-icon-theme-error-quark: Icon 'emblem-new' not present in theme Adwaita (0)
runlevel:       N 5
type:           Python3
uid:            1000

Comment 8 jesse 2022-05-19 15:27:59 UTC
Similar problem has been detected:

- Invoke meld from gnome-terminal to recursively compare 2 directories
  `meld dir1 dir2`
- meld launches but abrt reports an error
- meld rendering of left panel is corrupted and there are odd artifacts which mousing over or otherwise working with the left buffer

The abrt error seems to indicate there is some missing theme icon

reporter:       libreport-2.17.1
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-87179c45-2b0f-4a14-84b9-aedc0ed66085.scope
cmdline:        /usr/bin/python3 /usr/bin/meld some-service/ some-platform/java-xxx-converter/
crash_function: _get_pixbuf
environ:        
exception_type: gi.repository.GLib.GError
executable:     /usr/bin/meld
interpreter:    python3-3.10.4-1.fc36.x86_64
kernel:         5.17.7-300.fc36.x86_64
mountinfo:      
package:        meld-3.21.0-9.fc36
reason:         emblemcellrenderer.py:64:_get_pixbuf:gi.repository.GLib.GError: gtk-icon-theme-error-quark: Icon 'emblem-new' not present in theme Adwaita (0)
runlevel:       N 5
type:           Python3
uid:            1000

Comment 9 Kamil Páral 2022-05-24 10:43:35 UTC
Dominic, can you please cherry-pick the fix as suggested in the upstream report, until a new release is out?
https://gitlab.gnome.org/GNOME/meld/-/issues/672
Currently Meld is seriously broken.

Comment 10 f.j.panag 2022-06-01 10:16:30 UTC
Similar problem has been detected:

Happens when I select to compare two directories.

reporter:       libreport-2.17.1
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-org.gnome.Meld-1932136.scope
cmdline:        /usr/bin/python3 /usr/bin/meld
crash_function: _get_pixbuf
exception_type: gi.repository.GLib.GError
executable:     /usr/bin/meld
interpreter:    python3-3.10.4-1.fc36.x86_64
kernel:         5.17.9-300.fc36.x86_64
package:        meld-3.21.0-9.fc36
reason:         emblemcellrenderer.py:64:_get_pixbuf:gi.repository.GLib.GError: gtk-icon-theme-error-quark: Icon 'emblem-new' not present in theme Adwaita (0)
runlevel:       N 5
type:           Python3
uid:            1000

Comment 11 Jon Dufresne 2022-06-04 14:27:21 UTC
I was able to workaround the issue by installing the gnome-icon-theme package. Should this package be a dependency?

Comment 12 Mads Kiilerich 2022-06-04 20:27:22 UTC
*** Bug 2093637 has been marked as a duplicate of this bug. ***

Comment 13 Kamil Páral 2022-06-06 12:05:33 UTC
Jon, thanks for this workaround! I think the gnome-icon-theme package is just a temporary solution until a new version of meld is released and updated in Fedora. In the meantime, either the gnome-icon-theme package or cherry-picking the fix from comment 9 is necessary. I'll try to email Dominik, the package maintainer, directly.

Comment 14 Mads Kiilerich 2022-06-06 13:12:37 UTC
I created https://src.fedoraproject.org/rpms/meld/pull-request/6 with a backport of the fix (and also a PR for the prerequisite fix for FTBF).

Scratch build on https://koji.fedoraproject.org/koji/taskinfo?taskID=87884319 .

Comment 15 Kamil Páral 2022-06-28 06:47:09 UTC
Here's the update for this problem:
https://bodhi.fedoraproject.org/updates/FEDORA-2022-8dc172c1f4

Comment 16 Fedora Update System 2022-06-28 17:27:03 UTC
FEDORA-2022-8dc172c1f4 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-8dc172c1f4

Comment 17 Fedora Update System 2022-06-29 02:07:14 UTC
FEDORA-2022-8dc172c1f4 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.