FS#57974 - [breeze-gtk] Can't use breeze icons with GTK apps

Attached to Project: Arch Linux
Opened by Victor Perez (vipermaseg) - Monday, 26 March 2018, 17:16 GMT
Last edited by Antonio Rojas (arojas) - Monday, 14 May 2018, 20:56 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Antonio Rojas (arojas)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

When configuring GTK apps to use breeze icons they don't seem to find it. Inkscape crashes after:

(inkscape:4025): GdkPixbuf-CRITICAL **: 19:06:29.571: gdk_pixbuf_scale_simple: assertion 'dest_width > 0' failed

(inkscape:4025): GLib-GObject-CRITICAL **: 19:06:29.572: g_object_ref: assertion 'G_IS_OBJECT (object)' failed
terminate called after throwing an instance of 'Gtk::IconThemeError'

Other programs like Gimp work, but stay with default icons.

Not sure under which breeze package I should file this bug. Sorry for the inconvenience.

Additional info:
local/breeze 5.12.3-1 (plasma)
Artwork, styles and assets for the Breeze visual style for the Plasma Desktop
local/breeze-gtk 5.12.3-1 (plasma)
Breeze widget theme for GTK 2 and 3
local/breeze-icons 5.44.0-1 (kf5)
Breeze icon themes


Steps to reproduce:

*Mind small inaccuracies. My system language is set to Spanish and I am translating back.

- Go to Plasma Settings.
- Search by "gtk".
- Set Icon Theme and Fallback to Adwaita.
This task depends upon

Closed by  Antonio Rojas (arojas)
Monday, 14 May 2018, 20:56 GMT
Reason for closing:  Works for me
Comment by Antonio Rojas (arojas) - Sunday, 01 April 2018, 00:14 GMT
This looks like unrelated issues to me. AFAIK gimp doesn't support gtk icon themes. Please post a backtrace of the inkscape crash. Do you have issues with any other gtk application?
Comment by Victor Perez (vipermaseg) - Sunday, 01 April 2018, 00:48 GMT
Now that you mention it, Libre Office is not taking the theme, and neither are Filezilla or Putty (but those are Gtkmm). I also have gftp, but I think that none of those is supporting themes. I've tried leafpad, but is also not taking the theme. Can you give me any examples of programs that should properly get themed by Breeze?

Inscape's stacktrace:

~]$ inkscape

(inkscape:20476): Gtk-WARNING **: 02:41:24.828: Imposible encontrar el motor de temas en la ruta al _modulo: «adwaita»,

(inkscape:20476): Gtk-WARNING **: 02:41:24.832: Imposible encontrar el motor de temas en la ruta al _modulo: «adwaita»,

(inkscape:20476): GdkPixbuf-CRITICAL **: 02:41:25.255: gdk_pixbuf_scale_simple: assertion 'dest_width > 0' failed

(inkscape:20476): GLib-GObject-CRITICAL **: 02:41:25.255: g_object_ref: assertion 'G_IS_OBJECT (object)' failed
terminate called after throwing an instance of 'Gtk::IconThemeError'

Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at www.inkscape.org
with a detailed description of the steps leading to the crash, so we can fix it.
Abortado (`core' generado)


The last line ("Abortado") is only writen after I press Ok on an error window. No clue why it seems to look for adwaita. It is set to Breeze and everything works when I set it back to adwaita.

Trace when run with adwaita (everything works properly):

~]$ inkscape

(inkscape:20536): Gtk-WARNING **: 02:43:24.909: Imposible encontrar el motor de temas en la ruta al _modulo: «adwaita»,

(inkscape:20536): Gtk-WARNING **: 02:43:24.914: Imposible encontrar el motor de temas en la ruta al _modulo: «adwaita»,
[vipermaseg@Ultralisk ~]$ inkscape

(inkscape:20683): Gtk-WARNING **: 02:46:59.843: Imposible encontrar el motor de temas en la ruta al _modulo: «adwaita»,

(inkscape:20683): Gtk-WARNING **: 02:46:59.847: Imposible encontrar el motor de temas en la ruta al _modulo: «adwaita»,

Comment by Antonio Rojas (arojas) - Sunday, 01 April 2018, 08:57 GMT
leafpad should work, also any gnome application. Please attach your ~/.gtkrc-2.0 and ~/.config/gtk-3.0/settings.ini
Comment by Victor Perez (vipermaseg) - Sunday, 01 April 2018, 09:24 GMT
I noticed that the kde4 file was modified at the same time as .gtkrc-2.0, so I'm attaching it as well.
Comment by Antonio Rojas (arojas) - Sunday, 01 April 2018, 09:33 GMT
Nothing looks wrong with those files. Something seems to be broken in your installation or setup. Check the output of 'pacman -Qkk breeze-icons' and test with a clean user.
Comment by Victor Perez (vipermaseg) - Sunday, 01 April 2018, 09:52 GMT
On a clean user inkscape doesn't crash, but it doesn't have icons. I attached a screencap.

~]$ pacman -Qkk breeze-icons
breeze-icons: 15771 archivos totales, 0 archivos alterados

~]$ pacman -Qkk breeze-gtk
breeze-gtk: 540 archivos totales, 0 archivos alterados
Comment by Oleh Prypin (oprypin) - Thursday, 03 May 2018, 16:54 GMT
I confirm this problem.

GNOME Application Style (GTK) -> Icon Theme: Breeze (or Breeze Dark)
Inkscape consistently crashes.

Any other icon theme (Oxygen, Adwaita)
Inkscape works.
Comment by Antonio Rojas (arojas) - Thursday, 03 May 2018, 16:57 GMT
Still need a backtrace of the crash (not just the terminal output)
Comment by Victor Perez (vipermaseg) - Thursday, 03 May 2018, 17:15 GMT
For me the problem seems to have magically gone away. Here I list the versions I'm on now:

local/breeze 5.12.4-1 (plasma)
local/breeze-gtk 5.12.4-1 (plasma)
local/breeze-icons 5.45.0-1 (kf5)
local/inkscape 0.92.3-2

But just in case it happens, can you point us to instructions or a manual to give you the backtrace you need?
Comment by Oleh Prypin (oprypin) - Thursday, 03 May 2018, 17:17 GMT
I think it's about rebuilding and reinstalling the package with modified PKGBUILD: https://wiki.archlinux.org/index.php/Debug_-_Getting_Traces#General
And then maybe running Inkscape in a special way.

For now I'm failing on the build step:

checking for freetype-config... no
configure: error: Cannot find freetype-config
==> ERROR: A failure occurred in build().
Aborting...

I may come back to this later
Comment by Antonio Rojas (arojas) - Thursday, 03 May 2018, 17:25 GMT
Install gdb, run 'gdb inkscape', then type 'run' at the prompt and 'bt' after it crashes, and post the output
Comment by Antonio Rojas (arojas) - Monday, 14 May 2018, 15:55 GMT
ping?
Comment by Victor Perez (vipermaseg) - Monday, 14 May 2018, 16:49 GMT
pong

As stated before, for me the problem is gone without having done anything special. I will do save these emails for when I have to do another bug report. Let's hope Oleh answers.

Thank you Antonio.
Comment by Oleh Prypin (oprypin) - Monday, 14 May 2018, 20:55 GMT
Sorry.

Does not reproduce now.

Loading...