TypeError: pixbuf should be a GdkPixbuf

Bug #294333 reported by Wulong
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
listen (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: listen

After a reboot listen went useless. I turned off the computer while music was still playin'. Guess I have to remove ~/.listen again.

$ lsb_release -rd
Description: Ubuntu 8.10
Release: 8.10

$ dpkg -l listen|grep listen
ii listen 0.5-5ubuntu2 music player and manager for GNOME

$ uname -r
2.6.27-7-generic

wulong@stealth:~$ listen
/usr/lib/listen/stock.py:135: GtkWarning: gdk_pixbuf_scale_simple: assertion `dest_width > 0' failed
  try:icons.add(SHUFFLE, gtk.IconSet(gtk.icon_theme_get_default().load_icon("stock_shuffle",-1,gtk.ICON_LOOKUP_USE_BUILTIN)))
/usr/lib/listen/stock.py:135: GtkWarning: gdk_pixbuf_get_width: assertion `GDK_IS_PIXBUF (pixbuf)' failed
  try:icons.add(SHUFFLE, gtk.IconSet(gtk.icon_theme_get_default().load_icon("stock_shuffle",-1,gtk.ICON_LOOKUP_USE_BUILTIN)))
/usr/lib/listen/stock.py:135: GtkWarning: gdk_pixbuf_get_height: assertion `GDK_IS_PIXBUF (pixbuf)' failed
  try:icons.add(SHUFFLE, gtk.IconSet(gtk.icon_theme_get_default().load_icon("stock_shuffle",-1,gtk.ICON_LOOKUP_USE_BUILTIN)))
/usr/lib/listen/stock.py:135: Warning: g_object_ref: assertion `G_IS_OBJECT (object)' failed
  try:icons.add(SHUFFLE, gtk.IconSet(gtk.icon_theme_get_default().load_icon("stock_shuffle",-1,gtk.ICON_LOOKUP_USE_BUILTIN)))
Traceback (most recent call last):
  File "/usr/lib/listen/listen.py", line 218, in <module>
    ListenApp()
  File "/usr/lib/listen/listen.py", line 119, in __init__
    stock.stock_init()
  File "/usr/lib/listen/stock.py", line 135, in stock_init
    try:icons.add(SHUFFLE, gtk.IconSet(gtk.icon_theme_get_default().load_icon("stock_shuffle",-1,gtk.ICON_LOOKUP_USE_BUILTIN)))
TypeError: pixbuf should be a GdkPixbuf
wulong@stealth:~$

Revision history for this message
Wulong (thewulong) wrote :

Figured it out. It has something to do with a icon theme. I changed icon theme to black white gloss 2 in xfce and now it's working. Still this shouldn't happen, or?

Revision history for this message
bford16 (bford16) wrote :

I saw this behavior too. I switched icon themes and it went away. I use Rhythmbox now...

Revision history for this message
Luky Winarto (luckyborneo) wrote :

I was having the same problem like you. What I do was edit the stock.py
$ sudo nano /usr/lib/listen/stock.py

Then removing these two lines:
Try: icons.add (SHUFFLE, gtk.IconSet (gtk.icon_theme_get_default (). Load_icon ( "stock_shuffle", -1, gtk.ICON_LOOKUP_USE_BUILTIN)))
except gobject.GError:pass Except gobject.GError: pass

Then run this command:
$ rm -rf ~/.listen

Then, try to run listen again.

Revision history for this message
Leonardo Paternotte (chaser-nl) wrote :

Same problem here, the solution mentioned above by Luky Winarto works.

I just placed # in front of both lines.

Revision history for this message
Kevin (kevinshlee) wrote :

I had the same problem and Luky Winarto's workaround works for me too.
Just like what chaser.nl did, I commented out those two lines with '#'.

I'm using Ubuntu Linux 9.04 Jaunty Jackalope Desktop 64 bit.

Regards,
Kevin

Revision history for this message
Bhaskar Kandiyal (bkandiyal) wrote :

Yes, I can confirm this and the workaround mentioned worked perfectly.

Changed in listen (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.