Deluge blocking audio device on Xubuntu??

General support for problems installing or using Deluge
Post Reply
r0ckarong
Member
Member
Posts: 37
Joined: Wed Jan 02, 2008 8:15 pm

Deluge blocking audio device on Xubuntu??

Post by r0ckarong »

I had a very strange thing happen to me just now. I was watching streaming flash video on the net and paused the file for a moment. I accidentally reloaded the page and waited for the file to buffer. Then all of a sudden my sound wouldn't work anymore. I started XMMS and it told me the sound device was busy and Firefox would not give out audio either. Video ran just fine. I did a "lsof | grep pcm" to see what was accessing the soundcard. And there I found:

deluge 8998 <user> 47u CHR 116,8 14130 /dev/snd/pcmC0D0p

Deluge somehow took over the firefox sound process. FireFox produces a similar signature when it accesses the sound device when I play flash video.

firefox-b 12994 <user> 63u CHR 116,8 14130 /dev/snd/pcmC0D0p

Unfortunately I can't yet reproduce the bug at will but I know that it has happened to me at least 3 times, only today I was curious enough to look what was blocking the soundcard. I usually restarted the Xserver so far. I don't really know how to produce more Shell output or debugging info to see what really happens. But this problem is bugging me for a while now and I ultimately had to write it in. I definitely had one of these occasions with 0.5.8.4 and now with 0.5.8.5. I like Deluge a lot because it's small and simple yet powerful. I just wondered how it could happen that this type of application blocks the soundcard.
r0ckarong
Member
Member
Posts: 37
Joined: Wed Jan 02, 2008 8:15 pm

Re: Deluge blocking audio device on Ubuntu??

Post by r0ckarong »

This is not a bump post. I got the same problem but with different version of my software.
I now run Deluge 0.5.9.1 and Ubuntu hardy 8.04 (GNOME 2.22.2), Kernel 2.6.24-18-generic

I got the same problem with deluge again, all of a sudden my sound stopped working so I traced all opened files that used the sound and I get these two results:

deluge 8106 <user> 82u CHR 116,16 11515 /dev/snd/pcmC0D0p
python 8127 <user> 82u CHR 116,16 11515 /dev/snd/pcmC0D0p

And here are the corresponding processes:
8127 ? Sl 0:01 python /usr/share/deluge/plugins/WebUi/run_webserver env=0.5
8106 ? Sl 1:05 /usr/bin/python /usr/bin/deluge /tmp/<something>.torrent

Why does Deluge use the sound device at all? I don't have ANY audio settings there. This happens every so often and no one seems to adress this issue. What's especially strange about this is that the webserver plugin shouldn't ever access anything considering multimedia.
joaquim

Re: Deluge blocking audio device on Xubuntu??

Post by joaquim »

I have Xubuntu hardy heron and deluge 0.5.9.2. deluge isn't using any sound related dev file.
loki
Moderator
Moderator
Posts: 787
Joined: Tue Dec 04, 2007 3:27 pm
Location: MI, USA

Re: Deluge blocking audio device on Xubuntu??

Post by loki »

Maybe the soundcard was misconfigured somehow relating it to networking...
This is a really old thread, maybe it's fixed by now anyway.
koki

Re: Deluge blocking audio device on Xubuntu??

Post by koki »

I am having the same problem. Deluge is for some reason using my /dev/snd/* when it shouldn't. There is no sound related option enabled in my deluge configuration, and I have no reason to believe that my sound card is being treated as a networking interface or like. My system is debian/testing w/ gnome. My soundcard works perfectly otherwise, and no other program has been known to cause any problems of this kind.
Deluge causes some sort of lock that no other application can override, not even alsaplayer (which i suppose has a decent interface to alsa sound). Quitting deluge solves the problem.
I'll experiment more and let you know.
Wintervenom

Re: Deluge blocking audio device on Xubuntu??

Post by Wintervenom »

Same issue. Arch Linux. Deluge 1.1.9. Quite an annoyance.
elsteve
New User
New User
Posts: 8
Joined: Sun Jan 24, 2010 9:26 pm

Re: Deluge blocking audio device on Xubuntu??

Post by elsteve »

This may be a very old thread, but I am still seeing this behavior on 1.30 w/ Ubuntu 9.1 - Anyone have any thoughts on this, it's really annoying!

If I have Banshee running playing music and start Deluge, everything is ok until the current song finishes playing - the Deluge grabs the audio and that's it. No more system audio until deluged is shut down...
Post Reply