pyjama hangs frequently until a keyboard interrupt

Bug #695808 reported by v_2e
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyjama
Confirmed
High
Unassigned

Bug Description

Hello!
I use a 0.3.0.1 version of Pyjama and I frequently experience some 'hangs' of it.
For example, when I lesten to some album and the playlist ends, I click on another album, but Pyjama hangs and begins to consume as much of CPU time as possible (usually about 80% or more).
To avoid killing Pyjama every time (and this happens *really* often) I tried to start Pyjama from the command line in my terminal emulator. When it hangs, I press "Ctrl+C" and see something like this:

    Traceback (most recent call last):
  File "/usr/share/apps/pyjama/modules/clWidgets.py", line 902, in hide_vbControl
    x,y = self.vbControl.get_pointer()
KeyboardInterrupt

Or like this:

Traceback (most recent call last):
  File "/usr/share/apps/pyjama/modules/clWidgets.py", line 904, in hide_vbControl
    self.vbControl.hide()
KeyboardInterrupt

  It starts to work properly after this action usually.
  I must say this is the most annoying thing about Pyjama. I have to always start it from the console to have an ability to control it. Everything else seems to be more or less all right. I have made an ebuild request in Gentoo Bugzilla (http://bugs.gentoo.org/show_bug.cgi?id=345129), but GGL developers would probably wait for a stable release of Pyjama to add it to official Gentoo Portage tree. And this would give Pyjama a considerable number of new users, I believe.

  Regards,
  Vladimir

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

Hi Vladimir,

thanks for reporting this bug. Sadly it's something like a "known issue": As far as I can tell this is mostly a concurrency-issue. As Pyjama needs to a) draw a lot of widgets b) query jamendo via the internet and c) query the local database, I had do add some concurrency in order to speed up things. I guess I messed up the code here a bit - concurrency and GTK is a topic on its own. When I started writing Pyjama I wasn't aware that concurrency might become such a central topic for the program one day.

To make this short: I'd like to fix it, but I think, I'd have to rewrite large parts of Pyjama to do so. Sebastian is working on a branch "pyjama 2" which - in my oppinon - fixes a lot of serious issues, which my current Pyjama builds have. Additionaly "pyjama 2.0" matches the GNOME human interface guideline much better than I do - even if it isn't finished yet.

Perhaps someone finds a way to make Pyjama more stable without rewriting large parts of the code base. But I'm afraid that this won't be possible and that fixing Pyjama 1 is not worth the effort. I will have a closer look at your tracebacks later - perhaps its just a small issue - but I don't think so.

Sincerely,

Daniel

Changed in pyjama:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
v_2e (v-2e) wrote :

Hello!
So what do you actually suggest me (and other users too) to do? Should I drop using Pyjama and switch to another Jamendo client (Pyjama 2) or should I just wait until this bug is fixed.
I mean - is the Pyjama development terminated or not? Is Pyjama 2 a successor of Pyjama or is it a different application?

Thanks.

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

Hallo,
right now I just can ask you and others to send in patches. As far as it concerns me, I keep using Pyjama and fix the bugs that are obvious to me. The hang up you described (last song from playlist played, trying to append new album) I could not reproduce here. Furthermore for me there are no daily hang ups - they are more or less unfrequent, so I can live with them.

The development is not actually terminated - but it focuses on bugs I can solve in reasonable time.

Right now Pyjama2 is developed by Sebastian on his own. It will become one year old these days - I don't know how far Sebastian is still actively developing it. In my eyes Pyjama2 is still far from being finished (no offend Sebastian! :) ).

Sorry for that inconvenience. Please give me a detailed step by step description of how to reproduce the bug.

Thanks!

Daniel

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.