Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
recent png image issues with gtk apps [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
peter4
Guru
Guru


Joined: 19 Jul 2005
Posts: 359
Location: Wroclaw, Poland

PostPosted: Sat Oct 10, 2009 9:03 am    Post subject: recent png image issues with gtk apps [solved] Reply with quote

Hi,
a few days ago, after a big system update I started having trouble with png images in gtk apps. For example I can't run porthole at all - it fails with
Code:
Traceback (most recent call last):
  File "/usr/bin/porthole", line 98, in <module>
    main()
  File "/usr/lib64/python2.6/site-packages/porthole/startup.py", line 204, in main
    myicon = gtk.gdk.pixbuf_new_from_file(DATA_PATH + "pixmaps/porthole-icon.png")
glib.GError: Couldn't recognize the image file format for file '/usr/share/porthole/pixmaps/porthole-icon.png'
while it's a perfectly valid png image.

I have also problem with gkrellm - it says
Code:
Cannot load file image: /usr/share/gkrellm2/themes/H2O/frame_top.png
  Cannot load file image: /usr/share/gkrellm2/themes/H2O/frame_bottom.png
  Cannot load file image: /usr/share/gkrellm2/themes/H2O/frame_left.png
  Cannot load file image: /usr/share/gkrellm2/themes/H2O/frame_right.png
  Cannot load file image: /usr/share/gkrellm2/themes/H2O/bg_chart.png
  Cannot load file image: /usr/share/gkrellm2/themes/H2O/bg_grid.png
  Cannot load file image: /usr/share/gkrellm2/themes/H2O/bg_panel.png
  Cannot load file image: /usr/share/gkrellm2/themes/H2O/bg_meter.png
  Cannot load file image: /usr/share/gkrellm2/themes/H2O/decal_misc.png
  Cannot load file image: /usr/share/gkrellm2/themes/H2O/data_in.png
  Cannot load file image: /usr/share/gkrellm2/themes/H2O/data_in_grid.png
  Cannot load file image: /usr/share/gkrellm2/themes/H2O/data_out.png
  Cannot load file image: /usr/share/gkrellm2/themes/H2O/data_out_grid.png
  Cannot load file image: /usr/share/gkrellm2/themes/H2O/krell_panel.png
  Cannot load file image: /usr/share/gkrellm2/themes/H2O/krell_meter.png
  Cannot load file image: /usr/share/gkrellm2/themes/H2O/krell_slider.png
  Cannot load file image: /usr/share/gkrellm2/themes/H2O/host/bg_panel.png
  Cannot load file image: /usr/share/gkrellm2/themes/H2O/cal/bg_panel.png
  Cannot load file image: /usr/share/gkrellm2/themes/H2O/clock/bg_panel.png
  Cannot load file image: /usr/share/gkrellm2/themes/H2O/timer/bg_panel.png
  Cannot load file image: /usr/share/gkrellm2/themes/H2O/mem/bg_panel.png
  Cannot load file image: /usr/share/gkrellm2/themes/H2O/swap/bg_panel.png
  Cannot load file image: /usr/share/gkrellm2/themes/H2O/fs/krell.png
  Cannot load file image: /usr/share/gkrellm2/themes/H2O/fs/bg_panel.png
  Cannot load file image: /usr/share/gkrellm2/themes/H2O/apm/bg_panel.png
  Cannot load file image: /usr/share/gkrellm2/themes/H2O/uptime/bg_panel.png
  Cannot load file image: /usr/share/gkrellm2/themes/H2O/net/decal_net_leds.png
  Cannot load file image: /usr/share/gkrellm2/themes/H2O/timer/decal_timer_button.png
on startup, but starts and runs (looking terribly ugly).

Similar issue is with wicd-client:
Code:
Has notifications support True
Loading...
Connecting to daemon...
Connected.
/usr/lib64/python2.6/site-packages/wicd/gui.py:151: GtkWarning: gtk_toolbar_set_icon_size: assertion `icon_size != GTK_ICON_SIZE_INVALID' failed
  self.wTree = gtk.glade.XML(gladefile)
refreshing...
ESSID : SZATAN!
ESSID : HOME
ESSID : home2
ESSID : linksys
ESSID : k-system
ESSID : jactyr
It runs, but some of the icons are missing.

I also noticed, that firefox's icon on the title bar and in taskbar was replaced with xorg's default icon.

What's going on?


Last edited by peter4 on Sat Oct 10, 2009 11:17 am; edited 1 time in total
Back to top
View user's profile Send private message
sebaro
Veteran
Veteran


Joined: 03 Jul 2006
Posts: 1133
Location: Romania

PostPosted: Sat Oct 10, 2009 9:50 am    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic-p-5737673.html
Back to top
View user's profile Send private message
blinker
n00b
n00b


Joined: 21 Aug 2009
Posts: 13

PostPosted: Sat Oct 10, 2009 9:59 am    Post subject: Reply with quote

I am having issues with icons also but am not sure if it is configuration related or a bug.

You wouldn't have recently noticed NetworkManager icon issues like this one would you?
https://forums.gentoo.org/viewtopic-t-796507.html
Back to top
View user's profile Send private message
peter4
Guru
Guru


Joined: 19 Jul 2005
Posts: 359
Location: Wroclaw, Poland

PostPosted: Sat Oct 10, 2009 9:59 am    Post subject: Reply with quote

sebaro wrote:
https://forums.gentoo.org/viewtopic-p-5737673.html

This looks totally unrelated.
Quote:
Code:
glib.GError: Couldn't recognize the image file format for file '/usr/share/porthole/pixmaps/porthole-icon.png'

it's not a data path problem.

blinker wrote:
I am having issues with icons also but am not sure if it is configuration related or a bug.

You wouldn't have recently noticed NetworkManager icon issues like this one would you?
https://forums.gentoo.org/viewtopic-t-796507.html


I use wicd instead of networkmanager, but interestingly I have a similar problem in wicd: http://img42.imageshack.us/img42/2957/plasmadesktopzm5106.jpg
Back to top
View user's profile Send private message
Martux
Veteran
Veteran


Joined: 04 Feb 2005
Posts: 1917

PostPosted: Sat Oct 10, 2009 11:11 am    Post subject: Reply with quote

Hello!
I had a similar error message with vmware and think this is related to x11-misc/shared-mime-info-0.70.
Try to re-emerge this package and follow the intructions afterwards.
_________________
"Coincidence is God's way of remaining anonymous."
Albert Einstein
"The road to success is always under construction"
Back to top
View user's profile Send private message
peter4
Guru
Guru


Joined: 19 Jul 2005
Posts: 359
Location: Wroclaw, Poland

PostPosted: Sat Oct 10, 2009 11:17 am    Post subject: Reply with quote

It worked!

Just for the record:
Code:
*
 * The database format has changed between 0.60 and 0.70.
 * You may need to update all your local databases and caches.
 * To do so, please run the following commands:
 * (for each user) $ update-mime-database ~/.local/share/mime/
 * (as root)       # update-mime-database /usr/local/share/mime/
 *

The second command said
Code:
# update-mime-database /usr/local/share/mime/
Directory '/usr/local/share/mime/packages' does not exist!
but the first one one worked.

Thanks Martux!
Back to top
View user's profile Send private message
Martux
Veteran
Veteran


Joined: 04 Feb 2005
Posts: 1917

PostPosted: Sat Oct 10, 2009 11:19 am    Post subject: Reply with quote

peter4 wrote:

[/code]
The second command said
Code:
# update-mime-database /usr/local/share/mime/
Directory '/usr/local/share/mime/packages' does not exist!
but the first one one worked.

Thanks Martux!


Same here, it worked still!
Glad I could help :)
_________________
"Coincidence is God's way of remaining anonymous."
Albert Einstein
"The road to success is always under construction"
Back to top
View user's profile Send private message
blinker
n00b
n00b


Joined: 21 Aug 2009
Posts: 13

PostPosted: Sat Oct 10, 2009 11:39 am    Post subject: Reply with quote

Wondering if the icons in wicd are displaying correctly?
Back to top
View user's profile Send private message
peter4
Guru
Guru


Joined: 19 Jul 2005
Posts: 359
Location: Wroclaw, Poland

PostPosted: Sat Oct 10, 2009 12:06 pm    Post subject: Reply with quote

Yes, now they are displaying correctly.
http://img30.imageshack.us/img30/5492/plasmadesktopdd5106.jpg
Back to top
View user's profile Send private message
HMC
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jul 2005
Posts: 79
Location: Australia

PostPosted: Sat Oct 10, 2009 2:03 pm    Post subject: Reply with quote

peter4 wrote:

Code:
# update-mime-database /usr/local/share/mime/
Directory '/usr/local/share/mime/packages' does not exist!


But '/usr/share/mime/packages' does

Maybe???
Code:

update-mime-database /usr/share/mime/
Back to top
View user's profile Send private message
blinker
n00b
n00b


Joined: 21 Aug 2009
Posts: 13

PostPosted: Sat Oct 10, 2009 5:00 pm    Post subject: Reply with quote

This folder exists for me too but updating it does not fix the issue for me.
Back to top
View user's profile Send private message
rcb1974
n00b
n00b


Joined: 12 Mar 2003
Posts: 49

PostPosted: Mon Oct 12, 2009 11:59 pm    Post subject: finally a solution! Reply with quote

This bug has been plaguing me for 4 days. But the solution in this thread worked for me!

This problem kept deluge and freeciv from working.
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10308
Location: Córdoba (Spain)

PostPosted: Tue Oct 13, 2009 11:25 pm    Post subject: Reply with quote

Another gkrellm user that was bitten by this. The info in this thread worked for me, so much thanks.

Now, I wonder when this gtk+/mime stuff is going to be solved once and for all. I can remember gtk+/mime related problems since I have memory of gnome :roll: Gnome, xfce and (in general) gtk+ users have had problems like this one always.
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
PraetorZero
Apprentice
Apprentice


Joined: 11 Dec 2004
Posts: 239
Location: /home

PostPosted: Wed Oct 14, 2009 2:16 am    Post subject: Reply with quote

peter4 wrote:
It worked!

Just for the record:
Code:
*
 * The database format has changed between 0.60 and 0.70.
 * You may need to update all your local databases and caches.
 * To do so, please run the following commands:
 * (for each user) $ update-mime-database ~/.local/share/mime/
 * (as root)       # update-mime-database /usr/local/share/mime/
 *

The second command said
Code:
# update-mime-database /usr/local/share/mime/
Directory '/usr/local/share/mime/packages' does not exist!
but the first one one worked.

Thanks Martux!


SONOFA@#@#$@ I don't know how I missed that. I ended up wiping ~ of any config files because it was irritating me so much. :(
_________________
What's the worst that can happen?
Back to top
View user's profile Send private message
SDNick484
Apprentice
Apprentice


Joined: 05 Dec 2005
Posts: 222

PostPosted: Wed Oct 14, 2009 8:02 am    Post subject: Reply with quote

Ran into this issue as well on ~amd64 today; thanks for posting the fix.
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3345
Location: Gainesville, Florida

PostPosted: Wed Oct 14, 2009 1:30 pm    Post subject: Reply with quote

Nothing seems to work for me.- The first two don't exist, and the other suggestion gives this: amd64 wrc #
Code:
update-mime-database ~/.local/share/mime/
Directory '/root/.local/share/mime/packages' does not exist!

amd64 wrc # update-mime-database /usr/local/share/mime/
Directory '/usr/local/share/mime/packages' does not exist!
 
amd64 wrc # update-mime-database /usr/share/mime/
Unknown media type in type 'all/all'

Unknown media type in type 'all/allfiles'

Unknown media type in type 'uri/mms'

Unknown media type in type 'uri/mmst'

Unknown media type in type 'uri/mmsu'

Unknown media type in type 'uri/pnm'

Unknown media type in type 'uri/rtspt'

Unknown media type in type 'uri/rtspu'

Unknown media type in type 'fonts/package'

Unknown media type in type 'interface/x-winamp-skin'


This icon problem happened to me updating my kde-live and qt to 4.6.9999. However, I had just also done an emerge -uD @world. From the kde-testing thread, where i was referred to this thread for a fix.
Quote:
Well, all 12 qt-4.6.9999 packages compiled OK, but all my app icons in the gnome toolbar turned to generic white pages with a little red "x" in the middle. :o Why would a qt change affect gnome icons? I always boot with gnome when I'm updating kde/qt stuff, and this never happened before.

_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
Gentoo ~amd64 plasma, glibc-2.30-r6, gcc-9.3.0 kernel-5.5.11-gentoo USE=experimental
Back to top
View user's profile Send private message
Quick23t
n00b
n00b


Joined: 07 Aug 2009
Posts: 66
Location: Phoenix, AZ

PostPosted: Wed Oct 14, 2009 1:33 pm    Post subject: Reply with quote

First command should be run as user and not root.
Code:
update-mime-database ~/.local/share/mime/
Directory '/[b]root[/b]/.local/share/mime/packages' does not exist!
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3345
Location: Gainesville, Florida

PostPosted: Wed Oct 14, 2009 1:48 pm    Post subject: Reply with quote

I tried that first, and apparently it didn't do anything. It instantly did this:
Code:
wrc@amd64 ~ $ update-mime-database ~/.local/share/mime/
wrc@amd64 ~ $
Then I used the typed out path (as root), and got this :
Code:
amd64 wrc # update-mime-database /home/wrc/.local/share/mime/

Note that '/home/wrc/.local/share' is not in the search path
set by the XDG_DATA_HOME and XDG_DATA_DIRS
environment variables, so applications may not
be able to find it until you set them. The
directories currently searched are:


- /root/.local/share
- /usr/local/share
- /usr/share
- /usr/share/gdm
Should I "update-mime-database" on all of these?
_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
Gentoo ~amd64 plasma, glibc-2.30-r6, gcc-9.3.0 kernel-5.5.11-gentoo USE=experimental
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3345
Location: Gainesville, Florida

PostPosted: Wed Oct 14, 2009 2:12 pm    Post subject: Reply with quote

Quick23,
Thanks much- I tried that first, but it seemingly didn't do anything. It instantly went back to a prompt, and I expected to see some output.
However, after a logout/login to gnome, all the icons were back, so it obviously worked. :)
_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
Gentoo ~amd64 plasma, glibc-2.30-r6, gcc-9.3.0 kernel-5.5.11-gentoo USE=experimental
Back to top
View user's profile Send private message
Kollin
Veteran
Veteran


Joined: 25 Feb 2006
Posts: 1137
Location: Sofia/Bulgaria

PostPosted: Wed Oct 14, 2009 9:29 pm    Post subject: Reply with quote

Bahahahaha i just got rid of all xfce on my laptop... irony... solution was under my nose! I love gentoo :mrgreen:
_________________
"Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..."
Back to top
View user's profile Send private message
jms.gentoo
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2009
Posts: 80

PostPosted: Thu May 13, 2010 4:03 pm    Post subject: Reply with quote

as root try
update-mime-database /usr/share/mime/

instead of /usr/local/share/mime/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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