snwh / paper-icon-theme

Paper Icon Theme
http://snwh.org/paper
Creative Commons Attribution Share Alike 4.0 International
1.57k stars 141 forks source link

Big sized cache file or broken cache generator when installing #343

Open Thanatermesis opened 8 years ago

Thanatermesis commented 8 years ago

Hello,

First of all congratulations for this extremely magnificent theme :)

I was trying it and the setup of the package is pretty slow (like installing the package hangs or something like this), this is not a big problem, so I see that there's a ton of icons included (which is very nice!)

The package actually is 35 MB and installed is 66 MB, which is not so big, but after to have installed it in one of my systems I have see that the size used for my installed grow a lot, the cause?

2,1G /usr/share/icons/Paper/.icon-theme.cache

O_O

Is this normal or it is a bug?

I said bug because trying to install it on another machine I got this result

Configurando paper-icon-theme (1.3+r569~daily~ubuntu16.04.1) ... gtk-update-icon-cache-3.0: *Gtk:ERROR:/build/gtk+3.0-Khzsga/gtk+3.0-3.4.2/./gtk/updateiconcache.c:1099:write bucket: assertion failed: (_offset == ftell (cache)) /usr/sbin/update-icon-caches: línea 10: 24299 Abortado gtk-update-icon-cache-3.0 --force --quiet "$dir" WARNING: icon cache generation failed for /usr/share/icons/Paper

And, even if says that failed, there's a 2.1G cache file on the directory

Target system is a debian wheezy

Thank you Thanatermesis

Thanatermesis commented 8 years ago

Mmmh, I wondered if the cause could have been the amount of (ton of) icons included in the theme (or their size), so I have removed from my computer the 512x512@2x directory since I don't think that I use it for anything (btw, what are these @2x directories for, exactly?), and also removed the entry references from the index.theme file, and this is the result:

root /u/s/i/Paper ❯❯❯ update-icon-caches /usr/share/icons/Paper root /u/s/i/Paper ❯❯❯ du -hs icon-theme.cache 559M icon-theme.cache

Now the caches are correctly generated, without fail, and a file (without the prepended dot) is created (even if stills a little big)

Thanatermesis commented 8 years ago

I think that there's a bug with the update-icon-caches which has some limit or memory underrun, which should be reported as a bug

By other side, like my previous question, what is the dirs @2x for? so maybe could be a good idea to exclude them from the main package and create a second package for those 2x icons (this is for special screens with big resolutions?), so normal users don't needs them by default and it increases a lot the sizes

snwh commented 8 years ago

The @2x directories are for high DPI displays, which is more and more common, so I'll not be removing those.

Icon theme caches are not necessary to use themes, I'm not sure why on earth it's 2.1 GB -many times larger than the theme itself.

riumutu commented 8 years ago

Exactly same situations for me on Ubuntu 14.04.5, although I didn't try to remove high resolution icons and just deleted the 2.1 GB .icon-theme.cache.

The theme itself works very well for now and I'm so pleased with the appearance. Thanks!

Thanatermesis commented 8 years ago

I have readed that the (correctly-generated ones, without the dot) cache's are needed to speed up the gtk applications, more exactly to not make a big disk usage (searching/indexing icons), i have noticed this behaviour when you enter on a dir with icons not cached yet, you may need to wait 2 seconds that they appears... when they are cached they are instant

2016-08-16 9:07 GMT-05:00 riumutu notifications@github.com:

Exactly same situations for me on Ubuntu 14.04.5, although I didn't try to remove high resolution icons and just deleted the 2.1 GB .icon-theme.cache.

The theme itself works very well for now and I'm so pleased with the appearance. Thanks!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/snwh/paper-icon-theme/issues/343#issuecomment-240112556, or mute the thread https://github.com/notifications/unsubscribe-auth/ABIHuitFvwZB5R_Qzg2XwlMVdhg3j_Vpks5qgcQZgaJpZM4JjzZw .

Do you want a new linux experience? Just follow my legacy...