Bug 481861 - akonadi_google_resource spawns too many threads
Summary: akonadi_google_resource spawns too many threads
Status: REPORTED
Alias: None
Product: kdepim
Classification: Applications
Component: general (show other bugs)
Version: 5.24.4
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-26 14:40 UTC by Jakub Holý
Modified: 2024-02-29 01:27 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub Holý 2024-02-26 14:40:45 UTC
SUMMARY
I have added my Google calendar to KOrganizer. I can see the thread count for akonadi_google_resource keeps growing.
I have no idea where to find logs for that. Eventually, the whole system becomes unusable. It has caused me a lot of trouble, to find this culprit.

STEPS TO REPRODUCE


OBSERVED RESULT
The thread count keeps growing, until limits are reached. I have seen about 6500 threads, but then `akonadictl restart` helped.


$ LANG=POSIX date;ps -o thcount,pid,command 29921
Thu Feb 22 02:36:19 CET 2024
THCNT   PID COMMAND
   15 29921 /usr/bin/akonadi_google_resource --identifier akonadi_google_resource_0
$ LANG=POSIX date;ps -o thcount,pid,command 29921
Thu Feb 22 02:38:39 CET 2024
THCNT   PID COMMAND
   22 29921 /usr/bin/akonadi_google_resource --identifier akonadi_google_resource_0
$ LANG=POSIX date;ps -o thcount,pid,command 29921
Thu Feb 22 09:30:28 CET 2024
THCNT   PID COMMAND
   86 29921 /usr/bin/akonadi_google_resource --identifier akonadi_google_resource_0
$ LANG=POSIX date;ps -o thcount,pid,command 29921
Thu Feb 22 11:21:41 CET 2024
THCNT   PID COMMAND
  112 29921 /usr/bin/akonadi_google_resource --identifier akonadi_google_resource_0
$ LANG=POSIX date;ps -o thcount,pid,command 29921
Thu Feb 22 17:48:06 CET 2024
THCNT   PID COMMAND
  186 29921 /usr/bin/akonadi_google_resource --identifier akonadi_google_resource_0
$ LANG=POSIX date;ps -o thcount,pid,command 29921
Sun Feb 25 23:27:45 CET 2024
THCNT   PID COMMAND
  996 29921 /usr/bin/akonadi_google_resource --identifier akonadi_google_resource_0
$ LANG=POSIX date;ps -o thcount,pid,command 29921
Mon Feb 26 15:13:32 CET 2024
THCNT   PID COMMAND
 1164 29921 /usr/bin/akonadi_google_resource --identifier akonadi_google_resource_0


EXPECTED RESULT
The thread count stops growing - at some reasonable point.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Leap 15.4
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.14.21-150400.24.100-default (64-bit)
Graphics Platform: X11
Processors: 6 × Intel® Core™ i5-8500 CPU @ 3.00GHz
Memory: 61.7 GiB of RAM
Graphics Processor: Mesa DRI Intel® UHD Graphics 630

ADDITIONAL INFORMATION
Comment 1 Jakub Holý 2024-02-29 01:27:13 UTC
possible cause could be following:


org.kde.kgapi: Unauthorized. Access token has expired or is invalid.
org.kde.pim.google: Got error: KGAPI2::TaskListFetchJob(0x56095ec28390) "Neplatné ověření."
org.kde.kgapi: Unauthorized. Access token has expired or is invalid.
org.kde.pim.google: Got error: KGAPI2::CalendarFetchJob(0x56095ec27580) "Neplatné ověření."
org.kde.kgapi: Unauthorized. Access token has expired or is invalid.
org.kde.pim.google: Got error: KGAPI2::TaskListFetchJob(0x56095ec63cf0) "Neplatné ověření."
org.kde.kgapi: Unauthorized. Access token has expired or is invalid.
org.kde.pim.google: Got error: KGAPI2::CalendarFetchJob(0x56095ec62000) "Neplatné ověření."
org.kde.kgapi: Unauthorized. Access token has expired or is invalid.
org.kde.pim.google: Got error: KGAPI2::TaskListFetchJob(0x56095ec9c230) "Neplatné ověření."
org.kde.kgapi: Unauthorized. Access token has expired or is invalid.
org.kde.pim.google: Got error: KGAPI2::CalendarFetchJob(0x56095eca4180) "Neplatné ověření."
org.kde.kgapi: Unauthorized. Access token has expired or is invalid.
org.kde.pim.google: Got error: KGAPI2::TaskListFetchJob(0x56095ecf0180) "Neplatné ověření."
org.kde.kgapi: Unauthorized. Access token has expired or is invalid.
org.kde.pim.google: Got error: KGAPI2::CalendarFetchJob(0x56095ecb3ea0) "Neplatné ověření."


however, this does not excuse the count of threads