[SRU] ubuntustudio-controls crashed with IndexError in refresh_dropdowns(): list index out of range

Bug #1872187 reported by Oliver K.
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntustudio-controls (Ubuntu)
Fix Released
High
Unassigned
Focal
Fix Released
High
Unassigned
Groovy
Fix Released
High
Unassigned

Bug Description

[IMPACT]
Users of Ubuntu Studio Controls for sound cards which do not provide a proper description are unable to use Ubuntu Studio Controls, which causes the application to crash.

[TEST CASE]
Using a computer with a sound card that does not provide a description, attempt to select sound card from drop down menu on the Jack configuration tab. The application will crash.

[REGRESSION POTENTIAL]
It is very possible that the fix might cause problems for other users of Ubuntu Studio Controls when using that menu, but this is highly unlikely.

Package has been uploaded to the queue.

Original bug follows:
----

Lenovo MIIX320-10ICR

No default sound device available (missing kernel driver?!?) only hdmi-sound-driver in pavucontrol. This could cause the ubuntustudi-controls crash.

Fix needed befor 23. April. ;-)

See attached systeminfo.txt file.

ProblemType: Crash
DistroRelease: Ubuntu 20.04
Package: ubuntustudio-controls 1.12.3
ProcVersionSignature: Ubuntu 5.4.0-21.25-lowlatency 5.4.27
Uname: Linux 5.4.0-21-lowlatency x86_64
ApportVersion: 2.20.11-0ubuntu26
Architecture: amd64
CasperMD5CheckResult: skip
CrashCounter: 1
CurrentDesktop: XFCE
Date: Sat Apr 11 12:48:48 2020
ExecutablePath: /usr/bin/ubuntustudio-controls
InstallationDate: Installed on 2020-04-11 (0 days ago)
InstallationMedia: Ubuntu-Studio 20.04 LTS "Focal Fossa" - Alpha amd64 (20200315)
InterpreterPath: /usr/bin/python3.8
PackageArchitecture: all
ProcCmdline: /usr/bin/python3 /usr/bin/ubuntustudio-controls
ProcEnviron:
 LANGUAGE=de_DE
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
Python3Details: /usr/bin/python3.8, Python 3.8.2, python3-minimal, 3.8.2-0ubuntu2
PythonArgs: ['/usr/bin/ubuntustudio-controls']
PythonDetails: N/A
SourcePackage: ubuntustudio-controls
Title: ubuntustudio-controls crashed with IndexError in refresh_dropdowns(): list index out of range
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm audio cdrom dip lpadmin plugdev sambashare sudo

Revision history for this message
Oliver K. (big-ghost-ok) wrote :
tags: removed: need-duplicate-check
Changed in ubuntustudio-controls (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

A newer version of ubuntustudio-controls has been released since this bug was reported. Please attempt to replicate this bug in the newer version. This bug will automatically close in 60 days if there is no activity.

information type: Private → Public
Changed in ubuntustudio-controls (Ubuntu):
status: New → Incomplete
Revision history for this message
Oliver K. (big-ghost-ok) wrote :

I've installed the update. But the problem exists. I think it's not related to the ubuntustudio-controls it self. There are a lot of Problems with this MIIX320-10ICR mini pieces. I don't want to say that these things are junk?!? Not really ;-) It's not worth wasting the time.

We should spend more time for other problems, like the one with the NVIDIA-Metapack-390 Ubuntu Studio 20.04 for other Machines. That is a bigger Problem for me and possible other users.

Thank you.

Revision history for this message
Len Ovens (len-ovenwerks) wrote :

What is seen by pavucontrol is not relavent. When jack is running pavucontrol should show no devices except possibly a bluetooth device. Instead jack becomes the default "device" or sink, which is what we want.

However, the traceback does give indication that in some cases the sound card may not have a description. This condition should be checked for.

Changed in ubuntustudio-controls (Ubuntu):
assignee: nobody → Len Ovens (len-ovenwerks)
Changed in ubuntustudio-controls (Ubuntu):
status: Incomplete → Confirmed
importance: Medium → High
Changed in ubuntustudio-controls (Ubuntu Focal):
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

Oliver and anyone else affected:

Please try installing this .deb file and report to see if it fixes your issue:

https://code.launchpad.net/~ubuntustudio-dev/+archive/ubuntu/autobuild/+build/19228925/+files/ubuntustudio-controls_1.12.4+git-0~202004281855~ubuntu20.04.1_all.deb

Changed in ubuntustudio-controls (Ubuntu Groovy):
status: Confirmed → In Progress
Revision history for this message
Oliver K. (big-ghost-ok) wrote :

The "Ubuntu Studio Controls" window is now visible and I can select the Jack Master Device (no USB) "chtrt5646,0,0 playback and capture device".

But I can't start Jack from the Controls-Window. The window freezes.

An attempt with "QjackCtl" shows the following messages:

: Starting jack server...
: JACK server starting in realtime mode with priority 10
: self-connect-mode is "Don't restrict self connect requests"
: Acquired audio card Audio0
: creating alsa driver ... hw:chtrt5645,0,0|hw:chtrt5645,0,0|1024|2|44100|0|0|nomon|swmeter|-|32bit
: configuring for 44100Hz, period = 1024 frames (23.2 ms), buffer = 2 periods
: ALSA: final selected sample format for capture: 24bit little-endian
: ALSA: use 2 periods for capture
: ALSA: final selected sample format for playback: 24bit little-endian
: ALSA: use 2 periods for playback
: ERROR: JackPosixProcessSync::LockedTimedWait error usec = 5000000 err = Connection timed out
: ERROR: Driver is not running
: ERROR: Cannot open client name = dbusapi
: ERROR: failed to create dbusapi jack client
: ERROR: Unknown request 4294967295
: ERROR: CheckSize error size = 0 Size() = 12
: ERROR: CheckRead error
: ERROR: JackPosixProcessSync::LockedTimedWait error usec = 5000000 err = Connection timed out
: ERROR: Driver is not running
: ERROR: Cannot create new client

I see the "jackdbus" process with "ps -e". But that's a different problem from "JackD", I think.

Sound ist working with ALSA and PulseAudio direct.

Changed in ubuntustudio-controls (Ubuntu Focal):
status: Confirmed → Fix Committed
Revision history for this message
Len Ovens (len-ovenwerks) wrote :

Oliver, the bug in ubuntustudio-controls is fixed. The problem with the audio device itself is a different one. it looks like jackdbus is frozen. killall -9 jackd jackdbus will kill it. Then maybe try running jack with a buffersize of 4096 rather than 1024 as some mother board audio systems require a large buffer size. This would explain pulse working and jack not.

Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

If that is the case then this bug is fixed. Your new issues are unrelated.

Changed in ubuntustudio-controls (Ubuntu Groovy):
assignee: Len Ovens (len-ovenwerks) → Erich Eickmeyer (eeickmeyer)
status: In Progress → Fix Committed
Changed in ubuntustudio-controls (Ubuntu Focal):
assignee: nobody → Erich Eickmeyer (eeickmeyer)
Changed in ubuntustudio-controls (Ubuntu Focal):
status: Fix Committed → In Progress
description: updated
summary: - ubuntustudio-controls crashed with IndexError in refresh_dropdowns():
- list index out of range
+ [SRU] ubuntustudio-controls crashed with IndexError in
+ refresh_dropdowns(): list index out of range
Changed in ubuntustudio-controls (Ubuntu Groovy):
assignee: Erich Eickmeyer (eeickmeyer) → nobody
Changed in ubuntustudio-controls (Ubuntu Focal):
assignee: Erich Eickmeyer (eeickmeyer) → nobody
tags: added: verification-done-focal
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntustudio-controls - 1.12.5

---------------
ubuntustudio-controls (1.12.5) groovy; urgency=medium

  [Len Ovens]
  * Check if device has a description before trying to use it (lp: #1872187)

 -- Erich Eickmeyer <email address hidden> Wed, 29 Apr 2020 08:34:59 -0700

Changed in ubuntustudio-controls (Ubuntu Groovy):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Please test proposed package

Hello Oliver, or anyone else affected,

Accepted ubuntustudio-controls into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ubuntustudio-controls/1.12.5~20.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in ubuntustudio-controls (Ubuntu Focal):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-focal
removed: verification-done-focal
Revision history for this message
Oliver K. (big-ghost-ok) wrote :

Test on Lenovo MIIX320-10ICR

1. Remove ubuntustudio-controls with: "dpkg --remove --force-depends ubuntustudio-controls"
2. Package removed with keeping the dependencies.

This is important! You lose all packages dedicated with "ubuntustudio-controls".
"ubuntustudio-installer, ubuntustdudio-desktop, etc.." if you not keep this dependencies.
Reinstalling the "ubuntustudio-controls" from proposed wan't reinstall them again.

3. Added "focal-proposed" to "/etc/apt/source.list". Update executed with: "apt-get update"
4. Created "/etc/apt/preferences.d/proposed-updates" (See EnableProposed Wiki)
5. Install from focal-proposed: "apt-get install ubuntustudio-controls/proposed"
6. "ubuntustudio-controls (1.12.5~20.04.1)" No problems with the installation.
7. Started "ubuntustudio-controls" from the desktop. Starts without errors.
8. Selected Audio Setup / Jack Master Settings
9. Jack Master Devices (no USB) dropdown list shows all audio devices as required.

Same testing on another machine where all audio drivers already had a description:
No problems with the new version "ubuntustudio-controls (1.12.5~20.04.1)".

Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

Oliver,

> 1. Remove ubuntustudio-controls with: "dpkg --remove --force-depends ubuntustudio-controls"

This wasn't necessary at all. Simply adding the focal-proposed repo followed by "sudo apt update && sudo apt upgrade" would've done the job.

Glad to hear this bug *in particular* was fixed.

tags: added: verification-done verification-done-focal
removed: verification-needed verification-needed-focal
Revision history for this message
Oliver K. (big-ghost-ok) wrote :

Erich,

you are right, I had the wrong order with the uninstall and install.

Thank you. (one problem less ;-)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntustudio-controls - 1.12.5~20.04.1

---------------
ubuntustudio-controls (1.12.5~20.04.1) focal; urgency=medium

  [Len Ovens]
  * Check if device has a description before trying to use it (lp: #1872187)

 -- Erich Eickmeyer <email address hidden> Wed, 29 Apr 2020 08:34:59 -0700

Changed in ubuntustudio-controls (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for ubuntustudio-controls has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

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.