Bug 404467

Summary: Kmail2 crashes on new email
Product: [Applications] kmail2 Reporter: Johannes Studt <johannes>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: wbauer1
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Backtrace from pressing "New"
Backtrace from subsequent Kmail2 restart

Description Johannes Studt 2019-02-17 08:50:23 UTC
Created attachment 118147 [details]
Backtrace from pressing "New"

SUMMARY
Kmail2 crashes instantly on pressing "New email" or "Reply".

STEPS TO REPRODUCE
I don't know how to reproduce this.
It worked until yesterday, when I opened the settings dialog and looked through the plugins section. Maybe I ticked some plugin I didn't use before.
Later I tried to send two PDF files from an external application by "Send as attachment...", and Kmail crashed instantly.
Since then I can't even start it again without prior deleting all files from ~/.local/share/kmail2/autosave.

OBSERVED RESULT
Kmail2 crashes every time when I want to write an email.

EXPECTED RESULT
Composer window shall show up.

SOFTWARE/OS VERSIONS
KMail Version: 5.10.2
KDE Frameworks Version: 5.55.0
Qt Version: 5.12.0

ADDITIONAL INFORMATION
What I already tried:
- reboot several times ;)
- reset akonadi (delete whole akonadi folders in .config and .local, starting from ground off)
- delete all kmail2 config files (kmail2rc, emailidentities)
- upgrade to the last available version from Opensuse repos
Comment 1 Johannes Studt 2019-02-17 08:51:16 UTC
Created attachment 118148 [details]
Backtrace from subsequent Kmail2 restart
Comment 2 Johannes Studt 2019-02-17 12:46:37 UTC
I was able to solve this by disabling all KMail plugins bit by bit.

The sharetext plugin causes the crash.

Simply move the sharetext plugin in ~/.config/pimpluginsrc from ...Enabled to ...Disabled:

[KMailPluginEditor]
  KMailEditorPluginDisabled=kmailsharetext
  KMailEditorPluginEnabled=
Comment 3 Wolfgang Bauer 2019-02-17 19:58:58 UTC
This is actually a duplicate.

*** This bug has been marked as a duplicate of bug 403317 ***