← Back to team overview

ubuntustudio-bugs team mailing list archive

[Bug 1841451] Re: ubuntustudio-controls crash if card with no id

 

** Project changed: ubuntustudio-controls => ubuntustudio-controls
(Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Studio Bugs, which is subscribed to ubuntustudio-controls.
Matching subscriptions: UbuntuStudio Bugs, ubuntustudio-bugs
https://bugs.launchpad.net/bugs/1841451

Title:
  ubuntustudio-controls crash if card with no id

Status in ubuntustudio-controls package in Ubuntu:
  In Progress

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'
  ```

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntustudio-controls/+bug/1841451/+subscriptions


References