wingpanel-indicator-notifications icon indicating copy to clipboard operation
wingpanel-indicator-notifications copied to clipboard

Large amount of notifications causes wingpanel to crash

Open cowboycodur opened this issue 5 years ago • 10 comments
trafficstars

a large amount of notifications will cause wingpanel to crash and not load on reboot.

Is there a way we can clear notifications from where ever they are stored?

cowboycodur avatar Aug 24 '20 19:08 cowboycodur

can you clarify what you mean by "a large amount"? I can't seem to reproduce this

Closing as "incomplete" until this can be reproduced

You can manually clear the notification session file stored at ~/.cache/.notifications.session

danirabbit avatar Sep 30 '20 23:09 danirabbit

I was running backintime which will throw a notification for every file error rsync has, including "permission denied". It was easily over 1000, but im not sure of how many it would take to lock it up.

If you wanted to reproduce it, install backintime have it backup a folder with X number of files (I would start small) but change the permissions on the files so that backintime would get permission denied.

Also I have some notifications in my indicator right now, but I do not have the ~/.cache/.notifications.session file

cowboycodur avatar Sep 30 '20 23:09 cowboycodur

Okay yup, I can confirm for 2,000 notifications that we have a freeze here

danirabbit avatar Oct 01 '20 00:10 danirabbit

For the curious a quick way to reproduce is for n in {1..2000}; do notify-send test test; done

danirabbit avatar Oct 01 '20 00:10 danirabbit

Seems like https://github.com/elementary/wingpanel-indicator-notifications/pull/142 helps with this considerably

danirabbit avatar Oct 01 '20 01:10 danirabbit

@danrabbit This issues seems to still be a problem. I have loads of notifications that I just don't clear out from discord etc, and it has a severe hit on the performance of the wingpanel and plank. If I manage to clear the notifications service returns to normal. Won't it be possible to timebox notifications or clear them on reboot or something?

CliffBrown avatar Sep 14 '21 09:09 CliffBrown

Came here to report the same issue. This happens for me with the latest stable. It causes wingpanel to start very slowly at login and freeze completely sometime later.

Removing ~/.cache/.notifications.session does indeed fix it temporarily, but like @CliffBrown, I don't manually clear or otherwise process notifications.

I don't think timeboxing is a good solution though. It still allows for a burst of notifications within that time period to freeze wingpanel.

nielspeen avatar Nov 13 '21 23:11 nielspeen

can you clarify what you mean by "a large amount"? I can't seem to reproduce this

Closing as "incomplete" until this can be reproduced

You can manually clear the notification session file stored at ~/.cache/.notifications.session

With 4132 notifications my wing panel entered a permanent crash loop (OS v6.1) disabled all widgets on the right hand side of the panel.

FIX: rm ~/.cache/.notifications.session I have an urgent open case located here: https://github.com/elementary/wingpanel/issues/436

May I recommend an urgent fix for this issue either a manual 'clear notifications' from system settings or a self cleaning notifications.session file?

canopusStar avatar Jan 27 '22 01:01 canopusStar

#242 Should fix clearing notifications quickly.

jeremypw avatar May 08 '22 17:05 jeremypw

I still get this behavior on 6.1. This seems to happen because it shows each notification immediately. Could the panel be a bit more clever and use a timed interval to check whatever the delta in notification are only from the point of inquiry and cap it to about 50 with a cursor to hint at more? That way, even if 2,000 notifications came in, it wouldn't try to display them ALL at once. And some duplication of the notification could occur with hashing of the notification's serialized form versus repeating the same thing (especially if it's the same thing over and over).

(Originally published at: https://jacky.wtf/2022/10/GhqL)

jalcine avatar Oct 01 '22 05:10 jalcine