Bug 336205 - kmail2 crashes after startup and all windows was opened
Summary: kmail2 crashes after startup and all windows was opened
Status: CONFIRMED
Alias: None
Product: kmail2
Classification: Applications
Component: misc (show other bugs)
Version: 5.3.0
Platform: openSUSE Linux
: NOR major
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-14 10:11 UTC by Ulf Bartholomäus
Modified: 2016-10-17 19:55 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot from GUI error message (195.37 KB, image/png)
2016-09-25 19:26 UTC, Ulf Bartholomäus
Details
debug output from KMail (9.94 KB, text/plain)
2016-10-17 19:29 UTC, Thiago Jung Bauermann
Details
backtrace from gdb (9.81 KB, text/plain)
2016-10-17 19:32 UTC, Thiago Jung Bauermann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ulf Bartholomäus 2014-06-14 10:11:17 UTC
kmail2 crashes after startup and all windows was opened.

Error message on CLI:
kmail2(5376)/libakonadi Akonadi::SpecialCollectionsRequestJob::slotResult: Failed SpecialCollectionsRequestJob::slotResult "Could not create collection trash resourceId: 36" 
kmail2(5376) MailCommon::Kernel::emergencyExit: "Im E-Mail-Programm ist ein schwerwiegender Fehler aufgetreten. Das Programm wird beendet.
Die Fehlermeldung lautet:
Could not create collection trash resourceId: 36" 
 ~StorageServiceJobConfigPrivate

kmail -v
Qt: 4.8.6
KDE: 4.13.2
KMail: 4.13.2

This error is after a shout down available - and I can't find a solution in the internet.

Reproducible: Always




I can't use kmail(2) and kontact any more :-(
Akonadi is fine running and new messages are shown in the notification area
Comment 1 Ulf Bartholomäus 2014-06-14 10:13:44 UTC
zypper lr
#  | Alias                            | Name                                                             | Aktiviert | Aktualisieren
---+----------------------------------+------------------------------------------------------------------+-----------+--------------
 1 | KDE_SC_Extra                     | KDE SC Extra                                                     | Ja        | Ja           
 2 | KDE_SC_Unstable:Extra            | KDE SC Unstable:Extra                                            | Ja        | Ja           
 3 | KDE_SC_packages                  | KDE SC packages                                                  | Ja        | Ja           
 4 | Tumbleweed                       | Tumbleweed                                                       | Ja        | Ja           
 5 | Tumbleweed fuse exfat            | Tumbleweed fuse exfat                                            | Ja        | Ja           
 6 | download.opensuse.org-Education  | openSUSE BuildService - Bildungswesen                            | Ja        | Ja           
 7 | download.opensuse.org-Extra      | openSUSE BuildService - KDE:Extra                                | Nein      | Nein         
 8 | filesystems                      | Filesystem tools and FUSE-related packages (openSUSE_Tumbleweed) | Ja        | Ja           
 9 | home_ccgx                        | ccgx's Home Project (openSUSE_13.1)                              | Ja        | Ja           
10 | openSUSE Current OSS             | openSUSE Current OSS                                             | Ja        | Ja           
11 | openSUSE Current OSS updates     | openSUSE Current OSS updates                                     | Ja        | Ja           
12 | openSUSE Current non-OSS         | openSUSE Current non-OSS                                         | Ja        | Ja           
13 | openSUSE Current non-OSS updates | openSUSE Current non-OSS updates                                 | Ja        | Ja           
14 | packman                          | Packman repository (openSUSE_Tumbleweed)                         | Ja        | Ja           
15 | repo-debug                       | openSUSE-13.1-Debug                                              | Nein      | Nein         
16 | repo-debug-update                | openSUSE-13.1-Update-Debug                                       | Nein      | Nein         
17 | repo-debug-update-non-oss        | openSUSE-13.1-Update-Debug-Non-Oss                               | Nein      | Nein         
18 | repo-non-oss                     | openSUSE-13.1-Non-Oss                                            | Nein      | Nein         
19 | repo-oss                         | openSUSE-13.1-Oss                                                | Nein      | Nein         
20 | repo-source                      | openSUSE-13.1-Source                                             | Nein      | Nein         
21 | repo-update                      | openSUSE-13.1-Update                                             | Nein      | Nein         
22 | repo-update-non-oss              | openSUSE-13.1-Update-Non-Oss                                     | Nein      | Nein
Comment 2 Ulf Bartholomäus 2014-06-29 21:01:44 UTC
I can't neither find ResourceID 36 in akonadi nor in kmail2
Comment 3 Denis Kurz 2016-09-24 17:56:07 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Comment 4 Ulf Bartholomäus 2016-09-25 18:09:24 UTC
Still unchanged - due to long sync time (> 1 day) with a non operable PC (100% load), I don't deleted the settings and data.

> kmail -v
kmail2 5.3.0 (QtWebEngine) 

> kmail
Pass a valid window to KWallet::Wallet::openWallet().
 void AdblockManager::reloadConfig() false    AdBlock::AdblockManager(0x2b0c920)
this does not work on a KActionCollection containing actions!
org.kde.akonadi.ETM: GEN true false false
org.kde.akonadi.ETM: collection: QVector()
org.kde.akonadi.ETM:
"Tag 'a' is not defined in message {<__kuit_internal_top__>KMail bietet viele leistungsfähige Funktionen, die in der...}."
"Tag 'br' is not defined in message {<__kuit_internal_top__>Danke,<br/>das KMail-Team</__kuit_internal_top__>}."
log_kmanagersieve: void KManageSieve::SessionThread::slotSocketError() "Unknown error"
log_kmanagersieve: "session1" No job for reporting this error message! "Keine Verbindung zu Rechner Unknown error."
org.kde.akonadi.ETM: Subtree:  20 QSet(24, 25, 22, 66, 20, 21, 36, 34, 32, 30, 33, 31, 74, 28, 29, 27)
org.kde.akonadi.ETM: Subtree:  4 QSet(11, 6, 7, 4, 14, 12, 73, 13)
org.kde.akonadi.ETM: Subtree:  37 QSet(37, 62, 63, 60, 61, 58, 59, 57, 54, 55, 52, 53, 50, 51, 48, 49, 64, 65, 46, 47, 44, 42, 43, 40, 41, 38, 39)
org.kde.akonadi.ETM: Fetch job took  1326 msec
org.kde.akonadi.ETM: was collection fetch job: collections: 51
org.kde.akonadi.ETM: first fetched collection: "Lokale Ordner"
org.kde.akonadi.ETM: collection: QVector()
org.kde.akonadi.ETM: Fetch job took  1352 msec
org.kde.akonadi.ETM: was collection fetch job: collections: 8
org.kde.akonadi.ETM: first fetched collection: "Search"
org.kde.akonadi.ETM: Fetch job took  32 msec
org.kde.akonadi.ETM: was collection fetch job: collections: 0
log_akonadicore: Failed SpecialCollectionsRequestJob::slotResult "Could not create collection trash, resourceId: 3"
log_mailcommon: "Im E-Mail-Programm ist ein schwerwiegender Fehler aufgetreten. Das Programm wird beendet.\nDie Fehlermeldung lautet:\nCould not create collection trash, resourceId: 3"
*** KMail got signal 11 (Exiting)
Speicherzugriffsfehler (Speicherabzug geschrieben)
Comment 5 Denis Kurz 2016-09-25 19:03:24 UTC
Ulf, thank you for your feedback. Is it possible for you to provide a backtrace for this crash? Since it seems to be KMail crashing, you should get a DrKonqi notification about the crash, which contains the backtrace in the second tab (I think it reads "Entwicklerinformationen").
Comment 6 Ulf Bartholomäus 2016-09-25 19:22:49 UTC
In the moment there is no second tab. Is there an easy way to install with zypper all needed developer packages?
Comment 7 Ulf Bartholomäus 2016-09-25 19:26:39 UTC
Created attachment 101285 [details]
Screenshot from GUI error message
Comment 8 Denis Kurz 2016-09-26 19:06:28 UTC
Unfortunately, I don't know about openSUSE. I read somewhere that it's not developer packages that you need (which, I assume, end with "-dev"), but instead packages that end with "-debuginfo". Maybe a search in zypper for kdepim-debuginfo, kmail2-debuginfo or something like that comes up with something useful.
Comment 9 Ulf Bartholomäus 2016-09-26 19:26:45 UTC
Hi Denis,
all debuginfo's are still installed, but nicer in kmail2 nor in kontact I see the any option to generate a backtrace :-(
Comment 10 Denis Kurz 2016-09-26 19:33:47 UTC
Ulf, maybe we're talking about different windows. As soon as KMail crashes (i.e., the application closes unexpectedly), you should get a popup window, which belongs to the application DrKonqi. I'm not entirely sure at the moment if it says "DrKonqi" somewhere, but it offers you to help you report the problem. Alternatively, if your installation is recent enough, you get a notification in the lower right part of the screen, telling you that KMail crashed. In this case, there's probably a new icon in your systray that you need to click to open the DrKonqi popup I mentioned before.

In *this* DrKonqi popup, there should be the Entwicklerinformationen tab.
Comment 11 Ulf Bartholomäus 2016-09-26 19:39:42 UTC
Dennis, there is only this window (see screenshot) noting more :-(
After the error message on CLI and the error message on the window kmail is still open a while and system load is very high. But nicer an other Window nor a message on the CLI :-(

drkonqi5 is still installed.

# zypper se -si kdepim 
Loading repository data...
Reading installed packages...

S | Name                       | Type    | Version     | Arch   | Repository               
--+----------------------------+---------+-------------+--------+--------------------------
i | kdepim                     | package | 16.08.1-1.1 | x86_64 | Haupt-Repository (OSS)   
i | kdepim                     | package | 16.08.1-1.1 | x86_64 | openSUSE-20160609-0      
i | kdepim-addons              | package | 16.08.1-1.1 | x86_64 | Haupt-Repository (OSS)   
i | kdepim-addons              | package | 16.08.1-1.1 | x86_64 | openSUSE-20160609-0      
i | kdepim-addons-debuginfo    | package | 16.08.1-1.1 | x86_64 | openSUSE-Tumbleweed-Debug
i | kdepim-apps-libs           | package | 16.08.1-1.1 | x86_64 | Haupt-Repository (OSS)   
i | kdepim-apps-libs           | package | 16.08.1-1.1 | x86_64 | openSUSE-20160609-0      
i | kdepim-apps-libs-debuginfo | package | 16.08.1-1.1 | x86_64 | openSUSE-Tumbleweed-Debug
i | kdepim-debuginfo           | package | 16.08.1-1.1 | x86_64 | openSUSE-Tumbleweed-Debug
i | kdepim-runtime             | package | 16.08.1-1.1 | x86_64 | Haupt-Repository (OSS)   
i | kdepim-runtime             | package | 16.08.1-1.1 | x86_64 | openSUSE-20160609-0      
i | kdepim-runtime-debuginfo   | package | 16.08.1-1.1 | x86_64 | openSUSE-Tumbleweed-Debug
i | kdepimlibs4                | package | 4.14.10-2.6 | x86_64 | Haupt-Repository (OSS)   
i | kdepimlibs4                | package | 4.14.10-2.6 | x86_64 | openSUSE-20160609-0      
i | kdepimlibs4-debuginfo      | package | 4.14.10-2.6 | x86_64 | openSUSE-Tumbleweed-Debug
i | libKF5Libkdepim5           | package | 16.08.1-1.1 | x86_64 | Haupt-Repository (OSS)   
i | libKF5Libkdepim5           | package | 16.08.1-1.1 | x86_64 | openSUSE-20160609-0      
i | libKF5Libkdepim5-debuginfo | package | 16.08.1-1.1 | x86_64 | openSUSE-Tumbleweed-Debug
i | libkdepim                  | package | 16.08.1-1.1 | x86_64 | Haupt-Repository (OSS)   
i | libkdepim                  | package | 16.08.1-1.1 | x86_64 | openSUSE-20160609-0      
i | libkdepim-debuginfo        | package | 16.08.1-1.1 | x86_64 | openSUSE-Tumbleweed-Debug
i | libkdepimlibs4             | package | 4.14.10-2.6 | x86_64 | Haupt-Repository (OSS)   
i | libkdepimlibs4             | package | 4.14.10-2.6 | x86_64 | openSUSE-20160609-0      
i | libkdepimlibs4-debuginfo   | package | 4.14.10-2.6 | x86_64 | openSUSE-Tumbleweed-Debug

# zypper se -si konqi
Loading repository data...
Reading installed packages...

S | Name               | Type    | Version   | Arch   | Repository               
--+--------------------+---------+-----------+--------+--------------------------
i | drkonqi5           | package | 5.7.4-1.2 | x86_64 | Haupt-Repository (OSS)   
i | drkonqi5           | package | 5.7.4-1.2 | x86_64 | openSUSE-20160609-0      
i | drkonqi5-debuginfo | package | 5.7.4-1.2 | x86_64 | openSUSE-Tumbleweed-Debug
Comment 12 Thiago Jung Bauermann 2016-10-17 19:28:29 UTC
I am also getting this error and this crash. I'll attach the debug output and the backtrace.

I started running into this problem after trying to send an email via an SMTP server which uses an untrusted TLS certificate. I think this confused KMail beyond repair.

Not to mention that the dialog asking whether I wanted to use that certificate was created under KMail's window and I only saw it after KMail crashed...

I'm using Kubuntu's backport ppa on Kubuntu 16.04.1 LTS:

$ dpkg -l | grep -e kmail -e akonadi
ii  akonadi-backend-mysql                           4:15.12.3-0ubuntu6
ii  akonadi-dbg                                     4:15.12.3-0ubuntu6
ii  akonadi-server                                  4:15.12.3-0ubuntu6
ii  akonadi1-dbg                                    1.13.0-8ubuntu2   
ii  akonadiconsole                                  4:15.12.3-0ubuntu1
ii  kmail                                           4:15.12.3-0ubuntu1
ii  libakonadi-kde4                                 4:4.14.10-1ubuntu2
ii  libakonadi-kmime4                               4:4.14.10-1ubuntu2
ii  libakonadiprotocolinternals1                    1.13.0-8ubuntu2   
ii  libkf5akonadiagentbase5:amd64                   4:15.12.3-0ubuntu1
ii  libkf5akonadicalendar5:amd64                    4:15.12.3-0ubuntu1
ii  libkf5akonadicontact5:amd64                     4:15.12.3-0ubuntu1
ii  libkf5akonadicore-bin                           4:15.12.3-0ubuntu1
ii  libkf5akonadicore5:amd64                        4:15.12.3-0ubuntu1
ii  libkf5akonadimime5:amd64                        4:15.12.3-0ubuntu1
ii  libkf5akonadinotes5:amd64                       4:15.12.3-0ubuntu1
ii  libkf5akonadiprivate5                           4:15.12.3-0ubuntu6
ii  libkf5akonadisearchdebug5:amd64                 4:15.12.3-0ubuntu1
ii  libkf5akonadisearchpim5:amd64                   4:15.12.3-0ubuntu1
ii  libkf5akonadiwidgets5:amd64                     4:15.12.3-0ubuntu1
Comment 13 Thiago Jung Bauermann 2016-10-17 19:29:54 UTC
Created attachment 101604 [details]
debug output from KMail

The line:

Unknown collection name "Papierkorb" -- not recovering.

strikes to me as odd. Could the problem be that KMail is looking for a folder using a translated string when it should be using a literal "Trash" instead?
Comment 14 Thiago Jung Bauermann 2016-10-17 19:32:37 UTC
Created attachment 101605 [details]
backtrace from gdb

The backports ppa doesn't provide debug info for all packages, so some of the libraries in the backtrace don't have debug info. Sorry about that. Still, it does have a fair amount of detail.
Comment 15 Thiago Jung Bauermann 2016-10-17 19:55:41 UTC
The problem magically went away for me after I performed the following steps:

1. Opened Akonadi Console
2. Selected the "Local Folders" resource (akonadi_maildir_resource_0)
3. Selected "Configure ... → Configure Natively ..."
4. Closed the configuration dialog without changing anything
5. Selected "Configure ... → Configure Remotely ..."
6. Closed the configuration dialog without changing anything

The first time I started KMail after doing the above, the "Local Folders" account had just the "Postausgang" and "Versendete Nachrichten" folders.
I closed and opened KMail again and now all folders are there.

Weird...