Bug 401692

Summary: Akonadi components crash on logout
Product: [Frameworks and Libraries] Akonadi Reporter: weltqgel
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: admin, aldo-public, allo, bilal.elmas, Boyd.Stephen.Smith.Jr, bruno, bugs.kde.org, christiandehne, christopherlee.thomas, c_pan, faure, freekdekruijf, halla, jeremy, jesaenh, jorohr, kde, keplicz, luislezcair, nick.craig.law, peter, reportbug, snd.noise, tlake29, vamp898
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=402396
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Bugtrace
New crash information added by DrKonqi

Description weltqgel 2018-12-03 14:50:10 UTC
Created attachment 116650 [details]
Bugtrace

SUMMARY
Crash of Akonadi akonotes component.

STEPS TO REPRODUCE
Hard to reproduce but drkonqui reports useful Bugtrace.
Occurred simultaneously with Bug 401691

OBSERVED RESULT
"dead face" in info area

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro 18 (stable)
(available in About System)
KDE Plasma Version: 5.14.4
KDE Frameworks Version: 5.52.0
Qt Version: 5.11.2

ADDITIONAL INFORMATION
Comment 1 Christoph Feck 2018-12-27 17:33:18 UTC
*** Bug 401691 has been marked as a duplicate of this bug. ***
Comment 2 Christoph Feck 2018-12-27 17:33:52 UTC
If this is reproducible, please install debug symbols for Qt, and add an updated backtrace.
Comment 3 Christoph Feck 2018-12-27 17:45:55 UTC
*** Bug 401885 has been marked as a duplicate of this bug. ***
Comment 4 Christoph Feck 2018-12-27 17:46:34 UTC
*** Bug 401902 has been marked as a duplicate of this bug. ***
Comment 5 Christoph Feck 2018-12-27 17:47:14 UTC
*** Bug 402211 has been marked as a duplicate of this bug. ***
Comment 6 Christoph Feck 2018-12-27 17:48:49 UTC
*** Bug 400011 has been marked as a duplicate of this bug. ***
Comment 7 Christoph Feck 2018-12-27 17:49:53 UTC
*** Bug 400371 has been marked as a duplicate of this bug. ***
Comment 8 Christoph Feck 2018-12-27 17:53:11 UTC
Backtrace from bug 400371, with line numbers from Qt 5.12.0:

Thread 3 (Thread 0x7f2c5db14700 (LWP 24587)):
[KCrash Handler]
#6  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#7  0x00007f2c916fe801 in __GI_abort () at abort.c:79
#8  0x00007f2c91b3b8b7 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#9  0x00007f2c91b41a06 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#10 0x00007f2c91b41a41 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#11 0x00007f2c91ebd3eb in qTerminate () at /src/qt5/qtbase/src/corelib/global/qglobal.cpp:3190
#12 0x00007f2c91ee1b17 in QThreadPrivate::start (arg=0x55f564fc1f40) at /src/qt5/qtbase/src/corelib/thread/qthread_unix.cpp:373
#13 0x00007f2c874f16db in start_thread (arg=0x7f2c5db14700) at pthread_create.c:463
#14 0x00007f2c917df88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Comment 9 Allan Sandfeld 2018-12-27 18:20:54 UTC
Something is throwing an exception inside a QThread::run()
Comment 10 Christoph Feck 2019-01-17 02:17:08 UTC
*** Bug 402372 has been marked as a duplicate of this bug. ***
Comment 11 Christoph Feck 2019-01-17 02:17:56 UTC
*** Bug 402752 has been marked as a duplicate of this bug. ***
Comment 12 Christoph Feck 2019-01-17 02:18:17 UTC
*** Bug 402310 has been marked as a duplicate of this bug. ***
Comment 13 Christoph Feck 2019-01-17 02:21:30 UTC
Bug 402396 may be a duplicate.
Comment 14 Christoph Feck 2019-01-17 07:16:05 UTC
*** Bug 403276 has been marked as a duplicate of this bug. ***
Comment 15 Bruno Friedmann 2019-01-17 10:34:47 UTC
Here's a list of event that can be related 

Jan 17 11:29:13 qt-kt kmail[30141]: qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 12025, resource id: 134217775, major code: 130 (Unknown), minor code: 3
Jan 17 11:29:13 qt-kt kmail[30141]: qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 12045, resource id: 134217775, major code: 130 (Unknown), minor code: 3
Jan 17 11:29:13 qt-kt kmail[30141]: qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 12048, resource id: 134217775, major code: 130 (Unknown), minor code: 3
Jan 17 11:30:14 qt-kt akonadi_archivemail_agent[3570]: "Item query returned empty result set"
Jan 17 11:30:14 qt-kt akonadi_mailfilter_agent[3600]: "Item query returned empty result set"
Jan 17 11:30:14 qt-kt kmail[30141]: "Item query returned empty result set"
Jan 17 11:30:30 qt-kt kmail[30141]: qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 16665, resource id: 134217775, major code: 130 (Unknown), minor code: 3
Jan 17 11:30:30 qt-kt kmail[30141]: qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 16685, resource id: 134217775, major code: 130 (Unknown), minor code: 3
Jan 17 11:30:30 qt-kt kmail[30141]: qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 16688, resource id: 134217775, major code: 130 (Unknown), minor code: 3
Jan 17 11:30:39 qt-kt kmail[30141]: QNetworkReplyHttpImplPrivate::_q_startOperation was called more than once QUrl("https://secure.gravatar.com:443/avatar/c5c31f7c3041dfedc2b2c10d09661bfe?d=404")
Jan 17 11:31:00 qt-kt kmail[30141]: qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 18447, resource id: 134217775, major code: 130 (Unknown), minor code: 3
Jan 17 11:31:00 qt-kt kmail[30141]: qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 18467, resource id: 134217775, major code: 130 (Unknown), minor code: 3
Jan 17 11:31:00 qt-kt kmail[30141]: qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 18470, resource id: 134217775, major code: 130 (Unknown), minor code: 3
Comment 16 Christoph Feck 2019-01-25 12:50:18 UTC
*** Bug 402813 has been marked as a duplicate of this bug. ***
Comment 17 Christoph Feck 2019-03-08 19:30:34 UTC
*** Bug 404193 has been marked as a duplicate of this bug. ***
Comment 18 Christoph Feck 2019-03-08 19:32:55 UTC
*** Bug 404354 has been marked as a duplicate of this bug. ***
Comment 19 Christoph Feck 2019-03-08 19:33:37 UTC
*** Bug 404630 has been marked as a duplicate of this bug. ***
Comment 20 Christoph Feck 2019-03-08 19:35:24 UTC
*** Bug 405041 has been marked as a duplicate of this bug. ***
Comment 21 Christoph Feck 2019-03-08 19:38:43 UTC
*** Bug 404485 has been marked as a duplicate of this bug. ***
Comment 22 Christoph Feck 2019-03-08 19:58:54 UTC
*** Bug 404517 has been marked as a duplicate of this bug. ***
Comment 23 David Faure 2019-03-11 12:18:35 UTC
The backtraces aren't very useful, but the error logs are much more informative in such cases (see ~/.xsession-errors or ~/.local/share/sddm/xorg-session.log for sddm users).

This bug is about "ProtocolException thrown:Failed to write data to stream"
right?
Comment 24 David Faure 2019-03-11 12:19:28 UTC
*** Bug 402396 has been marked as a duplicate of this bug. ***
Comment 25 David Faure 2019-03-25 17:52:14 UTC
Should be fixed in the 19.04 release, see https://phabricator.kde.org/D19983
Comment 26 Christoph Feck 2019-04-19 11:17:07 UTC
*** Bug 405673 has been marked as a duplicate of this bug. ***
Comment 27 Christoph Feck 2019-04-19 11:17:39 UTC
*** Bug 406104 has been marked as a duplicate of this bug. ***
Comment 28 Christoph Feck 2019-04-19 11:18:01 UTC
*** Bug 405851 has been marked as a duplicate of this bug. ***
Comment 29 Christoph Feck 2019-04-19 11:19:28 UTC
*** Bug 406065 has been marked as a duplicate of this bug. ***
Comment 30 Christoph Feck 2019-04-19 11:21:36 UTC
*** Bug 405682 has been marked as a duplicate of this bug. ***
Comment 31 Christoph Feck 2019-04-19 11:29:49 UTC
*** Bug 405987 has been marked as a duplicate of this bug. ***
Comment 32 Christoph Feck 2019-04-25 19:35:09 UTC
*** Bug 406117 has been marked as a duplicate of this bug. ***
Comment 33 Christoph Feck 2019-05-11 10:20:22 UTC
*** Bug 406621 has been marked as a duplicate of this bug. ***
Comment 34 Christoph Feck 2019-05-14 00:33:13 UTC
*** Bug 405955 has been marked as a duplicate of this bug. ***
Comment 35 Christoph Feck 2019-05-14 19:21:44 UTC
*** Bug 407017 has been marked as a duplicate of this bug. ***
Comment 36 Christoph Feck 2019-05-21 18:17:30 UTC
*** Bug 407178 has been marked as a duplicate of this bug. ***
Comment 37 Bruno Friedmann 2019-07-09 08:20:01 UTC
Created attachment 121413 [details]
New crash information added by DrKonqi

akonadiserver (5.11.2) using Qt 5.13.0

- What I was doing when the application crashed:
As usual to reproduce the crash, delete some mail, then move some others, and suddently the application become freeze (no action).

Related information found in ~/.local/share/sddm/xorg-session.log
ProtocolException thrown:Timeout while waiting for data
ProtocolException thrown:ProtocolException thrown:LOGIN CALLBACK in libCVP11LCB: CK_RV CB_Initialize(CK_CONTEXT_PTR, CK_C_INITIALIZE_ARGS_PTR, CK_ULONG_PTR)
ProtocolException thrown:Timeout while waiting for dataTimeout while waiting for dataProtocolException thrown:Timeout while waiting for data

Timeout while waiting for data
ProtocolException thrown:Timeout while waiting for data
ProtocolException thrown:Timeout while waiting for data
ProtocolException thrown:Timeout while waiting for data
ProtocolException thrown:Timeout while waiting for data
ProtocolException thrown:Timeout while waiting for data
ProtocolException thrown:Timeout while waiting for data
ProtocolException thrown:Timeout while waiting for data
ProtocolException thrown:ProtocolException thrown:Timeout while waiting for dataTimeout while waiting for data

ProtocolException thrown:Failed to write data to stream
terminate called after throwing an instance of 'Akonadi::ProtocolException'
  what():  Failed to write data to stream
KCrash: Application 'akonadiserver' crashing...
KCrash: Attempting to start /usr/lib64/libexec/drkonqi from kdeinit
ProtocolException thrown:Timeout while waiting for data

Server is dovecot imap on TLS

-- Backtrace (Reduced):
#11 0x00007f8a193c5e7b in qTerminate () at global/qglobal.cpp:3245
#12 0x00007f8a193c78c2 in QThreadPrivate::start (arg=0x556afc0bcd60) at thread/qthread_unix.cpp:372
[...]
Comment 38 Christoph Feck 2019-09-09 13:30:39 UTC
*** Bug 410963 has been marked as a duplicate of this bug. ***