View previous topic :: View next topic |
Author |
Message |
mathfeel l33t

Joined: 03 Aug 2004 Posts: 700
|
Posted: Tue Oct 09, 2007 9:59 am Post subject: gtk-update-icon-cache crashes... |
|
|
During emerge, there's some problem with updating icon cache:
Code: | * Updating icons cache ...
The generated cache was invalid.
The generated cache was invalid. [ !! ]
* Failed to update cache with icon //usr/share/icons/Tulliana
|
So, I checked what's going on with gtk-update-icon-cache:
Code: | $ sudo gtk-update-icon-cache -q /usr/share/icons/Tulliana/
Password:
Gtk-ERROR **: file updateiconcache.c: line 1337 (write_dir_index): assertion failed: (offset == ftell (cache))
aborting...
Aborted
|
Anybody? _________________ -----------------------------------------------------------
"In heaven all the interesting people are missing"
-- Friedrich Nietzsche |
|
Back to top |
|
 |
AnXa Apprentice


Joined: 06 Apr 2004 Posts: 250
|
Posted: Sun Oct 21, 2007 8:17 am Post subject: |
|
|
I'm having similar problems.
I'm also getting this "The generated cache was invalid." but not other problems you wrote about. _________________ The idea isn't about how do you see or hear it, it's about how do you experience it... |
|
Back to top |
|
 |
pmatos Veteran

Joined: 06 Jun 2003 Posts: 1246 Location: Eckental, Germany
|
Posted: Wed Jan 02, 2008 4:16 pm Post subject: |
|
|
AnXa wrote: | I'm having similar problems.
I'm also getting this "The generated cache was invalid." but not other problems you wrote about. |
Same here... were any of you able to solve this?
Cheers,
Paulo Matos |
|
Back to top |
|
 |
ikshaar Veteran


Joined: 23 Jul 2002 Posts: 1339 Location: Baltimore, MD
|
Posted: Thu Jan 10, 2008 4:11 pm Post subject: |
|
|
Had same invalid cache message. Finally found that running emerge with --debug would show the folder causing trouble (in my case /usr/share/icons/Nuovo). Getting rid of the folder solved it.
I did not know how to fix the folder per se. _________________ "May God stands between you and harm in all the empty places where you must walk" - Babylon 5 |
|
Back to top |
|
 |
coeus n00b

Joined: 16 Jul 2003 Posts: 22
|
Posted: Sun Feb 03, 2008 11:44 pm Post subject: |
|
|
to find the corrupt directory, run in bash: (i've found the command via "grep 'Updating icons cache' /usr/portage/eclass/*") Code: | cd /usr/share/icons
for f in $(ls */index.theme | sed 's,/index.theme$,,' ) ; do echo $f ; gtk-update-icon-cache -f $f || echo XXX $f XXX ; echo ; done |
the XXX marks the spot.
delete that directory and reinstall it. (for that, you may find the tool "qfile" from app-portage/portage-utils useful.)
by the way... you can delete each quasi-empty directory, which has just that one "icon-theme.cache" file. those are leftovers of deinstalled icon themes. |
|
Back to top |
|
 |
binary_runner n00b

Joined: 26 Oct 2003 Posts: 64
|
Posted: Sun Mar 02, 2008 10:28 pm Post subject: |
|
|
I've investigated the issue and in my case there are usually two reasons for this "error":
- the cached directory is empty
- caused by icons pack uninstall removing files but leaving directory in place
- directory is not empry but the icons are not in subfolders named WIDTHxHEIGHT (icon dimensions)
- caused by me, copying some old icons into a directory under /usr/share/icons
(it would be ncie to have some script sorting them into on-demand created directories)
|
|
Back to top |
|
 |
nucleos n00b


Joined: 16 May 2006 Posts: 4
|
Posted: Thu Mar 27, 2008 12:46 pm Post subject: [GTK] The generated cache was invalid |
|
|
Hello,
I've read someone had the same problem I experience right now :
Every time I try to compile GTK+, the error is : "The generated cache was invalid."
I try to follow the guy's recommendations, but I don't know how I can wipe out and reinstall totally all my icons... Code: | nucleos@localhost /usr/share/icons $ ls
Crux HighContrastInverse LargePrint
gnome HighContrastLargePrint LowContrast
hicolor HighContrastLargePrintInverse LowContrastLargePrint
HighContrast HighContrast-SVG Mist |
I've tried to wipe out the whole folder, but this has given me the *same* error. (Gosh !)
If anyone has a better solution, I'm in. Hum... And I never installed any "Gartoon" icon sets. By the way, even the "gnome" theme has problems : Code: | localhost gnome # gtk-update-icon-cache /usr/share/icons/gnome/
The generated cache was invalid. |
|
|
Back to top |
|
 |
nixnut Bodhisattva


Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Fri Mar 28, 2008 1:40 pm Post subject: |
|
|
merged above post here _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
 |
Mgiese Veteran


Joined: 23 Mar 2005 Posts: 1630 Location: indiana
|
Posted: Sun Dec 17, 2017 2:58 pm Post subject: |
|
|
Code: | # for f in $(ls */index.theme | sed 's,/index.theme$,,' ) ; do echo $f ; gtk-update-icon-cache -f $f || echo XXX $f XXX ; echo ; done
Adwaita
Tulliana
gtk-update-icon-cache: The generated cache was invalid.
XXX Tulliana XXX
| Thanks for the info!
deleting /usr/share/icons/Tulliana solved the issue
merci _________________ I do not have a Superman complex, for I am God not Superman
Ryzen9 7950x (powersave governor) ; Radeon 7900XTX ; kernel 6.11.3 ; XFCE |
|
Back to top |
|
 |
pappy_mcfae Watchman


Joined: 27 Dec 2007 Posts: 5999 Location: Pomona, California.
|
Posted: Thu Nov 22, 2018 8:40 am Post subject: |
|
|
Code: | cd /usr/share/icons
for f in $(ls */index.theme | sed 's,/index.theme$,,' ) ; do echo $f ; gtk-update-icon-cache -f $f || echo XXX $f XXX ; echo ; done
|
Thanks for that. Nuovo and nou were my culprits. Not any more.
Cheers,
Pappy _________________ This space left intentionally blank, except for these ASCII symbols. |
|
Back to top |
|
 |
|