Bug 508672 - Kontact crash on startup
Summary: Kontact crash on startup
Status: REPORTED
Alias: None
Product: kontact
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-24 13:56 UTC by Sylens
Modified: 2025-08-25 14:47 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
drkonqi log (103.68 KB, text/plain)
2025-08-24 13:56 UTC, Sylens
Details
another log (26.29 KB, text/plain)
2025-08-24 15:32 UTC, Sylens
Details
and another log (4.12 KB, text/plain)
2025-08-24 15:33 UTC, Sylens
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sylens 2025-08-24 13:56:20 UTC
SUMMARY
Recently Kontact started to crash upon startup, to a point I have to kill the process manually. I did a fresh user with a clean /home, the crash doesnt happen. Then when I attach google account to it, it starts the crashing again. This never happened before, only lately, with recent updates

STEPS TO REPRODUCE
1. Launch Kontact, login to your email provider, where many datas are (actual many calendar events, many contacts, many mails, etc to stress the underlying akonadi)
2. Close Kontact
3. Relaunch Kontact
4. Kontact crashes / freezes

OBSERVED RESULT
crash.

EXPECTED RESULT
shouldn't crash.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.1
Kernel Version: 6.15.10-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-6500 CPU @ 3.20GHz
Memory: 16 GiB of RAM (15.6 GiB usable)
Graphics Processor: NVIDIA GeForce GTX 1050 Ti
Manufacturer: MSI
Product Name: MS-7972
System Version: 2.0
Comment 1 Sylens 2025-08-24 13:56:47 UTC
Created attachment 184396 [details]
drkonqi log
Comment 2 Allen Winter 2025-08-24 14:38:24 UTC
the backtrace narrows down where the crash happens , but not quite enough to find a fix.

is there any chance you could find the incidence in your calendar that's causing the crash and sending that to me (or attaching here)?
you can redact the contents but I do need to see the recurrence info
Comment 3 Sylens 2025-08-24 15:32:10 UTC
(In reply to Allen Winter from comment #2)
> the backtrace narrows down where the crash happens , but not quite enough to
> find a fix.
> 
> is there any chance you could find the incidence in your calendar that's
> causing the crash and sending that to me (or attaching here)?
> you can redact the contents but I do need to see the recurrence info

Hello Allen, and thanks for your quick reply. Unfortunately I can't provide anything else, as the program is so unresponsive right at the startup, that I can't do anything within it and it just only possible to come out by killing it. Even If I started it through the terminal, it is so very frozen that even pressing CTRL+C within the terminal can't terminate the process. 

However, I think it's not related to calendar by any means, but instead related to online accounts somehow. For example, I opened the standalone Korganizer and there, I can see my calendar, and that program doesn't freeze out. Same applies to Kmail: it works. KAddressBook also works. 

Only Kontact is freezing out, I guess cause it is a unification for all the above mentioned programs.

FYI there is a seemingly similiar issue, that was created not long ago, like 4months ago: https://bugs.kde.org/show_bug.cgi?id=502578

I launched again Kontact, and now DrKonqi provided another kind of log, its a bit different from the previous, I pressed on "download debug symbols" or something like that, cause it said it can provide better info for bugreporting, and it says it went from 1/3 star bugreport quality to 3/3 -  I attached that now as well, hope it helps somehow..
Comment 4 Sylens 2025-08-24 15:32:47 UTC
Created attachment 184399 [details]
another log
Comment 5 Sylens 2025-08-24 15:33:07 UTC
Created attachment 184400 [details]
and another log
Comment 6 Allen Winter 2025-08-24 15:38:47 UTC
oh, I may have misread the backtrace

did you try the `export QT_QPA_PLATFORM=xcb` trick?
this maybe the nvidia and wayland interaction problem
Comment 7 Sylens 2025-08-24 15:50:24 UTC
(In reply to Allen Winter from comment #6)
> oh, I may have misread the backtrace
> 
> did you try the `export QT_QPA_PLATFORM=xcb` trick?
> this maybe the nvidia and wayland interaction problem

Its okay. I didn't try it, but now I tried it, and it does not work still. I don't think its an nvidia + wayland interaction problem, because as I said when I created a new user profile, this simulating a totally new and fresh /home folder for it, where no akonadi, no .config for the said apps, no .local nor .cache resides - and this way, Kontact could start up as usual. The bug only happens, as I said, after logging into account, that Kontact throws up with the account wizard, at the very first startup. After account is attached, the crash keeps happening on the said freshly made profile aswell, narrowing down the problem to something happening either in the akonadi database, or some rogue bug in the data files. And only happens in kontact, where all the other programs are unified here. 

If I launch the separate applications (korganizer, kmail, kaddressbook etc-etc..) as I mentioned earlier, everything just works as intended.

Also a plus note, of why it can't be Nvidia, (and no offense, but it is starting to get tiresome, that everyone is constantly blaming Nvidia) is that this exact same bug happens on my Mom's HP AMD (!!!) based (both GPU and CPU) is experiencing the same bug. 

Additionally nonetheless, I have a Lenovo T430 aswell, which is pure Intel based, and this bug is present there aswell.

As I said, this bug had risen recently, everything was fine 2-3 months ago. I guess its the new 25.08 upgrades
Comment 8 Sylens 2025-08-25 14:47:42 UTC
Any progress?