Bug 399389

Summary: akonadi_imap_resource crash on gmail
Product: [Frameworks and Libraries] Akonadi Reporter: Frank Mehnert <frank.mehnert>
Component: IMAP resourceAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: brendon
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Backtrace generated of a core dump of akonadi_imap_resource
Improved backtrace (more symbols)
Corresponding resource setting

Description Frank Mehnert 2018-10-04 19:26:05 UTC
Created attachment 115418 [details]
Backtrace generated of a core dump of akonadi_imap_resource

SUMMARY: When I try to fetch data from my gmail account, akonadi_imap_resource crashes.


STEPS TO REPRODUCE
1. Set email account to google account, imap.gmail.com, gmail authentication
2. 
3. 

OBSERVED RESULT
The QtWebKit window appears asking for my login, I press 'Next' but the same window appears several times before it gaves up. From the akonadi debug output I see that akonadi_imap_resource crashes.

EXPECTED RESULT


SOFTWARE VERSIONS
I'm currently at Debian/Sid, up-to-date from today. KDEPIM at 18.08.1.

KDE Plasma Version: 5.13.5
KDE Frameworks Version: 5.49.0
Qt Version: 5.11.1

ADDITIONAL INFORMATION
I will attach a backtrace. Please let me know if you need more information or if I should try out something.
Comment 1 Frank Mehnert 2018-10-04 19:48:55 UTC
Created attachment 115420 [details]
Improved backtrace (more symbols)
Comment 2 Frank Mehnert 2018-10-04 19:51:20 UTC
Created attachment 115421 [details]
Corresponding resource setting
Comment 3 Brendon Higgins 2018-10-12 21:07:59 UTC
I'm seeing similar behaviour, also on Debian Sid. I've multiple GMail/GoogleApps accounts, and they all trigger their own authentication window to open when KMail starts. I press Next, and the window disappears and reappears shortly after, three times for each account. After the three attempts I see ""/usr/bin/akonadi_imap_resources" crashed too often and will not be restarted!" in Akonadi Console's log.

I thought I had found a workaround by using the Restart button in KMail's configuration dialog (only got the authentication window once - it went away after clicking Next - and in KMail the account folders are no longer red and marked as Offline), but upon closer inspection it turns out the imap resource still crashes and new mails aren't arriving. So, not a workaround, just a more silent failure than before...
Comment 4 Brendon Higgins 2018-10-25 17:41:29 UTC
I'm not experiencing this issue anymore with the latest Debian packages. I suspect it was due to a packaging incompatibility, triggered by some transitions of Qt and KDE PIM hitting Debian unstable/testing, which was causing the QtWebKit (or is it Engine, now?) to crash during the authorization process. Now the process completes normally, for me.

Frank, are you still experiencing this issue?
Comment 5 Frank Mehnert 2018-10-26 07:13:00 UTC
Brendon, thanks for the heads-up. I can confirm that I no longer see these crashes. So this bug is resolved for me as well!

I'm still unable to use the new XOAUTH2 method for sending E-mails to imap.gmail.com but that's a different story.