audio_settings script would fail on Vivid

Bug #1460556 reported by Po-Hsu Lin
74
This bug affects 9 people
Affects Status Importance Assigned to Milestone
Checkbox Provider - Base
Fix Released
High
Sylvain Pineau

Bug Description

While testing the audio playback job with the following command:
plainbox run -i "2013.com.canonical.certification::audio/playback_auto"

It will fail with the following error:

Traceback (most recent call last):
  File "/tmp/nest-xhm2dm1q.31fe8937351983f9ecce53888ec8d0346fca5a4673471fa7e36e25ea11245065/audio_settings", line 9, in <module>
    sys.exit(main())
  File "/usr/lib/python3/dist-packages/checkbox_support/scripts/audio_settings.py", line 363, in main
    store_audio_settings(settings_file)
  File "/usr/lib/python3/dist-packages/checkbox_support/scripts/audio_settings.py", line 217, in store_audio_settings
    default = default_regex.search(pactl_status).group()
AttributeError: 'NoneType' object has no attribute 'group'
Attempting to initialize Gstreamer pipeline: audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink
Pipeline initialized, now starting playback.
ERROR:root:Unable to restore settings because settings file is invalid

Version information
ubuntu@201304-13197:~$ apt-cache policy checkbox
checkbox:
  Installed: (none)
  Candidate: 0.18-0ubuntu2
  Version table:
     0.18-0ubuntu2 0
        500 http://archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages
ubuntu@201304-13197:~$ apt-cache policy plainbox
plainbox:
  Installed: 0.22+bzr3819+pkg29~ubuntu15.04.1
  Candidate: 0.22+bzr3819+pkg29~ubuntu15.04.1
  Version table:
 *** 0.22+bzr3819+pkg29~ubuntu15.04.1 0
        500 http://ppa.launchpad.net/checkbox-dev/ppa/ubuntu/ vivid/main amd64 Packages
        100 /var/lib/dpkg/status
     0.5.4-1 0
        500 http://archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages
ubuntu@201304-13197:~$ plainbox dev list provider
provider '2013.com.canonical.plainbox:manifest'
provider '2013.com.canonical.plainbox:categories'
provider '2013.com.canonical.certification:certification-client'
provider '2013.com.canonical.certification:checkbox'
provider '2013.com.canonical.certification:plainbox-resources'

BTW, I think zyga did mentioned about this before when reviewing my BT-A2DP test case.
Please refer to https://code.launchpad.net/~cypressyew/checkbox/bt-a2dp-fix/+merge/258860

Related branches

Revision history for this message
Daniel Manrique (roadmr) wrote :

Hey, can you attach (as files, not comments) the output of :

pactl list sinks

pactl list sources

this way we can run them through the pactl parser and see why it can't find the status. Maybe something in pactl output changed in Vivid.

Thanks!

Changed in plainbox-provider-checkbox:
status: New → Incomplete
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Hi,
here is the output for pactl list sources: http://paste.ubuntu.com/11561026/
and the output for http://paste.ubuntu.com/11561051/
Thanks!

Changed in plainbox-provider-checkbox:
status: Incomplete → Confirmed
status: Confirmed → New
Changed in plainbox-provider-checkbox:
status: New → Confirmed
importance: Undecided → High
milestone: none → 0.21
Changed in plainbox-provider-checkbox:
assignee: nobody → Sylvain Pineau (sylvain-pineau)
status: Confirmed → In Progress
Changed in plainbox-provider-checkbox:
status: In Progress → Fix Committed
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Verified on a Vivid SRU system, it won't fail with this anymore, thanks!

Changed in plainbox-provider-checkbox:
status: Fix Committed → Fix Released
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.