Bug 486098 - Creating and closing sequentially two QMainWindows core-dumps with KDE
Summary: Creating and closing sequentially two QMainWindows core-dumps with KDE
Status: REPORTED
Alias: None
Product: frameworks-kwidgetsaddons
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 6.1.0
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Christoph Feck
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-25 06:18 UTC by wolf.seifert
Modified: 2025-02-28 08:18 UTC (History)
1 user (show)

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


Attachments
Reproducer: mainwindows.cpp and CMakeLists.txt (776 bytes, application/zip)
2024-04-25 06:18 UTC, wolf.seifert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wolf.seifert 2024-04-25 06:18:50 UTC
Created attachment 168890 [details]
Reproducer: mainwindows.cpp and CMakeLists.txt

SUMMARY
When creating and closing sequentially two QMainWindows the second one core-dumps when clicking on it. This only happens for the KDE version, the pure Qt version works fine.

STEPS TO REPRODUCE
1. Unzip the attached mainwindows.zip
2. $ cmake .
3. $ cmake --build .
4. $ ./mainwindows (close first window and click on second)
Segmentation fault (core dumped)
5. $ LD_LIBRARY_PATH=/home/wolfgang/qt/6.7.0/gcc_64/lib ./mainwindows (works fine)

OBSERVED RESULT
When clicking on the second mainwindows menubar the application crashes.
When using pure Qt it works as expected.

EXPECTED RESULT
The second mainwindows menubar "Close" should close the mainwindow and quit the application.
Pure Qt and KDE version should behave the same, only the look & feel may differ.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Graphics Platform: Wayland
Comment 1 wolf.seifert 2024-04-25 06:26:44 UTC
By "closing" I meant triggering the menubars "Close" menu.
Comment 2 wolf.seifert 2025-02-06 12:11:35 UTC
Still the same.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2
Graphics Platform: Wayland
Comment 3 wolf.seifert 2025-02-28 08:18:47 UTC
Still the same.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 6.3.2
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Graphics Platform: Wayland