[Mono-bugs] [Bug 442583] New: Mono crashes when trying to play a sound if there' s no soundcard
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Nov 7 01:57:04 EST 2008
https://bugzilla.novell.com/show_bug.cgi?id=442583
Summary: Mono crashes when trying to play a sound if there's no
soundcard
Product: Mono: Class Libraries
Version: 1.9
Platform: i686
OS/Version: Ubuntu
Status: NEW
Severity: Normal
Priority: P5 - None
Component: System
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: floseflose at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: Other
Description of Problem:
Mono crashes when trying to play a sound if there's no soundcard.
A try block around the play command doesn't prevent the crash.
Steps to reproduce the problem:
1. Use a virtual PC without a soundcard and a Ubuntu 8.10 live CD
2. Write a program which uses:
System.Media.SystemSounds.Exclamation.Play();
Actual Results:
crashes when trying to play the sound(stacktrace see bottom)
Expected Results:
doing nothing(because there's no soundcard)
How often does this happen?
always
Additional Information:
ALSA lib pcm_pulse.c:629:(pulse_prepare) PulseAudio: Unable to create stream:
Invalid argument
ALSA lib pcm.c:7307:(snd_pcm_set_params) Unable to set hw params for PLAYBACK:
Input/output error
mono: pcm_pulse.c:364: pulse_write: Assertion `pcm->stream' failed.
Stacktrace:
at (wrapper managed-to-native) Mono.Audio.AlsaDevice.snd_pcm_writei
(intptr,byte[],int) <0x00004>
at (wrapper managed-to-native) Mono.Audio.AlsaDevice.snd_pcm_writei
(intptr,byte[],int) <0xffffffff>
at Mono.Audio.AlsaDevice.PlaySample (byte[],int) <0x00016>
at Mono.Audio.WavData.Play (Mono.Audio.AudioDevice) <0x0005d>
at System.Media.SoundPlayer.PlaySync () <0x000d9>
at (wrapper runtime-invoke) System.Object.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>
Native stacktrace:
mono [0x817b4ae]
[0xb7fdc410]
/lib/tls/i686/cmov/libc.so.6(abort+0x188) [0xb7d78248]
/lib/tls/i686/cmov/libc.so.6(__assert_fail+0xee) [0xb7d6f72e]
/usr/lib/alsa-lib/libasound_module_pcm_pulse.so [0xb6674e33]
/usr/lib/libasound.so.2 [0xb5c22201]
/usr/lib/libasound.so.2 [0xb5bddee9]
/usr/lib/libasound.so.2 [0xb5c22605]
/usr/lib/libasound.so.2(snd_pcm_writei+0x54) [0xb5bd87e4]
[0xb5d615fd]
[0xb5d615a7]
[0xb5d61516]
[0xb5d5ff02]
[0xb6102b39]
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list