PulseAudio driver crashes when PulseAudio is shutdown during playback

Bug #1160285 reported by Toni Ruottu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Kunquat
New
Undecided
Tomi Jylhä-Ollila

Bug Description

PulseAudio driver crashes when PulseAudio is shutdown during playback. We can not create a unit test for this since it effects other applications.

Revision history for this message
Toni Ruottu (toni-ruottu) wrote :

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/home/twruottu/src/kunquat/fixtracker/kunquat/tracker/threads/audiothread.py", line 60, in run
    self._audio.put_audio(audio)
  File "/home/twruottu/src/kunquat/fixtracker/kunquat/tracker/audio/audio.py", line 68, in put_audio
    self._driver.put_audio(audio)
  File "/home/twruottu/src/kunquat/fixtracker/kunquat/tracker/audio/drivers/pushaudio.py", line 29, in put_audio
    self._pa.write(left, right)
  File "/home/twruottu/src/kunquat/fixtracker/kunquat/extras/pulseaudio.py", line 123, in write
    raise PulseAudioError(_simple.pa_strerror(error))
PulseAudioError: Connection terminated

Revision history for this message
Toni Ruottu (toni-ruottu) wrote :

So the wrapper raises an exception correctly, but kunquat driver does not handle the exception. Is there a way to add test cases for this exception to wrapper tests and to driver tests?

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.