ubuntustudio-controls crash if card with no id

Bug #1841451 reported by Nil
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntustudio-controls (Ubuntu)
Fix Released
Undecided
Len Ovens

Bug Description

My system happens to have a card

`/proc/asound/card1`

 without `id` folder, as a result ubuntustudio-controls crashes with the following error

```
$ ubuntustudio-controls
/usr/bin/ubuntustudio-controls:15: DeprecationWarning: Importing dbus.glib to use the GLib main loop with dbus-python is deprecated.
Instead, use this sequence:

    from dbus.mainloop.glib import DBusGMainLoop

    DBusGMainLoop(set_as_default=True)

  import dbus.glib
Traceback (most recent call last):
  File "/usr/bin/ubuntustudio-controls", line 597, in <module>
    us = UbuntuStudioControls()
  File "/usr/bin/ubuntustudio-controls", line 274, in __init__
    with open("/proc/asound/card"+str(x)+"/id", "r") as card_file:
FileNotFoundError: [Errno 2] No such file or directory: '/proc/asound/card1/id'
```

Revision history for this message
Nil (ngeiswei) wrote :

I forgot to provide information on my system

UbuntuStudio: 19.04
ubuntustudio-controls: 1.7.1

affects: ubuntustudio-controls → ubuntustudio-controls (Ubuntu)
Changed in ubuntustudio-controls (Ubuntu):
status: New → In Progress
assignee: nobody → Len Ovens (len-ovenwerks)
Changed in ubuntustudio-controls (Ubuntu):
status: In Progress → Fix Committed
status: Fix Committed → In Progress
Revision history for this message
Len Ovens (len-ovenwerks) wrote :

Fix has been tested

Changed in ubuntustudio-controls (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

---------------
ubuntustudio-controls (1.11) eoan; urgency=medium

  [ Len Ovens ]
  * Fix devices with no name cause crash (LP: #1841451)
  * Raise version check for autojack to make sure new one is started

 -- Erich Eickmeyer <email address hidden> Tue, 27 Aug 2019 09:50:10 -0500

Changed in ubuntustudio-controls (Ubuntu):
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.