Rayzeq / quick-settings-audio-panel

An gnome shell extension to add a new panel to the Quick Settings for sound related stuff
https://extensions.gnome.org/extension/5940/quick-settings-audio-panel/
GNU General Public License v3.0
80 stars 8 forks source link

Error on enabling extension [TypeError: card is null] #51

Closed lorencinibrdev closed 3 months ago

lorencinibrdev commented 3 months ago

Describe the bug When manually enabling the extension, or when logging into the desktop (automatic enable), i sometimes get the following error, resulting in the extension not being enabled at all:

Extension quick-settings-audio-panel@rayzeq.github.io: TypeError: card is null

Compatibility Initially, i thought the error was due to another extension I'm using (Quick Setting Audio Devices Renamer), but i get the error even when disabling it.

Below is the list of extensions i have:

Screenshots image

Desktop (please complete the following information):

Additional context Stack trace (From Logs application):

Extension quick-settings-audio-panel@rayzeq.github.io: TypeError: card is null

Stack trace:
  SinkVolumeSlider@file:///home/TheLorencini/.local/share/gnome-shell/extensions/quick-settings-audio-panel@rayzeq.github.io/libs/widgets.js:153:27
  _stream_added@file:///home/TheLorencini/.local/share/gnome-shell/extensions/quick-settings-audio-panel@rayzeq.github.io/libs/widgets.js:81:24
  SinkMixer@file:///home/TheLorencini/.local/share/gnome-shell/extensions/quick-settings-audio-panel@rayzeq.github.io/libs/widgets.js:60:18
  _create_sink_mixer@file:///home/TheLorencini/.local/share/gnome-shell/extensions/quick-settings-audio-panel@rayzeq.github.io/extension.js:258:28
  _refresh_panel@file:///home/TheLorencini/.local/share/gnome-shell/extensions/quick-settings-audio-panel@rayzeq.github.io/extension.js:162:26
  enable@file:///home/TheLorencini/.local/share/gnome-shell/extensions/quick-settings-audio-panel@rayzeq.github.io/extension.js:72:14
  async*_callExtensionEnable@resource:///org/gnome/shell/ui/extensionSystem.js:266:38
  loadExtension@resource:///org/gnome/shell/ui/extensionSystem.js:478:32
  async*_loadExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:786:24
  async*_enableAllExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:792:48
  _sessionUpdated@resource:///org/gnome/shell/ui/extensionSystem.js:827:20
  async*init@resource:///org/gnome/shell/ui/extensionSystem.js:76:14
  _initializeUI@resource:///org/gnome/shell/ui/main.js:303:22
  start@resource:///org/gnome/shell/ui/main.js:175:11
  @resource:///org/gnome/shell/ui/init.js:12:47
  @resource:///org/gnome/shell/ui/init.js:21:20