Bug 510006

Summary: Crash after opening recent files menu after kwin_wayland restart
Product: [Applications] kate Reporter: Nicolas Fella <nicolas.fella>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: christoph, kdedev
Priority: NOR Keywords: drkonqi
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report: https://crash-reports.kde.org/organizations/kde/issues/262392/events/d96c282a656d43cfa98a1f4545127968/
Attachments: New crash information added by DrKonqi

Description Nicolas Fella 2025-09-27 17:51:11 UTC
Application: kate (25.11.70)
 (Compiled from sources)
ApplicationNotResponding [ANR]: false
Qt Version: 6.10.0
Frameworks Version: 6.19.0
Operating System: Linux 6.16.8-200.fc42.x86_64 x86_64
Windowing System: Wayland
Distribution: "Fedora Linux 42 (KDE Plasma Desktop Edition)"
DrKonqi: 6.5.80 [CoredumpBackend]

-- Information about the crash:
- Open Kate
- Run kwin_wayland --replace
- In the toolbar, click on the arrow next to the "Open" button

The crash can be reproduced sometimes.

-- Backtrace (Reduced):
#5  0x00007f586bb8060f in QImage::sizeInBytes (this=0x209f8498) at /home/nico/workspace/qt6/qtbase/src/gui/image/qimage.cpp:1548
#6  0x00007f586ab9e068 in QtWaylandClient::QWaylandShmBackingStore::recreateBackBufferIfNeeded (this=this@entry=0x206ceeb0, nonDirtyRegion=...) at /home/nico/workspace/qt6/qtbase/src/plugins/platforms/wayland/qwaylandshmbackingstore.cpp:375
#7  0x00007f586ab9e739 in QtWaylandClient::QWaylandShmBackingStore::beginPaint (this=0x206ceeb0, region=...) at /home/nico/workspace/qt6/qtbase/src/plugins/platforms/wayland/qwaylandshmbackingstore.cpp:201
#8  0x00007f586bc84a32 in QBackingStore::beginPaint (this=0x20452da0, region=...) at /home/nico/workspace/qt6/qtbase/src/gui/painting/qbackingstore.cpp:125
#9  0x00007f586cc0c824 in QWidgetRepaintManager::paintAndFlush (this=this@entry=0x209bf940) at /home/nico/workspace/qt6/qtbase/src/widgets/kernel/qwidgetrepaintmanager.cpp:874
#10 0x00007f586cc0d98a in QWidgetRepaintManager::sync (this=0x209bf940, exposedWidget=0x202d3020, exposedRegion=...) at /home/nico/workspace/qt6/qtbase/src/widgets/kernel/qwidgetrepaintmanager.cpp:633
#11 0x00007f586cc17ef0 in QWidgetWindow::event (this=<optimized out>, event=<optimized out>) at /home/nico/workspace/qt6/qtbase/src/widgets/kernel/qwidgetwindow.cpp:340
#12 0x00007f586cb96b18 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x205cd4e0, e=0x7ffd853db590) at /home/nico/workspace/qt6/qtbase/src/widgets/kernel/qapplication.cpp:3308
#13 0x00007f586b3a3048 in QCoreApplication::notifyInternal2 (receiver=0x205cd4e0, event=0x7ffd853db590) at /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1109
#14 0x00007f586b3a327d in QCoreApplication::sendSpontaneousEvent (receiver=<optimized out>, event=<optimized out>) at /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1563
#15 0x00007f586bbfe61f in QGuiApplicationPrivate::processExposeEvent (e=0x7ffd853db650) at /home/nico/workspace/qt6/qtbase/src/gui/kernel/qguiapplication.cpp:3468
#16 0x00007f586bc73c21 in QWindowSystemEventHandler::sendEvent (this=<optimized out>, e=0x7ffd853db650) at /home/nico/workspace/qt6/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:190
#17 QWindowSystemHelper<QWindowSystemInterface::SynchronousDelivery>::handleEvent<QWindowSystemInterfacePrivate::ExposeEvent, QWindow*, QRegion> () at /home/nico/workspace/qt6/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:102
#18 QWindowSystemHelper<QWindowSystemInterface::SynchronousDelivery>::handleEvent<QWindowSystemInterfacePrivate::ExposeEvent, QWindow*, QRegion> () at /home/nico/workspace/qt6/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:96
#19 handleWindowSystemEvent<QWindowSystemInterfacePrivate::ExposeEvent, QWindowSystemInterface::SynchronousDelivery, QWindow*, QRegion> () at /home/nico/workspace/qt6/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:138
#20 QWindowSystemInterface::handleExposeEvent<QWindowSystemInterface::SynchronousDelivery> (window=0x205cd4e0, region=...) at /home/nico/workspace/qt6/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:341


Reported using DrKonqi
Comment 1 Nicolas Fella 2025-09-27 17:51:13 UTC
Created attachment 185325 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 TraceyC 2025-10-01 17:22:49 UTC
The backtrace looks to be entirely in Qt and Wayland. I wonder if this is because of Qt 6.10.0

I can't reproduce this with Kate built from git-master with those steps, Qt 6.9.2
Comment 3 Christoph Cullmann 2025-11-20 16:56:23 UTC
I use that daily (6.10 & Wayland).

Can not reproduce.

What looks a bit strange is that we not elide the paths in the recent files, I have full length entries even on my 30 inch screen.
But that should not crash.
Comment 4 Christoph Cullmann 2025-11-20 17:02:48 UTC
Need more feedback how to reproduce.
Comment 5 Bug Janitor Service 2025-12-05 03:46:04 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2025-12-20 03:46:29 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.