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


Joined: 02 Aug 2004 Posts: 503
|
Posted: Tue Oct 09, 2007 4: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: 239 Location: Lahti, Finland
|
Posted: Sun Oct 21, 2007 3: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...
--//--
Asus K8V Deluxe, Athlon64 3500+, nVidia 7600 GT, 3Gb 400MHz DDR, IDE HD 160Gb, IDE HD 850Mb and SATA HD 250Gb |
|
| Back to top |
|
 |
pmatos Veteran

Joined: 06 Jun 2003 Posts: 1017 Location: Southampton, UK
|
Posted: Wed Jan 02, 2008 11:16 am 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: 1252 Location: Baltimore, MD
|
Posted: Thu Jan 10, 2008 11:11 am 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 6: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: 61
|
Posted: Sun Mar 02, 2008 5: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 7:46 am 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 Administrator


Joined: 09 Apr 2004 Posts: 9441 Location: the dutch mountains
|
Posted: Fri Mar 28, 2008 8:40 am 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 |
|
 |
|