Bug 503990

Summary: KMail crashes instantly after start
Product: [Applications] kmail2 Reporter: Thomas Lauck <tlauck>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: crash CC: richard
Priority: NOR Keywords: drkonqi
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report: https://crash-reports.kde.org/organizations/kde/issues/174511/events/c169f629db6d46a7a1ae5a49d7ec305c/
Attachments: New crash information added by DrKonqi
enhanced debugging information

Description Thomas Lauck 2025-05-10 07:29:31 UTC
Application: kmail (6.4.0 (25.04.0))

ApplicationNotResponding [ANR]: false
Qt Version: 6.9.0
Frameworks Version: 6.13.0
Operating System: Linux 6.14.5-1-default x86_64
Windowing System: Wayland
Distribution: openSUSE Tumbleweed
DrKonqi: 6.3.5 [CoredumpBackend]

-- Information about the crash:
There was no further user-action necessary to provoke this error. I simply tried to start KMail when KMail crashes. I hope, the code, created by the Crash-Handler is more helpful.

The crash can be reproduced every time.

-- Backtrace (Reduced):
#5  PimCommon::AbstractGenericPluginInterface::setParentWidget (this=this@entry=0x0, parent=0x558a67dc4af0) at /usr/include/c++/14/bits/unique_ptr.h:193
#6  0x00007f04f40439fa in PimCommon::PluginInterface::createPluginInterface (this=0x7f0503337160 <KMailPluginInterface::self()::s_self>) at /usr/src/debug/pimcommon-25.04.0/src/pimcommonakonadi/genericplugins/plugininterface.cpp:76
#7  0x00007f0503216dea in KMMainWidget::setupActions (this=0x558a67dc4af0) at /usr/src/debug/kmail-25.04.0/src/kmmainwidget.cpp:2922
#8  0x00007f050320c5fb in KMMainWidget::KMMainWidget (this=<optimized out>, parent=<optimized out>, aGUIClient=<optimized out>, actionCollection=<optimized out>, config=..., this=<optimized out>, parent=<optimized out>, aGUIClient=<optimized out>, actionCollection=<optimized out>, config=...) at /usr/src/debug/kmail-25.04.0/src/kmmainwidget.cpp:242
#9  0x00007f05031c17d7 in KMMainWin::KMMainWin (this=<optimized out>, this=<optimized out>) at /usr/src/debug/kmail-25.04.0/src/kmmainwin.cpp:87


Reported using DrKonqi
Comment 1 Thomas Lauck 2025-05-10 07:29:32 UTC
Created attachment 181124 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 Richard Hering 2025-05-26 08:36:03 UTC
Created attachment 181755 [details]
enhanced debugging information

I've the same problem:

Thread 1 "kontact" received signal SIGSEGV, Segmentation fault.
PimCommon::AbstractGenericPluginInterface::setParentWidget (this=this@entry=0x0, parent=0x5555560ef3d0) at /usr/include/c++/15.1.1/bits/unique_ptr.h:193
193           pointer    _M_ptr() const noexcept { return std::get<0>(_M_t); }

I attached the gdb output.
Comment 3 Richard Hering 2025-05-26 08:38:02 UTC
(In reply to Richard Hering from comment #2)
> Created attachment 181755 [details]
> enhanced debugging information
> 
> I've the same problem:
> 
> Thread 1 "kontact" received signal SIGSEGV, Segmentation fault.
> PimCommon::AbstractGenericPluginInterface::setParentWidget
> (this=this@entry=0x0, parent=0x5555560ef3d0) at
> /usr/include/c++/15.1.1/bits/unique_ptr.h:193
> 193           pointer    _M_ptr() const noexcept { return std::get<0>(_M_t);
> }
> 
> I attached the gdb output.

ups, forgot information about my system:

Operating System: Manjaro Linux 
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.12.28-1-MANJARO (64-bit)
Graphics Platform: Wayland

Kontact & other: 25.04.1-1
Comment 4 Richard Hering 2025-05-26 11:55:37 UTC
see https://bugs.kde.org/show_bug.cgi?id=503909

disable plugin kmail_checkfoldersizeaccount in your ~/.config/pimpluginsrc helps atm