audio/*-plug-detection crash with SoundWire audio

Bug #1974150 reported by Scott Hu
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Checkbox Provider - Base
Fix Released
Critical
Unassigned

Bug Description

[Summary]
These 2 are crashed when starting running case, but headset functions are OK by manually

audio/speaker-headphone-plug-detection
audio/microphone-plug-detection

[I/O log]
Traceback (most recent call last):
  File "/tmp/nest-xeg72r5b.53fcd73132522629b317f121dc29ab5046a3f977dc1c8a9cc984052bf73986f3/pulse_active_port_change.py", line 156, in <module>
    raise SystemExit(AudioPlugDetection.main())
  File "/tmp/nest-xeg72r5b.53fcd73132522629b317f121dc29ab5046a3f977dc1c8a9cc984052bf73986f3/pulse_active_port_change.py", line 113, in main
    return cls(ns.timeout, ns.mode).run()
  File "/tmp/nest-xeg72r5b.53fcd73132522629b317f121dc29ab5046a3f977dc1c8a9cc984052bf73986f3/pulse_active_port_change.py", line 126, in run
    initial_cfg = self.get_sound_config()
  File "/tmp/nest-xeg72r5b.53fcd73132522629b317f121dc29ab5046a3f977dc1c8a9cc984052bf73986f3/pulse_active_port_change.py", line 76, in get_sound_config
    doc = parse_pactl_output(text)
  File "/usr/lib/python3/dist-packages/checkbox_support/parsers/pactl.py", line 586, in parse_pactl_output
    return Document.Syntax.parseString(output, parseAll=True)[0]
  File "/usr/lib/python3/dist-packages/pyparsing.py", line 1955, in parseString
    raise exc
  File "/usr/lib/python3/dist-packages/pyparsing.py", line 3814, in parseImpl
    raise ParseException(instring, loc, self.errmsg, self)
pyparsing.ParseException: Expected end of text, found '\t' (at char 1763), (line:48, col:1)

[Additional information]
CID: 202112-29836
SKU: OCBY-DVT2-C3

Related branches

Scott Hu (huntu207)
summary: - audio/speaker-headphone/microphone-plug-detection crash
+ audio/*-plug-detection crash
description: updated
Scott Hu (huntu207)
summary: - audio/*-plug-detection crash
+ audio/*-plug-detection crash with SoundWire audio
Scott Hu (huntu207)
description: updated
Kent Lin (kent-jclin)
Changed in plainbox-provider-checkbox:
importance: Undecided → Critical
Pierre Equoy (pieq)
Changed in plainbox-provider-checkbox:
status: New → Confirmed
assignee: nobody → Pierre Equoy (pieq)
Revision history for this message
Pierre Equoy (pieq) wrote :
Revision history for this message
Pierre Equoy (pieq) wrote :
Revision history for this message
Pierre Equoy (pieq) wrote :
Revision history for this message
Pierre Equoy (pieq) wrote :

The two attached logs come from a device exhibiting the same issue. These are the output from

LANG=C pactl list sinks
LANG=C pactl list sources

Bin Li (binli)
tags: added: originate-from-1981534
tags: added: originate-from-1985046
tags: added: originate-from-1897607
tags: added: sutton
Bin Li (binli)
tags: added: originate-from-1987607
Revision history for this message
YANG, ZHI-HAO (isaacyang) wrote :

This issue also occure on 6.0 kernel desktop image.
[Summary]
Run Checkbox Audio test items the following test were fail:
1.audio/microphone-plug-detection
2.audio/speaker-headphone-plug-detection

[`audio/microphone-plug-detection` Output]
Traceback (most recent call last):
  File "/tmp/nest-vom4cdrs.32562a7a1c74649eb8594ffd8a25040a35e68cb302ce6e868cbfd4dbe2885a18/pulse_active_port_change.py", line 156, in <module>
    raise SystemExit(AudioPlugDetection.main())
  File "/tmp/nest-vom4cdrs.32562a7a1c74649eb8594ffd8a25040a35e68cb302ce6e868cbfd4dbe2885a18/pulse_active_port_change.py", line 113, in main
    return cls(ns.timeout, ns.mode).run()
  File "/tmp/nest-vom4cdrs.32562a7a1c74649eb8594ffd8a25040a35e68cb302ce6e868cbfd4dbe2885a18/pulse_active_port_change.py", line 126, in run
    initial_cfg = self.get_sound_config()
  File "/tmp/nest-vom4cdrs.32562a7a1c74649eb8594ffd8a25040a35e68cb302ce6e868cbfd4dbe2885a18/pulse_active_port_change.py", line 76, in get_sound_config
    doc = parse_pactl_output(text)
  File "/usr/lib/python3/dist-packages/checkbox_support/parsers/pactl.py", line 586, in parse_pactl_output
    return Document.Syntax.parseString(output, parseAll=True)[0]
  File "/usr/lib/python3/dist-packages/pyparsing.py", line 1955, in parseString
    raise exc
  File "/usr/lib/python3/dist-packages/pyparsing.py", line 3814, in parseImpl
    raise ParseException(instring, loc, self.errmsg, self)
pyparsing.ParseException: Expected end of text, found '\t' (at char 6950), (line:184, col:1)

[`audio/speaker-headphone-plug-detection` Output]
Traceback (most recent call last):
  File "/tmp/nest-kz3tx9ht.53fcd73132522629b317f121dc29ab5046a3f977dc1c8a9cc984052bf73986f3/pulse_active_port_change.py", line 156, in <module>
    raise SystemExit(AudioPlugDetection.main())
  File "/tmp/nest-kz3tx9ht.53fcd73132522629b317f121dc29ab5046a3f977dc1c8a9cc984052bf73986f3/pulse_active_port_change.py", line 113, in main
    return cls(ns.timeout, ns.mode).run()
  File "/tmp/nest-kz3tx9ht.53fcd73132522629b317f121dc29ab5046a3f977dc1c8a9cc984052bf73986f3/pulse_active_port_change.py", line 126, in run
    initial_cfg = self.get_sound_config()
  File "/tmp/nest-kz3tx9ht.53fcd73132522629b317f121dc29ab5046a3f977dc1c8a9cc984052bf73986f3/pulse_active_port_change.py", line 76, in get_sound_config
    doc = parse_pactl_output(text)
  File "/usr/lib/python3/dist-packages/checkbox_support/parsers/pactl.py", line 586, in parse_pactl_output
    return Document.Syntax.parseString(output, parseAll=True)[0]
  File "/usr/lib/python3/dist-packages/pyparsing.py", line 1955, in parseString
    raise exc
  File "/usr/lib/python3/dist-packages/pyparsing.py", line 3814, in parseImpl
    raise ParseException(instring, loc, self.errmsg, self)
pyparsing.ParseException: Expected end of text, found '\t' (at char 1792), (line:48, col:1)

[Addtional Information]
Test Vault ID: 100377
image/manifest:dell-bto-jammy-jellyfish-gardevoir-X44-20220928-7.iso
Product Name:Galio
Bios Version:0.2.15
Kernel Version:6.0.0.1004-oem
CPU:Raptor Lake HX ES
GPU:Nvidia GN20-P1
SKU:All
Failure rate:2/2 units,6/6 times.

Revision history for this message
YANG, ZHI-HAO (isaacyang) wrote :
Pierre Equoy (pieq)
Changed in plainbox-provider-checkbox:
status: Confirmed → Fix Committed
milestone: none → 2.0.0
Pierre Equoy (pieq)
Changed in plainbox-provider-checkbox:
assignee: Pierre Equoy (pieq) → nobody
Pierre Equoy (pieq)
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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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