gnome-shell-extension-appindicator icon indicating copy to clipboard operation
gnome-shell-extension-appindicator copied to clipboard

4000+ times "Unhandled promise rejection" in journal every day

Open ngoeddel-openi opened this issue 7 months ago • 4 comments
trafficstars

Hi,

every time I wake my laptop up from suspend I get a few thousands of these messages in my journal which results in a lot of disk I/O and lack on the system. Here's just one of 4234 identical log lines from today.

Mär 21 09:57:05 tp-t14 gnome-shell[5651]: 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>
                                             argbToRgba/<@/usr/share/gnome-shell/extensions/[email protected]/appIndicator.js:644:64
                                             CancellablePromise@/usr/share/gnome-shell/extensions/[email protected]/promiseUtils.js:55:17
                                             argbToRgba@/usr/share/gnome-shell/extensions/[email protected]/appIndicator.js:644:22
                                             _createIconFromPixmap@/usr/share/gnome-shell/extensions/[email protected]/appIndicator.js:710:28
                                             _createIcon@/usr/share/gnome-shell/extensions/[email protected]/appIndicator.js:806:29
                                             _updateIconByType@/usr/share/gnome-shell/extensions/[email protected]/appIndicator.js:786:32
                                             _updateIcon@/usr/share/gnome-shell/extensions/[email protected]/appIndicator.js:833:24
                                             _invalidateIcon@/usr/share/gnome-shell/extensions/[email protected]/appIndicator.js:868:14
                                             _init/<@/usr/share/gnome-shell/extensions/[email protected]/appIndicator.js:466:18
                                             _emit@resource:///org/gnome/gjs/modules/core/_signals.js:114:47
                                             _checkIfReady@/usr/share/gnome-shell/extensions/[email protected]/appIndicator.js:126:18
                                             checkIfReadyChanged@/usr/share/gnome-shell/extensions/[email protected]/appIndicator.js:308:50
                                             _onPropertiesChanged/<@/usr/share/gnome-shell/extensions/[email protected]/appIndicator.js:316:17
                                             _onPropertiesChanged@/usr/share/gnome-shell/extensions/[email protected]/appIndicator.js:312:15

I am running GNOME Shell 42.9 with Xorg on Ubuntu 22.04.5 LTS

ngoeddel-openi avatar Mar 21 '25 12:03 ngoeddel-openi

Which version of the appindicator extension are you using?

I had some issue on my PopOS installation, which is also based on Ubuntu 22.04 LTS. Their jammy APT repository had an appindicator version that was outdated by a bit, so I ended up installing the latest appindicator extension that still supports GNOME 42 from this GitHub repo manually. That would be v53. Maybe this will solve your issue too?

Edit: I was a bit unclear in my wording. The issue I had was something different, but knowing which version you use or at least updating to the newest supported version would be a good first step. My issue was that for some applications double-clicking the icon wouldn't open the program.

philg-dev avatar Mar 21 '25 12:03 philg-dev

Which version of the appindicator extension are you using? Good question. It's the one that comes with the distribution. I tried to find the version number in /usr/share/gnome-shell/extensions/[email protected] but even in metadata.json there is no version number to find.

But apt policy gnome-shell-extension-appindicator shows this:

gnome-shell-extension-appindicator:
  Installed: 42-2~fakesync1
  Candidate: 42-2~fakesync1
  Version table:
 *** 42-2~fakesync1 500
        500 http://de.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
        500 http://de.archive.ubuntu.com/ubuntu jammy/main i386 Packages
        100 /var/lib/dpkg/status

So it looks it is 11 major versions behind. 🤔

ngoeddel-openi avatar Mar 21 '25 15:03 ngoeddel-openi

Yeah, one of the reasons why I ditched PopOS for my machines is that it's centuries behind on many releases and the fact that it now even lags behind ubuntu by a lot due to the development of the COSMIC desktop environment, it just wasn't worth the hassle for me.

Since you say you're on ubuntu, you might want to do a full distro upgrade. 24.04 has been out for almost a year now, which is also a LTS version, just like your 22.04. You might even consider going for the non-LTS release 24.10 if that's for you.

But if you feel like installing V53 manually, just like I did, you can just do so as well. Checkout the code from the tag (or download the source ZIP from the release page), then run meson and ninja and you're pretty much set. Then you just have to disable the ubuntu-native version of appindicator in your "Extensions" GUI application (or via terminal gnome-extensions command) and activate the new version and you're good to go. Don't forget to restart your gnome-shell after installation for the extension to be properly listed so you can enable it (ALT + F2 with the "r" command).

The installation is described in the Readme of the repo as well.

philg-dev avatar Mar 21 '25 20:03 philg-dev

I reinstalled and reconfigured Ubuntu 24.04 on my private machine because an upgrade from Ubuntu 22.04 failed. The issue here happens on my work machine and until now I was not sure if I should upgrade it, because if it would also fail and I have to completely reinstall that machine, it surely would be cost whole work day because I never made a list of all the packages, libraries and configuration I need. 🙈 So I might try to install the latest version of this add-on manually first.

NicolasGoeddel avatar Mar 22 '25 11:03 NicolasGoeddel

If this is an ubuntu-specific issue, please report it in launchpad.net, so we can track better the specific version, while here we only target upstream that IMHO should be fixed.

And commits such as b1db0b68361fe36ff4cd6f8a3349457399bd33c8 should reduce warnings even more

3v1n0 avatar May 06 '25 18:05 3v1n0