Bug 515451 - Kontact segfaults if you close it while drafting an email and try to start it again
Summary: Kontact segfaults if you close it while drafting an email and try to start it...
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: composer (other bugs)
Version First Reported In: 6.6.1
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-02-03 09:31 UTC by Andreas Schneider
Modified: 2026-02-04 08:19 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
backtrace.log (25.73 KB, text/x-log)
2026-02-03 09:31 UTC, Andreas Schneider
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schneider 2026-02-03 09:31:20 UTC
Created attachment 189180 [details]
backtrace.log

SUMMARY
Kontact crashes if you closed it while you have the "New E-Mail" window open.

STEPS TO REPRODUCE
1. Start Kontact
2. Click on New E-Mail
3. Start to fill it out
4. Close kontact
5. Start kontact again [segfault]

OBSERVED RESULT
kontact segfaults, see attached backtrace.log.

EXPECTED RESULT
kontact should start and not segfault

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20260131
KDE Plasma Version: 6.5.5
KDE Frameworks Version: 6.22.0
Qt Version: 6.10.1
Kernel Version: 6.18.7-1-default (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 9950X3D 16-Core Processor
Memory: 64 GiB of RAM (60.4 GiB usable)
Graphics Processor 1: AMD Radeon RX 9070 XT
Graphics Processor 2: AMD Ryzen 9 9950X3D 16-Core Processor
Comment 1 Andreas Schneider 2026-02-03 09:41:26 UTC
Thread 1 "kontact" received signal SIGSEGV, Segmentation fault.
QWidget::show (this=0x0) at /usr/src/debug/qtbase-everywhere-src-6.10.1/src/widgets/kernel/qwidget.cpp:7945
7945        if (!isWindow()) {
Comment 2 Andreas Schneider 2026-02-03 12:38:24 UTC
Workaround: mv ~/.local/share/kmail2/autosave/{0b24b4c2-fe2d-414f-a8f8-d428c96fa61c} mymaildraft.txt
Comment 3 Albert Astals Cid 2026-02-03 22:58:21 UTC
Can you reproduce it with kmail standalone?
Comment 4 Andreas Schneider 2026-02-04 08:19:05 UTC
No, because when I close kmail, it doesn't close the "New message" window. It stays open.

When you close kontact, it closes the "New message" window and tries to restore it on start.