ktorrent locks audio device

Bug #372527 reported by Martin
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ktorrent (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: ktorrent

Over the past days it happened to me several times that audio all of a sudden would stop working. It seems ktorrent is causing this.

This is what mplayer said when I tried to play a video in that situation:
----------------------------------------------------------------------------------------
AO: [pulse] Failed to connect to server: Connection refused
[AO_ALSA] alsa-lib: pcm_hw.c:1321:(snd_pcm_hw_open) open /dev/snd/pcmC0D0p failed: Device or resource busy
[AO_ALSA] alsa-lib: pcm_dmix.c:1008:(snd_pcm_dmix_open) unable to open slave
[AO_ALSA] Playback open error: Device or resource busy
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
[AO_ALSA] alsa-lib: pcm_hw.c:1321:(snd_pcm_hw_open) open /dev/snd/pcmC0D0p failed: Device or resource busy
[AO_ALSA] alsa-lib: pcm_dmix.c:1008:(snd_pcm_dmix_open) unable to open slave
[AO_ALSA] Playback open error: Device or resource busy
[AO ESD] esd_open_sound failed: Connection timed out
E: context.c: waitpid(): No child processes
AO: [pulse] Failed to connect to server: Internal error
[JACK] cannot open server
ao_nas: init(): Can't open nas audio server -> nosound
[AO SDL] Samplerate: 48000Hz Channels: Stereo Format s16le
[AO_ALSA] alsa-lib: pcm_hw.c:1321:(snd_pcm_hw_open) open /dev/snd/pcmC0D0p failed: Device or resource busy
[AO_ALSA] alsa-lib: pcm_dmix.c:1008:(snd_pcm_dmix_open) unable to open slave
[AO SDL] Unable to open audio: No available audio device
[AO_ALSA] alsa-lib: pcm_hw.c:1321:(snd_pcm_hw_open) open /dev/snd/pcmC0D0p failed: Device or resource busy
[AO_ALSA] alsa-lib: pcm_dmix.c:1008:(snd_pcm_dmix_open) unable to open slave
[AO_ALSA] alsa-lib: pcm_hw.c:1321:(snd_pcm_hw_open) open /dev/snd/pcmC0D0p failed: Device or resource busy
[AO_ALSA] alsa-lib: pcm_dmix.c:1008:(snd_pcm_dmix_open) unable to open slave
AL lib: alsa.c:344: Could not open playback device 'default': Device or resource busy
AL lib: oss.c:179: Could not open /dev/dsp: Device or resource busy
[OpenAL] could not open device
Opening /dev/dvb/adapter0/audio0
DVB AUDIO DEVICE: No such file or directory
AO: [null] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
----------------------------------------------------------------------------------------

This is the output of lsof that I got (after killing knotify4 and kmixer, which didn't help):

----------------------------------------------------------------------------------------
$ lsof|grep snd
ktorrent 25461 martin 85r CHR 116,2 5378 /dev/snd/timer
ktorrent 25461 martin 86u CHR 116,7 5655 /dev/snd/pcmC0D0p
ktorrent 25461 martin 87u CHR 116,9 5688 /dev/snd/controlC0
----------------------------------------------------------------------------------------

After closing ktorrent, all was fine again.

I don't know how to reproduce it unfortunately.

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
NonfreeKernelModules: fglrx
Package: ktorrent 3.2.1+dfsg.1-0ubuntu3
ProcEnviron:
 LANGUAGE=
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: ktorrent
Uname: Linux 2.6.28-11-generic x86_64

Revision history for this message
Martin (lodp) wrote :
Revision history for this message
Łukasz Stefaniak (lustefaniak) wrote :

I had same problem in Ubuntu 8.10.
At Kubuntu 9.04 it is happening much often to me.

Revision history for this message
Martin (lodp) wrote :

Killing ktorrent helps in your case, as well?

Revision history for this message
Łukasz Stefaniak (lustefaniak) wrote : Odp: [Bug 372527] Re: ktorrent locks audio device

Yes, everything gets back to normal. Output of lsof shows sound card as
unlocked.

W dniu 17.maj.2009 7:45 AM użytkownik "Martin" <email address hidden> napisał:

Killing ktorrent helps in your case, as well?

-- ktorrent locks audio device https://bugs.launchpad.net/bugs/372527 You
received this bug notifi...

Martin (lodp)
Changed in ktorrent (Ubuntu):
status: New → Confirmed
Revision history for this message
true (true-launchpad) wrote :

Coming from another distro, but...

Confirming same issue on Gentoo x86, snd_intel8x0 driver. Sound device locks up, killing ktorrent brings it back to life. This problem appears to be an upstream issue.

Revision history for this message
Francisco Marzoa (francisco-marzoa) wrote :

Exactly the same on 9.10. I was having that problem with mplayer, and when I find this I just close ktorrent and playback started to work.

Revision history for this message
Maarten Bezemer (veger) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. We are sorry that we do not always have the capacity to look at all reported bugs in a timely manner. There have been many changes in Ubuntu since that time you reported the bug and your problem may have been fixed with some of the updates. It would help us a lot if you could test it on a currently supported Ubuntu version. When you test it and it is still an issue, kindly upload the updated logs by running apport-collect 372527and any other logs that are relevant for this particular issue.

Changed in ktorrent (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for ktorrent (Ubuntu) because there has been no activity for 60 days.]

Changed in ktorrent (Ubuntu):
status: Incomplete → Expired
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.