Bug 442089 - Tens of "error while trying to delete calendar item" popups appear randomly
Summary: Tens of "error while trying to delete calendar item" popups appear randomly
Status: CONFIRMED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Google Resource (show other bugs)
Version: GIT (master)
Platform: Manjaro Linux
: NOR normal with 50 votes (vote)
Target Milestone: ---
Assignee: Daniel Vrátil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-06 18:32 UTC by Riccardo Robecchi
Modified: 2022-02-22 07:53 UTC (History)
15 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot of the issue (52.37 KB, image/png)
2021-09-06 18:32 UTC, Riccardo Robecchi
Details
Akonadi log (8.88 KB, text/x-log)
2021-09-06 18:38 UTC, Riccardo Robecchi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Riccardo Robecchi 2021-09-06 18:32:15 UTC
Created attachment 141340 [details]
Screenshot of the issue

SUMMARY
At seemingly random times, tens upon tens of popups stating "error while trying to delete calendar item" appear. This seems to be connected with events changing in a linked Google calendar, but this change does not trigger the bug every time it happens.

STEPS TO REPRODUCE
1. ?

OBSERVED RESULT
Tens of popups appear.

EXPECTED RESULT
A single popup, if truly necessary, appears and informs the user of what is happening beyond a very generic error message that makes it impossible to understand what's wrong.

SOFTWARE/OS VERSIONS
Linux: KDE neon
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Comment 1 Riccardo Robecchi 2021-09-06 18:38:27 UTC
Created attachment 141341 [details]
Akonadi log

After posting the above, I tried to open KOrganizer and found out it was not displaying my Google calendars at all. I had to stop Akonadi and then start it again for them to appear in the list (they were all deselected), but I then had to open and close KOrganizer two times in order for it to correctly display them.
I'm attaching the Akonadi log.
Comment 2 sparhawk 2021-10-05 07:43:22 UTC
FWIW I get hundreds of popups. I'm sitting there closing them, giving my mouse finger RSI. Sometimes it crashes korganizer, sometimes it crashes the whole X session. Is there a way to close them all at once, e.g. killing some process?

Linux: Arch Linux
KDE Plasma: 5.22.5
KDE Frameworks: 5.86.0
Qt: 5.15.2+kde+r228
Comment 3 Riccardo Robecchi 2021-10-08 19:06:48 UTC
(In reply to sparhawk from comment #2)
> FWIW I get hundreds of popups. I'm sitting there closing them, giving my
> mouse finger RSI. Sometimes it crashes korganizer, sometimes it crashes the
> whole X session. Is there a way to close them all at once, e.g. killing some
> process?
> 
> Linux: Arch Linux
> KDE Plasma: 5.22.5
> KDE Frameworks: 5.86.0
> Qt: 5.15.2+kde+r228

I think you can close them all by simply terminating the KOrganizer process.
Comment 4 sparhawk 2021-10-09 01:23:48 UTC
This seems to be occurring more regularly now, maybe twice a week. It happened two days ago, and indeed killing `korganizer` removed all the popups. However, yesterday I had ~100 popups, and my system froze for at least 2 minutes. Eventually I regained control, but this time killing `korganizer` had no effect. I also tried `akonadictl restart`, but this didn't help this time.
Comment 5 Riccardo Robecchi 2021-10-09 10:57:29 UTC
It just happened to me. The process you can terminate to remove all messages is korgac.
Comment 6 sparhawk 2021-10-10 04:32:40 UTC
Weird. This happened again to me today. I tried killing korgac, but that didn't do anything. However, *today* killing korganizer worked again.

Also, I should note that I get this error on three different systems. Not all of them have a Google calendar linked, so it's probably not specific to that either. (FWIW all do have Nextcloud calendars linked.)
Comment 7 Brendon Higgins 2021-11-01 22:47:34 UTC
I'm getting this lately, too (on Debian testing). Sometimes it's 4 windows, sometimes it's 63. To save RSI, I've found that if you have grouping enabled on the taskbar, you can close a bunch at once by right-clicking on the taskbar group. Doesn't close all of them, but for 63 windows it only takes about 6 clicks.
Comment 8 sparhawk 2021-11-02 02:54:45 UTC
Most recently, killing `korganizer` closed half the windows, and killing `korgac` killed the other half. Both processes (re)start when you launch korganizer anyway, so I figure that's fine.
Comment 9 Damian C 2021-11-05 04:07:48 UTC
Experiencing the same issue.

Running korganizer within kontact.

The frequency of the issue has increased after getting the latest version of the app: korganizer-21.08.3-1

When it does happen I get hundreds of pop ups and the system stops responding. I can only close the app by switching to a tty (Ctrl + Alt + F2) and killing it.
The massive amount of pop ups causes the k11 process to use 100% of CPU.
Perhaps I'm seeing more messages than most as my google calendar has got subscriptions from a few other calendars from other people.

The very last time it happened today I was not interacting with korzganizer at all, rather browsing the internet.
Also, the very last time it happened I had no choice but to issue sudo reboot from the tty as the system would not come back from the freeze/stuck.

Since it happened twice today I have removed the calendar for now.

Operating System: Manjaro Linux
KDE Plasma Version: 5.23.2
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2
Kernel Version: 5.14.16-1-MANJARO (64-bit)
Graphics Platform: X11
Processors: 12 × Intel® Core™ i7-8700K CPU @ 3.70GHz
Memory: 15,5 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1070/PCIe/SSE2
Comment 10 Juan Simón 2021-11-27 14:05:20 UTC
Operating System: Arch Linux
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2
Kernel Version: 5.15.5-zen1-1-zen (64-bit)
Graphics Platform: Wayland

Same problem.
Comment 11 Claudius 2021-12-03 17:16:53 UTC
Same issue here. When it happens all of my Google Calendar items are missing.

Opening the Google Groupware config dialog in Korganizer and pressing OK or Apply without changing anything makes everything reappear.
Comment 12 Witko 2022-01-10 10:45:37 UTC
Hi All, 
this also happens to me - after this happens the calendars are not visible in korganizer anymore. After restarting they are shown again. It makes the KOrganizer unusable.
I have 2 google resources. There are Warnings in 
- One fails with Error while handling command DeleteItems
- There is Failed to retrieve collection for sync: "Collection does not exist" - for Contacts it would seem
- There is also Bad Request, Google replied '"Contacts API is being deprecated....

Is there anything i can do to help?
Thanks!
Comment 13 Michael D 2022-01-18 18:35:49 UTC
Same issue recently started appearing for me as well. Is there any way to kill all the messages with one command?
Comment 14 sparhawk 2022-01-18 22:59:04 UTC
(In reply to Michael D from comment #13)
> Same issue recently started appearing for me as well. Is there any way to
> kill all the messages with one command?

$ pkill korganizer ; pkill korgac ; korganizer & disown
Comment 15 Sławek 2022-01-29 07:33:47 UTC
I also experienced that error many times. Recently I proposed some workaround for that https://invent.kde.org/pim/akonadi-calendar/-/merge_requests/11 - I don't know Akonadi code at all so it's really hard for me to find quickly better solution but I hope this can help to get rid of that problem. Please check and let me know what do You think about it.