Comment 7 for bug 1875526

Revision history for this message
Gabriel Zhi Chen (gabrielzchen) wrote :

When remove '[In]' or '[Out]' from 'pactl list', there are no crash errors again.

Here is an workaround patch to remove '[' or ']', after that no crash.

--- /usr/lib/python3/dist-packages/checkbox_support/scripts/audio_settings.py 2020-04-23 10:28:39.000000000 -0400
+++ audio_settings.py 2020-04-27 22:51:29.698223676 -0400
@@ -129,8 +129,9 @@
     """
     pactl_list = check_output(
         ['pactl', 'list'], universal_newlines=True, env=unlocalized_env())
+ new_pactl_list = pactl_list.replace("[", "").replace("]", "")

- card, profile = _guess_hdmi_profile(pactl_list)
+ card, profile = _guess_hdmi_profile(new_pactl_list)
     if not profile:
         logging.error('No available port found')
         return 1