** Description changed:

- .
+ [Impact]
+ 
+  When running any job using the alsa_record_playback script from checkbox, 
the test fails and an exception with trace is produced. This happens on 
installations that don't have the alsasrc gstreamer element, such as kubuntu or 
xubuntu. Thus, the test fails
+  even if audio on the system is indeed working properly.
+ 
+  Due to the high incidence of this bug as mentioned in comment #17,  and
+ the fact that the fix is relatively simple, it's worth backporting this
+ so it's available on the latest stable release (13.04).
+ 
+  The fix was introduced in checkbox trunk revision 2083, it simply modifies 
the script itself so it uses the autoaudiosrc element which should be available 
in any sane gstreamer installation (with the good set of plugins), and it also 
modifies the job definition so that the job won't even run in the unlikely 
event that not even the 
+  gstreamer*-plugins-good are available, rather than producing a confusing 
crash and trace.
+ 
+ [Test Case]
+ 
+ - Ensure that gstreamer1.0-alsa is NOT installed. It's not installed by
+ default on Ubuntu flavours such as kubuntu or xubuntu. If you're running
+ vanilla Ubuntu, you can sudo apt-get remove gstreamer1.0-alsa.
+ 
+   - Run this command:
+     PATH=$PATH:/usr/share/checkbox/scripts alsa_record_playback
+   - Expected result:
+     Sound is recorded from the microphone for a few seconds, then played back 
through the speakers/headphones.
+ 
+   - Actual result: Error Trace as seen in the original report.
+ 
+ 
+ [Regression Potential] 
+ 
+  * Not much of a chance for regressions,  since the autoaudiosrc source has 
been in the gstreamer-plugins-good package since at least Ubuntu 12.10. As 
mentioned in the comments, checkbox has been using autoaudiosrc without any 
reports of problems in *most* of our audio-related jobs, so this should benefit 
from that experience.
+ Checking for the gstreamer{0.10,1.0}-plugins-good packages is a safety net 
that may nevertheless cause problems if a user has a version of the plugins 
package that contains autoaudiosrc and doesn't match the package names we're 
expecting, however this is unlikely for the targeted versions of Ubuntu.
+ 
  
  ProblemType: Crash
  DistroRelease: Ubuntu 12.10
  Package: checkbox 0.14.7
  ProcVersionSignature: Ubuntu 3.5.0-16.25-generic 3.5.4
  Uname: Linux 3.5.0-16-generic i686
  ApportVersion: 2.5.3-0ubuntu1
  Architecture: i386
  Date: Mon Oct  1 14:01:28 2012
  ExecutablePath: /usr/lib/checkbox/bin/gst_pipeline_test
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
  InterpreterPath: /usr/bin/python3.2mu
  ProcCmdline: /usr/bin/python3 /usr/share/checkbox/scripts/gst_pipeline_test 
-t 5 alsasrc\ !\ audioconvert\ !\ level\ name=recordlevel\ interval=10000000\ 
!\ audioconvert\ !\ wavenc\ !\ filesink\ location=/tmp/tmp.1IiyjmqnYo/test.wav
  PythonArgs: ['/usr/share/checkbox/scripts/gst_pipeline_test', '-t', '5', 
'alsasrc ! audioconvert ! level name=recordlevel interval=10000000 ! 
audioconvert ! wavenc ! filesink location=/tmp/tmp.1IiyjmqnYo/test.wav']
  SourcePackage: checkbox
  Title: gst_pipeline_test crashed with gi._glib.GError in function(): Kein 
Element »alsasrc«
  UpgradeStatus: Upgraded to quantal on 2012-09-08 (23 days ago)
  UserGroups: adm admin audio cdrom debian-tor dialout fuse lpadmin plugdev 
sambashare vboxusers video

** Also affects: checkbox (Ubuntu Raring)
   Importance: Undecided
       Status: New

** Summary changed:

- checkbox should depends on gstreamer1.0-alsa
+ checkbox alsa_record_playback should use autoaudiosrc instead of alsasrc

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1059544

Title:
  checkbox alsa_record_playback should use autoaudiosrc instead of
  alsasrc

To manage notifications about this bug go to:
https://bugs.launchpad.net/checkbox/+bug/1059544/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to