Sound skiping

Bug #398807 reported by Witold Baryluk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyjama
New
Undecided
Unassigned

Bug Description

Something is wrong with playback.

I have ./pyjama-experimental-0.3.0.21_all.run started in Gnome 2.22 and 2.26, on kernel 2.6.31-rc2 and 2.6.29-rc4 on two different laptops (Thinkpad T43 and Thinkpad X41) , and in all cases when I'm switching beetween windows, pyjama for few miliseconds stops playing music.

I'm using ALSA backend, but PulseAudio is also runing.

Setting a nice level to "-5" for a thread playing sound (this cosuming most of CPU in top), resolves partially the problem. But only when new tracks starts playing, this procedure needs to be repeated. Additionally using nice level isn't so simple (normal user can decres nice level), and RR / FIFO scheduler have some problems when used by non-root. I was using schedtool from root acount to change priorities.

Any ideas what to do with this?

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

Hi Witold,

thanks for reporting this problem! Right now I have no idea, what the problem could be - for me its working on an at least three different machines without such problems.
I'll upload the latest development version later - but I think that it won't change much for you.

You could try to run pyjama with "pyjama noplugins" (or nuplugin?) in order to make sure that this problem is not related with any of the plugins.

You said this problem can be solved for a short time by reniceing the playback process. This might indicate, that this isn't even a pyjama issue as the playback process belongs to gstreamer; I will have a look at it asap.

Daniel

P.S.
Running "pyjama oldbin" will use another (simple) gstreamer-pipe and might perhaps solve your problem. If "pyjama oldbin" crashed pyjama, you could do me a favor and paste the crash-message here.

Thanks

Revision history for this message
Witold Baryluk (baryluk) wrote :

Hi Daniel,

Thanks for your quick answer.

I was testing both with noplugins (no plugins loaded) and with oldbin, both have the same issue. oldbin is even somehow worse than normal, but this is subjective observation.

Previously i was testing pyjama under quite loaded system (100% cpu, load 4~). Now I have load 0.82 and cpu 24% user, 8% sys. pyjama according to top is only running program with ~10% cpu. So it I can confirm it is quite independent of the cpu load.

It is also independend of GUI of pyjama, because I am switching windows beetwen other than pyjama applications. But still this can have something to do with X server and python handling of GTK. I'm thinking so because i was trying to generate considerably high load (cpu and IO) from text console, and pyjama was playing music smoothly in this conditions.

I was also testing pyjama started on another wirtual desktop. The same problem. Sound stops exactly when windows i redrawed by X server. This occurs even if windows involved are simple gnome-terminal or urxvt windows (in urxvt sound skips rearly). Sound doesn't skip only if windows beetween which I switch doesn't overlap (so nothing is redrawed actually after switch).

metacity 1:2.26.0-3
python 2.5.4-1
Debian unstable
ati radeon mobility

but it is behaving similarly on Debian stable (metacity 2.22, intel card),

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.