pyjama 0.3.0.78 crashes suddenly

Bug #635128 reported by Dmitry A. Zvorikin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyjama
Fix Released
Undecided
Sebastian Kalinowski

Bug Description

I just run pyjama 0.3.0.78 and listen to music. Sometimes it crashes when I move mouse over images, and almost every time when the track ends and it tries to move to the next one. I have the console log:

user@hostname:~$ pyjama
No language file for you found - using english language file
No language file for you found - using english language file
No language file for you found - using english language file
No language file for you found - using english language file
No language file for you found - using english language file
No language file for you found - using english language file
PYJAMA FOUND IN /usr/share/apps/pyjama
Loading modules
------------------------------ <Plugins> ------------------------------
Found Plugins in folder: /usr/share/apps/pyjama/plugins/
!!! torrent-peer found in 'hardcoded_blacklist'
Plugin 'Multimedia Hotkeys' V0.1.1 (mmhotkeys) loaded
Plugin 'Database Search' V0.3.1 (search) loaded
Plugin 'Pyjama Version Control' V0.1 (PVC) loaded
Plugin 'Plugin Example' V0.1 (example) loaded
Plugin 'Now playing notification' V0.1 (nowplaying) loaded
Plugin 'Radios' V0.1 (radios) loaded
Plugin 'Jamlist' V0.3 (jamlists) loaded
Plugin 'Random Playback' V0.3 (randomplayback) loaded
Plugin 'Jamendo Query Indicator' V0.1 (jam_query) loaded
Plugin 'Listen Statistics' V0.4 (listenstats) loaded
Plugin 'Rating' V0.2 (rating) loaded
Plugin 'Lyrics' V0.1 (lyrics) loaded
Plugin 'Starred Albums' V0.4 (starred_albums) loaded
Plugin 'Dowload GUI' V0.2 (downloadGUI) loaded
Plugin 'Configtool' V0.3.2 (configtool) loaded
------------------------------ </Plugins> ------------------------------
/usr/share/apps/pyjama/modules/clToolbar.py:48: DeprecationWarning:
  self.set_icon_size(gtk.ICON_SIZE_LARGE_TOOLBAR)# (gtk.ICON_SIZE_DIALOG) # large_toolbar
Checking for PVC news
done
No Data cached, yet. Caching Query now
Requesting database on jamendo.com
Requesting database - done, wrote cache
No Data cached, yet. Caching Query now
No Data cached, yet. Caching Query now
Requesting database on jamendo.com
Requesting database - done, wrote cache
No Data cached, yet. Caching Query now
Traceback (most recent call last):
  File "/usr/share/apps/pyjama/modules/clWindow.py", line 626, in cb_query_tooltip
    pix = gtk.gdk.pixbuf_new_from_file_at_size(img_uri, 50, 50)
gobject.GError: Unrecognized image file format
Traceback (most recent call last):
  File "/usr/share/apps/pyjama/modules/clWindow.py", line 626, in cb_query_tooltip
    pix = gtk.gdk.pixbuf_new_from_file_at_size(img_uri, 50, 50)
gobject.GError: Unrecognized image file format
Traceback (most recent call last):
  File "/usr/share/apps/pyjama/modules/clWindow.py", line 626, in cb_query_tooltip
    pix = gtk.gdk.pixbuf_new_from_file_at_size(img_uri, 50, 50)
gobject.GError: Unrecognized image file format
Traceback (most recent call last):
  File "/usr/share/apps/pyjama/modules/clWindow.py", line 626, in cb_query_tooltip
    pix = gtk.gdk.pixbuf_new_from_file_at_size(img_uri, 50, 50)
gobject.GError: Unrecognized image file format
Traceback (most recent call last):
  File "/usr/share/apps/pyjama/modules/clWindow.py", line 626, in cb_query_tooltip
    pix = gtk.gdk.pixbuf_new_from_file_at_size(img_uri, 50, 50)
gobject.GError: Unrecognized image file format
Traceback (most recent call last):
...
  File "/usr/share/apps/pyjama/modules/clWindow.py", line 626, in cb_query_tooltip
    pix = gtk.gdk.pixbuf_new_from_file_at_size(img_uri, 50, 50)
gobject.GError: Unrecognized image file format
Segmentation fault

I use Ubuntu 8.04.4, 2.6.24-28-generic.
I have installed all of the listed: python-gst0.10, gstreamer0.10-plugins-bad, gstreamer0.10-plugins-base, gstreamer0.10-plugins-good, gstreamer0.10-plugins-ugly, python-numpy.
It did not help.

Related branches

Changed in pyjama:
assignee: nobody → Sebastian Kalinowski (prmtl)
status: New → In Progress
Revision history for this message
Sebastian Kalinowski (prmtl) wrote :

Hi Dimitry!

Are you really sure that you are using version 0.3.078? As I can see this bug shouldn't occur in pyjama 0.3.0.78 (but I can be wrong) and I can reproduce it only in version 0.3.0.1
Try to download again and run 'experimental' version 0.3.0.78 (http://launchpad.net/pyjama/trunk/0.3/+download/EXPERIMENTAL) or get the latest code from pyjama bzr repository. If the bug will affect you again, please notice us.

Sincerely,
Sebastian

Revision history for this message
Dmitry A. Zvorikin (dmitry-zvorikin) wrote :

Thank you for the quick answer, Sebastian!
I have downloaded a DEB announced as 0301, but the application itself says it's 03078.
I download pyjama-experimental-0.3.0.78_all and run it, but it does not get installed, saying:
sh pyjama-experimental-0.3.0.78_all.run
Verifying archive integrity... All good.
Uncompressing Python Jamendo Audioplayer..............................................................................................................................................................................................................................................................................................................................................................................................
No language file for you found - using english language file
Traceback (most recent call last):
  File "./pyjama.py", line 74, in <module>
    from modules import clWindow
  File "/tmp/selfgz28780/modules/clWindow.py", line 52, in <module>
    import clMain
  File "/tmp/selfgz28780/modules/clMain.py", line 70, in <module>
    import clThreadedDownload #clPlayer
  File "/tmp/selfgz28780/modules/clThreadedDownload.py", line 29, in <module>
    from clWidgets import ProcessDialog
  File "/tmp/selfgz28780/modules/clWidgets.py", line 843
    except Exception as inst:
                      ^
SyntaxError: invalid syntax

pyjama-experimental-0.3.0.99_all gives some more errors and hangs during installation:
sh pyjama-experimental-0.3.0.99_all.run
Verifying archive integrity... All good.
Uncompressing Python Jamendo Audioplayer.............................................................................................................................................................................................................................................................................................
No language file for you found - using english language file
No language file for you found - using english language file
No language file for you found - using english language file
No language file for you found - using english language file
No language file for you found - using english language file
PYJAMA FOUND IN /tmp/selfgz28839
1284196065.45
Traceback (most recent call last):
  File "./pyjama.py", line 432, in <module>
    run(options)
  File "./pyjama.py", line 378, in run
    win = clWindow.winGTK(options)
  File "/tmp/selfgz28839/modules/clWindow.py", line 73, in __init__
    self.main = clMain.main(self, options)
  File "/tmp/selfgz28839/modules/clMain.py", line 165, in __init__
    self.icon = notification.TrayIcon(self)
  File "/tmp/selfgz28839/modules/notification.py", line 110, in __init__
    self.icon.connect('scroll-event', self.cb_scroll)
TypeError: <gtk.StatusIcon object at 0x892589c (GtkStatusIcon at 0x8afd130)>: unknown signal name: scroll-event

Am I doing anything wrong?

Revision history for this message
Daniel Nögel (daniel-xn--ngel-5qa) wrote :

Hi Dmitry,

possibly you are using an old python version - you should have at least Python 2.6 installed, I guess. Just type "python --version" in your terminal to find out, which version you are currently using.

Sincerely,

Daniel

Revision history for this message
Dmitry A. Zvorikin (dmitry-zvorikin) wrote :

:~$ python --version
Python 2.5.2

How can I install a required version? I use Ubuntu 8.04.4 LTS, supported by Canonical until 2011.
Please note the python version in the requirements, and I believe that it could be fine if the DEB would require a 2.6+ version.

Revision history for this message
Daniel Nögel (daniel-xn--ngel-5qa) wrote :

Hi Dmitry,

you are right: Python 2.5 is in the requirements. Sebastian made a few 2.5-fixes in the past, so perhaps he can tell us more about that. As I am using only Python 2.6 I cannot test Pyjama for backward compability, sorry for that.

Updating Python 2.5 in Ubuntu is some hard work, as you'd also need to update all dependent interface (such as GTK, json...), too. In your place I wouldn't do so.

I'll have a look at this the next week - perhaps setting up an 8.04-Ubuntu-VM will reveal, that I can fix this within a few lines of code.

Sincerely,

Daniel

Revision history for this message
Sebastian Kalinowski (prmtl) wrote :

Hi Dmitry, hi Daniel

pyjama-experimental-0.3.0.99_all will work on python 2.5. The problem is that pygtk 2.12.1 (which is current version for Ubuntu 8.04.4) doesn't support scroll event for gtk.StatusIcon (tray icon). It's easy to fix that bug/error, but changing volume by using mouse wheel on a pyjama tray icon will not be able for older pygtk versions.

Revision history for this message
Sebastian Kalinowski (prmtl) wrote :

OK, I've committed little fix to the trunk and tested it on Ubuntu 8.04.4 (on VirtualBox). Now Dmitry have to check if this will work on his system.

Changed in pyjama:
status: In Progress → Fix Committed
Revision history for this message
Dmitry A. Zvorikin (dmitry-zvorikin) wrote :

That's fine! How can I install a 03099 version? I wrote that it just hangs after I run sh pyjama-experimental-0.3.0.99_all.run file!

Revision history for this message
Dmitry A. Zvorikin (dmitry-zvorikin) wrote :

No fix committed! I can not install pyjama 03099!
Even after I run 03078 and let it update itself, it does not run anymore!!!
What's the hell happening?

This is the shell output:

:~$ pyjama
No language file for you found - using english language file
Traceback (most recent call last):
  File "/usr/bin/pyjama", line 74, in <module>
    from modules import clWindow
  File "/usr/share/apps/pyjama/modules/clWindow.py", line 52, in <module>
    import clMain
  File "/usr/share/apps/pyjama/modules/clMain.py", line 70, in <module>
    import clThreadedDownload #clPlayer
  File "/usr/share/apps/pyjama/modules/clThreadedDownload.py", line 29, in <module>
    from clWidgets import ProcessDialog
  File "/usr/share/apps/pyjama/modules/clWidgets.py", line 843
    except Exception as inst:
                      ^
SyntaxError: invalid syntax

Changed in pyjama:
status: Fix Committed → In Progress
Revision history for this message
Sebastian Kalinowski (prmtl) wrote :

Fix is committed but you must wait until Daniel will create a new package with pyjama that will contain this fix. As you see 03099 doesn't hava this fix.

Revision history for this message
Sebastian Kalinowski (prmtl) wrote :

If you don't want to wait for new package you can install Bazaar and get code directly from pyjama repository with this command:

bzr co lp:pyjama

Revision history for this message
Daniel Nögel (daniel-xn--ngel-5qa) wrote :

> What's the hell happening?

As Sebastian already stated: There is a difference between "committed" and "released". I updated the experimental version today, 0.3.0101 should do the trick for you. => http://www.xn--ngel-5qa.de/pyjama/release/experimental/

I removed the experimental-version notice from the download page. So in future current versions will only be available via Bazaar.

Revision history for this message
Dmitry A. Zvorikin (dmitry-zvorikin) wrote :

okay, it works. thank you!

Changed in pyjama:
status: In Progress → Fix Committed
Changed in pyjama:
status: Fix Committed → Fix Released
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.