Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gtk-update-icon-cache crashes...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
mathfeel
l33t
l33t


Joined: 03 Aug 2004
Posts: 700

PostPosted: Tue Oct 09, 2007 9:59 am    Post subject: gtk-update-icon-cache crashes... Reply with quote

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
View user's profile Send private message
AnXa
Apprentice
Apprentice


Joined: 06 Apr 2004
Posts: 250

PostPosted: Sun Oct 21, 2007 8:17 am    Post subject: Reply with quote

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
View user's profile Send private message
pmatos
Veteran
Veteran


Joined: 06 Jun 2003
Posts: 1246
Location: Eckental, Germany

PostPosted: Wed Jan 02, 2008 4:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
ikshaar
Veteran
Veteran


Joined: 23 Jul 2002
Posts: 1339
Location: Baltimore, MD

PostPosted: Thu Jan 10, 2008 4:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
coeus
n00b
n00b


Joined: 16 Jul 2003
Posts: 22

PostPosted: Sun Feb 03, 2008 11:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
binary_runner
n00b
n00b


Joined: 26 Oct 2003
Posts: 64

PostPosted: Sun Mar 02, 2008 10:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
nucleos
n00b
n00b


Joined: 16 May 2006
Posts: 4

PostPosted: Thu Mar 27, 2008 12:46 pm    Post subject: [GTK] The generated cache was invalid Reply with quote

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
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Fri Mar 28, 2008 1:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mgiese
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1630
Location: indiana

PostPosted: Sun Dec 17, 2017 2:58 pm    Post subject: Reply with quote

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 :D

Ryzen9 7950x (powersave governor) ; Radeon 7900XTX ; kernel 6.11.3 ; XFCE
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Thu Nov 22, 2018 8:40 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum