Kontact freezes upon starting

After some recent updates Kontact (and Kmail for that matter) have started freezing when attempting to open them.

After a while if I attempt to click around within the window it will offer to terminate the process.

I’m not sure if it was after the latest Nvidia package, or the latest Plasma package.

Details:

Operating System: Arch Linux
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.3
Kernel Version: 6.8.4-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ i7-8700K CPU @ 3.70GHz
Memory: 15.5 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1070/PCIe/SSE2

Graphics driver: nvidia-dkms 550.67-1

Kontact version 24.02.1-1

I can also add the gdb debug if that will help.

Hi dcalvino,
What is the status of Akonadi? Please post the status of “akonadictl status” (as user).

This is what it should look like when Akonadi is running correctly.

$ akonadictl status
Akonadi Control: running
Akonadi Server: running
Akonadi Server Search Support: available (Remote Search)
Available Agent Types: akonadi_akonotes_resource, akonadi_archivemail_agent, akonadi_birthdays_resource, akonadi_contacts_resource, akonadi_davgroupware_resource, akonadi_ews_resource, akonadi_ewsmta_resource, akonadi_followupreminder_agent, akonadi_google_resource, akonadi_ical_resource, akonadi_icaldir_resource, akonadi_imap_resource, akonadi_indexing_agent, akonadi_maildir_resource, akonadi_maildispatcher_agent, akonadi_mailfilter_agent, akonadi_mailmerge_agent, akonadi_mbox_resource, akonadi_migration_agent, akonadi_mixedmaildir_resource, akonadi_newmailnotifier_agent, akonadi_notes_agent, akonadi_notes_resource, akonadi_openxchange_resource, akonadi_pop3_resource, akonadi_sendlater_agent, akonadi_tomboynotes_resource, akonadi_unifiedmailbox_agent, akonadi_vcard_resource, akonadi_vcarddir_resource

Greetings
Michael

Hi Michael,

Akonadi Control: running
Akonadi Server: running
Akonadi Server Search Support: available (Remote Search)
Available Agent Types: akonadi_akonotes_resource, akonadi_archivemail_agent, akonadi_birthdays_resource, akonadi_contacts_resource, akonadi_davgroupware_resource, akonadi_etesync_resource, akonadi_ews_resource, akonadi_ewsmta_resource, akonadi_followupreminder_agent, akonadi_google_resource, akonadi_ical_resource, akonadi_icaldir_resource, akonadi_imap_resource, akonadi_indexing_agent, akonadi_knut_resource, akonadi_kolab_resource, akonadi_maildir_resource, akonadi_maildispatcher_agent, akonadi_mailfilter_agent, akonadi_mailmerge_agent, akonadi_mbox_resource, akonadi_migration_agent, akonadi_mixedmaildir_resource, akonadi_newmailnotifier_agent, akonadi_notes_agent, akonadi_notes_resource, akonadi_openxchange_resource, akonadi_pop3_resource, akonadi_sendlater_agent, akonadi_tomboynotes_resource, akonadi_unifiedmailbox_agent, akonadi_vcard_resource, akonadi_vcarddir_resource

Seems to be running.

Thank you,

@dcalvino:

Please check the number of external files, external parts and, the number of collections and items without a RID and, the number of dirty items:

> akonadictl fsck 2>&1 | grep -iE 'found|no RID'

Before KDE Plasma 6, the following “no RID” entries were “normal” –

Collection "Search" (id: 1) has no RID.
Collection "OpenInvitations" (id: 96) has no RID.
Collection "DeclinedInvitations" (id: 97) has no RID.
Collection "Letzte Suche" (id: 832) has no RID.
Found 4 collections without RID.
Found 0 items without RID.
Found 0 dirty items.

Hi Franken,

akonadictl fsck 2>&1 | grep -iE 'found|no RID'                                                                                                                                                 INT ✘ 
Found 24822 external files.
Found 24767 external parts.
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/38/36738_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/03/57303_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/45/74645_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/20/86720_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/99/36699_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/78/36678_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/87/36687_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/84/36684_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/92/36592_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/17/36717_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/55/56255_r6
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/93/36693_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/09/36609_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/23/36723_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/88/36588_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/02/36702_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/87/42387_r5
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/44/74644_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/77/36777_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/03/36603_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/09/56309_r2
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/32/69432_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/83/36783_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/91/36591_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/99/72599_r1
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/01/88401_r1
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/86/36786_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/37/69437_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/33/69433_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/33/36633_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/80/56280_r6
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/13/57013_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/34/69434_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/97/72597_r1
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/97/36597_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/19/86719_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/20/36720_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/89/36589_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/12/36612_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/00/36600_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/72/36672_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/98/36598_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/08/36708_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/33/94833_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/39/36639_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/71/56971_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/95/36595_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/31/72931_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/41/36741_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/32/94832_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/86/36586_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/62/42762_r1
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/84/51884_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/06/36606_r0
Found unreferenced external file: /home/damian/.local/share/akonadi/file_db_data/94/36594_r0
Moved 55 unreferenced files to lost+found.
Found 0 parts to be moved to external files
Found 0 parts to be moved to database
Collection "Search" (id: 1) has no RID.
Found 1 collections without RID.
Item "50722" in collection "137" has no RID.
Item "50723" in collection "137" has no RID.
Item "50724" in collection "137" has no RID.
Found 3 items without RID.
Found 0 dirty items.

After a reboot the log is a bit reduced:

 akonadictl fsck 2>&1 | grep -iE 'found|no RID'                                                                                                                                                     ✔ 
Found 24781 external files.
Found 24781 external parts.
Found no unreferenced external files.
Found 0 parts to be moved to external files
Found 0 parts to be moved to database
Collection "Search" (id: 1) has no RID.
Found 1 collections without RID.
Item "50722" in collection "137" has no RID.
Item "50723" in collection "137" has no RID.
Item "50724" in collection "137" has no RID.
Found 3 items without RID.
Found 0 dirty items.

Thank you,

@dcalvino:

You can try –

> akonadictl vacuum

And then, after that completes, the “fsck” (Check (and attempt to fix) consistency of the internal storage) again.

If that doesn’t fix the “Item xxx in collection yyy has no RID.” messages then you’ll have install “akonadiconsole” to work out precisely which Items are being referenced.

Hi Franken,

The entries persist after the vacuum,

Found 24825 external files.
Found 24825 external parts.
Found no unreferenced external files.
Found 0 parts to be moved to external files
Found 0 parts to be moved to database
Collection "Search" (id: 1) has no RID.
Found 1 collections without RID.
Item "50722" in collection "137" has no RID.
Item "50723" in collection "137" has no RID.
Item "50724" in collection "137" has no RID.
Found 3 items without RID.
Found 0 dirty items.

I already had akonadiconsole installed from some issue some years back. And can you believe it does the same thing as kmail or kontact? Opens and freezes, then has to be terminated.

Thank you,

Furthermore, console messages when starting it from console show this possible corruption issue.

akonadiconsole                                                                                                                                                                              ✔ 
Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/bin/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/lib/qt6/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/lib/qt6/qtwebengine_dictionaries'
Please register the custom scheme 'cid' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
org.kde.pim.akonadi_search_xapian: Xapian Database corrupted at  "/home/damian/.local/share/akonadi/search_db/email/"
 stores  4
qt.gui.imageio: libpng warning: iCCP: CRC error
zsh: killed     akonadiconsole

@dcalvino:

It seems that, in collection “137” (whatever that is – possibilities are either a local mail folder or, a local calendar) there is an Akonadi database issue with 3 items.

But, when akonadiconsole is misbehaving when starting, you’ll have to reinstall it plus, all the dependencies it has.

  • You’re using ArchLinux – the package manager has an operation which checks package dependencies.

Did that, reinstalled akonadiconsole and dependencies but it happened again.

This time it caused plasmashell to crash and the bug report system came up and was able to file this bug report with it:

https://bugs.kde.org/show_bug.cgi?id=485331

Tried again and it just froze without making plasmashell crash.

Thanks,

After the latest updates yesterday (24.02.1-1 → 24.02.2-1) and (6.6.3-1 → 6.7.0-1) for the qt6 stuff and a reboot it seems to work now.

My unified folders and setting for acting on unread folders were all messed up, but that could have been me deleting stuff prior trying to tshoot this.