mnemosyne causes cpu usage in pulseaudio
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
The Mnemosyne Project |
Fix Released
|
Undecided
|
Unassigned | ||
mnemosyne (Ubuntu) |
Fix Released
|
Medium
|
Scott Kitterman | ||
Intrepid |
Fix Released
|
Medium
|
Scott Kitterman |
Bug Description
Binary package hint: mnemosyne
Ubuntu intrepid 8.10RC
mnemosyne 1.1-0ubuntu1
Immediately after starting mnemosyne pulseaudio silently opens an audio stream. No audio can be heard but pulseaudio still appears to play, using cpu seemingly for nothing. Cpu use goes down right after closing mnemosyne.
Since I have mnemosyne running most of the time (to add the occasional flash card), but never use it for audio, this seems like a waste of resources. It slows down the rest of the system and keeps cpu and audio hardware awake all the time. potentially reducing runtime for notebooks.
I expected mnemosyne to open an audio stream only when actually playing media embedded into flash cards.
Instead it plays silence during the whole runtime of the program, wasting system resources.
Steps to reproduce:
$ sudo apt-get install mnemosyne
$ top -bn3 |grep pulseaudio
7523 ubuntu 20 0 37320 5000 3820 S 0.0 0.2 12:44.92 pulseaudio
7523 ubuntu 20 0 37320 5000 3820 S 0.0 0.2 12:44.92 pulseaudio
7523 ubuntu 20 0 37320 5000 3820 S 0.0 0.2 12:44.92 pulseaudio
$ mnemosyne&
$ top|grep pulseaudio
7523 ubuntu 20 0 39412 5628 4440 S 7.7 0.3 12:25.15 pulseaudio
7523 ubuntu 20 0 39412 5628 4440 S 8.3 0.3 12:25.40 pulseaudio
7523 ubuntu 20 0 39412 5628 4440 S 8.0 0.3 12:25.64 pulseaudio
The silent pulseaudio stream:
$ pactl list >pa2.list
$ mnemosyne&
$ pactl list >pa2.list
$ diff pa1.list pa2.list
82c82
< Latency: 0 usec
---
> Latency: 65833 usec
120a121,133
> *** Sink Input #6 ***
> Name: Simple DirectMedia Layer
> Driver: pulsecore/
> Owner Module: 5
> Client: 31
> Sink: 0
> Sample Specification: s16le 2ch 22050Hz
> Channel Map: front-left,
> Volume: 0: 100% 1: 100%
> Buffer Latency: 374248 usec
> Sink Latency: 73000 usec
> Resample method: speex-float-1
>
186c199,204
< *** Client #29 ***
---
> *** Client #31 ***
> Name: python
> Driver: pulsecore/
> Owner Module: 5
>
> *** Client #32 ***
This workaround stops it from playing any audio, including sound in flash cards:
$ SDL_AUDIODRIVER =none mnemosyne
It shows an error but runs anyway: python- support/ python2. 5/mnemosyne/ pyqt_ui/ sound.py" , line 43, in __init__ mixer.init( )
Unable to initialise sound.
Traceback (most recent call last):
File "/var/lib/
pygame.
error: No available audio device