After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 791836 - gtk-update-icon-cache is too concise
gtk-update-icon-cache is too concise
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: .General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2017-12-21 09:49 UTC by Ildar
Modified: 2018-04-15 00:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ildar 2017-12-21 09:49:15 UTC
Like this:
> [root@ildar Vibrancy-Colors]# gtk-update-icon-cache -f .
> gtk-update-icon-cache: The generated cache was invalid.
> [root@ildar Vibrancy-Colors-Dark]# gtk-update-icon-cache -f .
> gtk-update-icon-cache: Cache file created successfully.

The 1st case fails miserably with creating 500M garbage. It should at least report a little more.
P.S. The core problem was - spaces in icon file names BTW.
Comment 1 André Klapper 2017-12-21 14:22:22 UTC
So it is not "too concise", as you wrote in the ticket summary?

Also, please always include version information in tickets.
Comment 2 Daniel Boles 2017-12-21 14:33:26 UTC
> It should at least report a little more.

You should at least suggest what more it should report...
Comment 3 Ildar 2017-12-21 15:49:59 UTC
Allrightie.
A user did:
> [root@localhost Vibrancy-Colors]# gtk-update-icon-cache -f .
and he got:
> gtk-update-icon-cache: The generated cache was invalid.
+ no cache file +  500M garbage.

A user expects:
1. verbose explanation what gone wrong
2. possibly options for debugging/troubleshooting.
Comment 4 Matthias Clasen 2017-12-29 18:19:18 UTC
Can you be more specific about the 'garbage' ? What is it, do we leave a temp file behind ?
Comment 5 Ildar 2017-12-29 18:55:35 UTC
yep, `.icon-theme.cache` (starting with dot)
Comment 6 André Klapper 2017-12-29 19:24:20 UTC
Where exactly (path)? Which size?
Comment 7 Ildar 2017-12-29 19:38:00 UTC
> $ cd `mktemp -d`
> $ mkdir -p 16x16/actions
> $ cp -a /usr/share/icons/HighContrast/index.theme .
> $ cp /usr/share/icons/HighContrast/16x16/actions/action-unavailable.png 16x16/actions/'spaced icon.png'
> $ gtk-update-icon-cache --include-image-data .
> gtk-update-icon-cache: The generated cache was invalid.
> $ ls -la
> итого 12
> drwx------  3 ildar ildar  100 дек 30 01:35 .
> drwxrwx--T 26 root  ildar  800 дек 30 01:33 ..
> drwxr-xr-x  3 ildar ildar   60 дек 30 01:34 16x16
> -rw-r--r--  1 ildar ildar 1184 дек 30 01:35 .icon-theme.cache
> -rw-r--r--  1 ildar ildar 5632 мар 27  2017 index.theme

The size of `.icon-theme.cache` is bigger then the icon(s) it caches.
Comment 8 Ildar 2018-04-12 06:34:07 UTC
Still need info?
Comment 9 Matthias Clasen 2018-04-15 00:14:27 UTC
As announced a while ago, we are migrating to gitlab, and bugs that haven't seen activity in the last year or so will be not be migrated, but closed out in bugzilla.

If this bug is still relevant to you, you can open a new issue describing the symptoms and how to reproduce it with gtk 3.22.x or master in gitlab:

https://gitlab.gnome.org/GNOME/gtk/issues/new