audio_settings script will raise "Expected end of text" in pyparsing.py

Bug #1511254 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Support Library
Fix Released
High
Sylvain Pineau

Bug Description

While running Checkbox on 201407-15278, Dell Latitude E5250 with 14.04.3
The HDMI audio test complains about the "Expected end of text" issue in pyparsing.py when it tries to save audio settings:

INFO:===========================[ Saving audio settings ]============================
Traceback (most recent call last):
  File "/tmp/nest-du4nwlwl.47c0e48f1d14c6ca543a816b553876d06ca157236dbbdac11251ff1a149321b7/audio_settings", line 9, in <module>
    sys.exit(main())
  File "/usr/lib/python3/dist-packages/checkbox_support/scripts/audio_settings.py", line 378, in main
    set_profile_hdmi()
  File "/usr/lib/python3/dist-packages/checkbox_support/scripts/audio_settings.py", line 133, in set_profile_hdmi
    card, profile = _guess_hdmi_profile(pactl_list)
  File "/usr/lib/python3/dist-packages/checkbox_support/scripts/audio_settings.py", line 71, in _guess_hdmi_profile
    for record in parse_pactl_output(pactl_list).record_list:
  File "/usr/lib/python3/dist-packages/checkbox_support/parsers/pactl.py", line 562, in parse_pactl_output
    return Document.Syntax.parseString(output, parseAll=True)[0]
  File "/usr/lib/python3/dist-packages/pyparsing.py", line 1041, in parseString
    raise exc
  File "/usr/lib/python3/dist-packages/pyparsing.py", line 1035, in parseString
    se._parse( instring, loc )
  File "/usr/lib/python3/dist-packages/pyparsing.py", line 962, in _parseCache
    value = self._parseNoCache( instring, loc, doActions, callPreParse )
  File "/usr/lib/python3/dist-packages/pyparsing.py", line 905, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/usr/lib/python3/dist-packages/pyparsing.py", line 2288, in parseImpl
    loc, exprtokens = e._parse( instring, loc, doActions )
  File "/usr/lib/python3/dist-packages/pyparsing.py", line 962, in _parseCache
    value = self._parseNoCache( instring, loc, doActions, callPreParse )
  File "/usr/lib/python3/dist-packages/pyparsing.py", line 909, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/usr/lib/python3/dist-packages/pyparsing.py", line 2095, in parseImpl
    raise ParseException(instring, loc, self.errmsg, self)
pyparsing.ParseException: Expected end of text (at char 10345), (line:357, col:1)
INFO:=================================[ Pulse sink ]=================================
INFO:Device: name: <alsa_output.pci-0000_00_03.0.hdmi-stereo> state: SUSPENDED

And the system will ask you if you want to report issue for this.
This HDMI audio test still works, it's just scary to see these error.

Checkbox version information:
canonical-certification-client 0.18+bzr3943+pkg54~ubuntu14.04.1
checkbox-gui 0.35+bzr3986+pkg19~ubuntu14.04.1
checkbox-ng 0.22+bzr4064+pkg33~ubuntu14.04.1
checkbox-ng-service 0.22+bzr4064+pkg33~ubuntu14.04.1
plainbox-glmark2-es2-meta 0.18+bzr3943+pkg54~ubuntu14.04.1
plainbox-insecure-policy 0.24+bzr4059+pkg37~ubuntu14.04.1
plainbox-provider-certification-client 0.18+bzr3943+pkg54~ubuntu14.04.1
plainbox-provider-checkbox 0.23+bzr4064+pkg27~ubuntu14.04.1
plainbox-provider-resource-generic 0.21+bzr4064+pkg22~ubuntu14.04.1
python3-checkbox-ng 0.22+bzr4064+pkg33~ubuntu14.04.1
python3-checkbox-support 0.22+bzr4064+pkg23~ubuntu14.04.1
python3-plainbox 0.24+bzr4059+pkg37~ubuntu14.04.1

Related branches

Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

Could you please attach the output of `pactl list` so that we can see which stings are causing issue with pyparsing?

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

I just successfully have this issue reproduced, the key is to connect with the Bluetooth headset here.
And yes, the BT headset is the cause. This won't happen if it's disconnected.

It will fail when the audio_settings script tries to set the output interface to HDMI

Changed in plainbox-provider-checkbox:
status: Incomplete → New
affects: plainbox-provider-checkbox → checkbox-support
Changed in checkbox-support:
importance: Undecided → High
status: New → Confirmed
Changed in checkbox-support:
status: Confirmed → In Progress
assignee: nobody → Sylvain Pineau (sylvain-pineau)
milestone: none → 0.24
Changed in checkbox-support:
status: In Progress → Fix Committed
Pierre Equoy (pieq)
Changed in checkbox-support:
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

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.