Pyjama hangs up when querying Jamendo

Bug #411905 reported by Daniel Nögel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyjama
New
Undecided
Unassigned

Bug Description

When the jamendo servers are not available or slow, pyjama hangs when trying to talk to them: The "querying jamendo" dialog occurs - nothing else happens, pyjama greys out.

The reasons seems to be a design smell:
1) If an error occurs while querying Jamendo, an error-message is going to be shown.
2) The function for the error-dialog embeds the dialog-call into a gtk.gdk.threads_enter() and gtk.gdk.threads_leave() in order to make it thread save.
3) Unfortunately these lines make pyjama hang up when the calling function is NOT threaded.

==> As the jamendo-query function can be called by threaded and by non-threaded functions, an error will always result in Pyjama hanging up - either caused by an non-threaded function causing this error or by an threaded function causing this error.

Possible Solution: Have an isolated Jamendo-query-thread with a queue (like the database-interface). So any error would be raised by the same thread.

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.