Tuxpaint 0.9.20 crashes with pulse audio error when run in VirtualBox

Bug #289687 reported by ronny
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Tux Paint
Unknown
Unknown
tuxpaint (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: tuxpaint

I just installed Ubuntu-8.10RC in VirtualBox-2.0.4 (using the default configuration, i.e. without a sound card in the virtual machine) and wanted to test Tuxpaint. Unfortunately, it does not start up when using the start menu.
When trying on the command line I see the following error messages:
-------------
~$ tuxpaint
ALSA lib pcm_pulse.c:629:(pulse_prepare) PulseAudio: Unable to create stream: Invalid argument

E: stream.c: Assertion 's' failed at pulse/stream.c:971, function pa_stream_drain(). Aborting.
Aborted
test@test-desktop:~$
-------------

Tuxpaint should start on systems without a soundcard without crashes and without having to go to the command line and using the --nosound option.

Revision history for this message
Caroline Ford (secretlondon) wrote :

We thought tuxpaint identified when it didn't have a soundcard. I wonder if this is pulseaudio?

Have you tried running any other applications that use audio? Do they also crash?

Revision history for this message
Caroline Ford (secretlondon) wrote :

Could you try other SDL apps such as tuxmath at let us know if it also crashes?

Can you confirm that it doesn't crash if you run it with --nosound?

Changed in tuxpaint:
status: New → Incomplete
Revision history for this message
ronny (ronny-standtke) wrote :

OK, I just tested tuxmath and it crashes with exactly the same error message:
~$ tuxmath
ALSA lib pcm_pulse.c:629:(pulse_prepare) PulseAudio: Unable to create stream: Invalid argument

E: stream.c: Assertion 's' failed at pulse/stream.c:971, function pa_stream_drain(). Aborting.
Aborted

I can also confirm that tuxpaint --nosound does *not* crash.

Changed in tuxpaint:
status: Incomplete → New
Revision history for this message
Caroline Ford (secretlondon) wrote :

Thanks - I'll send this info back upstream. This is looking a bit like SDL.

Changed in tuxpaint:
status: New → Confirmed
Revision history for this message
Caroline Ford (secretlondon) wrote :

Bug #274577 may be related.

There is a claim that it has fixed itself. Is your intrepid install up to date?

Revision history for this message
Ryan Giobbi (ryan-tgbemail) wrote :

Same problem here. I removed pulseaudio and everything seems to work ok.

Revision history for this message
mehturt (mehturt) wrote :

Still an issue with 9.10 x86_64.

Revision history for this message
Bill Kendrick (nbs) wrote :

Does switching SDL from ALSA to the Pulseaudio audio backend help? From the Tux Paint Known Issues page (http://www.tuxpaint.org/docs/known_issues/):

* No sound, too much CPU usage, and/or freeze or crash on exit
- The ALSA sound backend in SDL has problems working with the PulseAudio sound system. Install SDL built against PulseAudio instead of ALSA (which is the default for SDL on Debian and Ubuntu). For example, on Ubuntu or Debian, install the "libsdl1.2debian-pulseaudio" package. (See Bug #269082 at Ubuntu Launchpad: 'tuxpaint and other tux SDL driven apps slow down and/or freeze thin client terminals (ltsp)')

Revision history for this message
mehturt (mehturt) wrote :

Yes, that helps. Thanks a lot.

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.