MisterGuinness / gnome-shell-extension-sensors

Gnome shell extension: Shows CPU temperature, HDD temperature, voltage and fan RPM
0 stars 0 forks source link

Fedora 36: Unhandled Promise Rejection #70

Open MisterGuinness opened 2 years ago

MisterGuinness commented 2 years ago

I finally installed F36 on the miniPC, and accidentally tried to open the prefs when it was already open. The following appeared in the journal:

Unhandled promise rejection. To suppress this warning, add an error handler to your promise chain with .catch() or a try-catch block around your await expression. Stack trace of the failed promise:
    _promisify/proto[asyncFunc]@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:420:16
    openExtensionPrefs@resource:///org/gnome/shell/ui/extensionSystem.js:239:26
    openPrefs@resource:///org/gnome/shell/misc/extensionUtils.js:227:26
    _updateDisplay/<@/home/audrey/.local/share/gnome-shell/extensions/Sensors@MisterGuinness/extension.js:214:45
    activate@resource:///org/gnome/shell/ui/popupMenu.js:197:14
    vfunc_button_release_event@resource:///org/gnome/shell/ui/popupMenu.js:141:14
MisterGuinness commented 2 years ago

Did some more testing and noted that the error is only issued when there is a focus change to/from the first prefs window.

Also I tried wrapping the function call in a try catch, but the catch isn't invoked, even with it as an async/await callback.

MisterGuinness commented 2 years ago

Also appears in F37 Beta

Sep 19 19:27:02 localhost-live gnome-shell[9957]:

Unhandled promise rejection. To suppress this warning, add an error handler to your promise chain with .catch() or a try-catch block around your await expression. Stack trace of the failed promise:
_promisify/proto[asyncFunc]@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:441:16
openExtensionPrefs@resource:///org/gnome/shell/ui/extensionSystem.js:242:26
openPrefs@resource:///org/gnome/shell/misc/extensionUtils.js:253:26
_updateDisplay/<@/home/liveuser/.local/share/gnome-shell/extensions/Sensors@MisterGuinness/extension.js:214:45
activate@resource:///org/gnome/shell/ui/popupMenu.js:197:14
vfunc_button_release_event@resource:///org/gnome/shell/ui/popupMenu.js:141:14
MisterGuinness commented 1 year ago

Also appears in F37 official

Nov 19 21:51:55 localhost-live gnome-shell[7841]:

Unhandled promise rejection. To suppress this warning, add an error handler to your promise chain with .catch() or a try-catch block around your await expression. Stack trace of the failed promise:
  _promisify/proto[asyncFunc]@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:441:16
  openExtensionPrefs@resource:///org/gnome/shell/ui/extensionSystem.js:242:26
  openPrefs@resource:///org/gnome/shell/misc/extensionUtils.js:253:26
  _updateDisplay/<@/home/liveuser/.local/share/gnome-shell/extensions/Sensors@MisterGuinness/extension.js:214:45
  activate@resource:///org/gnome/shell/ui/popupMenu.js:197:14
  vfunc_button_release_event@resource:///org/gnome/shell/ui/popupMenu.js:141:14
MisterGuinness commented 1 year ago

Also appears in F38 Beta

Mar 16 06:30:06 localhost-live gnome-shell[10363]

Unhandled promise rejection. To suppress this warning, add an error handler to your promise chain with .catch() or a try-catch block around your a>
  _promisify/proto[asyncFunc]@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:430:16
  openExtensionPrefs@resource:///org/gnome/shell/ui/extensionSystem.js:254:26
  openPrefs@resource:///org/gnome/shell/misc/extensionUtils.js:255:26
  _updateDisplay/<@/home/liveuser/.local/share/gnome-shell/extensions/Sensors@MisterGuinness/extension.js:214:45
  activate@resource:///org/gnome/shell/ui/popupMenu.js:197:14
  vfunc_button_release_event@resource:///org/gnome/shell/ui/popupMenu.js:141:14
MisterGuinness commented 1 year ago

Also appears in F38 Official

Apr 23 03:02:51 localhost-live gnome-shell[7257]

Unhandled promise rejection. To suppress this warning, add an error handler to your promise chain with .catch() or a try-catch block around your await expression. Stack trace of the failed promise:
  _promisify/proto[asyncFunc]@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:448:16
  openExtensionPrefs@resource:///org/gnome/shell/ui/extensionSystem.js:254:26
  openPrefs@resource:///org/gnome/shell/misc/extensionUtils.js:255:26
  _updateDisplay/<@/home/liveuser/.local/share/gnome-shell/extensions/Sensors@MisterGuinness/extension.js:214:45
  activate@resource:///org/gnome/shell/ui/popupMenu.js:197:14
  vfunc_button_release_event@resource:///org/gnome/shell/ui/popupMenu.js:141:14