Hi,

Sorry about not doing a proper bug report since I can't find any link
on the website where to report an issue. This is to follow-up on the
same problem appearing a couple of years ago in here :

http://forum.deluge-torrent.org/viewtopic.php?f=7&t=3065&start=0

It seems that deluge is blocking the /dev/snd/pcm* after a certain
time. Looking over the code it seems to be the part trying to notify
about a torrent finished via pygames.

I have tried to reproduce the snippet code and it seems indeed that
pygame is blocking the device :

==
chmo...@lutece:~$ cat /tmp/r.py
#!/usr/bin/python
import pygame
import time
pygame.init()
alert_sound = pygame.mixer.music
alert_sound.load("/usr/share/sounds/alsa/Noise.wav")
time.sleep(60)
chmo...@lutece:~$ fuser -v /dev/snd/pcmC0D*
chmo...@lutece:~$ python /tmp/r.py &
[1] 17345
chmo...@lutece:~$ fuser -v /dev/snd/pcmC0D*
                     USER        PID ACCESS COMMAND
/dev/snd/pcmC0D0p:   chmouel   17345 F...m python
chmo...@lutece:~$ fg
[1]  + running    python /tmp/r.py
^CTraceback (most recent call last):
  File "/tmp/r.py", line 10, in <module>
    time.sleep(60)
KeyboardInterrupt
==

This is kind of annoying and I could not find a way to work around it
in pygame I am wondering if there was a workaround for the solution
aside of disabling sound notification.

Chmouel.

--

You received this message because you are subscribed to the Google Groups 
"Deluge Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-dev?hl=en.


Reply via email to