-
Bug
-
Resolution: Done
-
P1: Critical
-
1.0.2
-
None
-
Ubuntu 10.4 and 10.10, probably more
-
8b7266c22552599d6fa3cbb6e56ace8ce99695e8
Both Ubuntu 10.04 and 10.0 provide an audio interface called "null". When probing this device for supported formats using QAudioDeviceInfo::isFormatSupported, the application crashes. Reproduce this by starting the audioinput-example on either Ubuntu 10.04 oder 10.10 using Qt installation from the distro.
audioinput: pcm_params.c:2348: sndrv_pcm_hw_params: Assertion `err >= 0' failed.
Program received signal SIGABRT, Aborted.
0x0012e416 in __kernel_vsyscall ()
(gdb) bt
#0 0x0012e416 in __kernel_vsyscall ()
#1 0x0137c941 in raise () from /lib/libc.so.6
#2 0x0137fe42 in abort () from /lib/libc.so.6
#3 0x013758e8 in __assert_fail () from /lib/libc.so.6
#4 0x015009c1 in ?? () from /usr/lib/libasound.so.2
#5 0x014fbe51 in snd_pcm_hw_params () from /usr/lib/libasound.so.2
#6 0x00197549 in QAudioDeviceInfoInternal::testSettings (this=0x81b1388, format=...) at audio/qaudiodeviceinfo_alsa_p.cpp:358
#7 0x00196582 in QAudioDeviceInfoInternal::isFormatSupported (this=0x81b1388, format=...) at audio/qaudiodeviceinfo_alsa_p.cpp:82
#8 0x0018d9eb in QAudioDeviceInfo::isFormatSupported (this=0xbffff2f8, settings=...) at audio/qaudiodeviceinfo.cpp:226
#9 0x0804da4d in InputTest::initializeAudio (this=0xbffff364) at audioinput.cpp:282
#10 0x0804d14c in InputTest (this=0xbffff364) at audioinput.cpp:231
#11 0x0804f361 in main (argv=1, args=0xbffff474) at main.cpp:57
(gdb)