Bug 510881 - Kate crashes if scrolling through tabs too fast
Summary: Kate crashes if scrolling through tabs too fast
Status: REPORTED
Alias: None
Product: gwenview
Classification: Applications
Component: general (other bugs)
Version First Reported In: 25.08.1
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-21 19:00 UTC by Richard Kellnberger
Modified: 2025-11-09 05:13 UTC (History)
2 users (show)

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


Attachments
journal coredump (61.78 KB, text/plain)
2025-10-21 19:00 UTC, Richard Kellnberger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Kellnberger 2025-10-21 19:00:00 UTC
Created attachment 185970 [details]
journal coredump

SUMMARY
Scrolling through the tab list quickly in kate causes it to crash

STEPS TO REPRODUCE
1. Start kate
2. Open many tabs
3. Scroll through them by spinning your free-spinning mouse wheel

OBSERVED RESULT
Crash

EXPECTED RESULT
No crash

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 6.3.6
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2
Kernel Version: 6.17.1-0-MANJARO (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
This used to work in 25.08.0
Scrolling slowly works.
journactl shows a coredump (attached)
Comment 1 Waqar Ahmed 2025-10-21 19:10:37 UTC
Always reproducible?

Can you disable preview plugin and see if it avoids the crash?
Comment 2 Richard Kellnberger 2025-10-21 19:18:44 UTC
I've scrolled one way and then the other for the test, sometimes it crashed on the way back.
Never did it survive both directions.
So not quite a 100% but very high.

Does indeed avoid the crash.
Disabling is not even necessary, closing the preview is enough.
Comment 3 Bug Janitor Service 2025-10-24 10:26:10 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kate/-/merge_requests/1928
Comment 4 Waqar Ahmed 2025-10-24 10:28:28 UTC
reassigning to gwenview
Comment 5 Waqar Ahmed 2025-10-24 13:54:08 UTC
Git commit c37f0d2578ff94039a14308143726e090c3f948d by Waqar Ahmed.
Committed on 24/10/2025 at 09:36.
Pushed by waqar into branch 'master'.

preview: Delay reacting to viewChanged

Avoid unnecessary work. Maybe also maybe the crash a bit difficult to
trigger

M  +8    -1    addons/preview/previewwidget.cpp
M  +2    -0    addons/preview/previewwidget.h

https://invent.kde.org/utilities/kate/-/commit/c37f0d2578ff94039a14308143726e090c3f948d
Comment 6 Waqar Ahmed 2025-10-31 06:35:59 UTC
Git commit 6f35b0598567e8815f205a0e023d7e9f602c4e7b by Waqar Ahmed.
Committed on 31/10/2025 at 06:28.
Pushed by waqar into branch 'release/25.08'.

preview: Delay reacting to viewChanged

Avoid unnecessary work. Maybe also maybe the crash a bit difficult to
trigger
(cherry picked from commit c37f0d2578ff94039a14308143726e090c3f948d)

M  +8    -1    addons/preview/previewwidget.cpp
M  +2    -0    addons/preview/previewwidget.h

https://invent.kde.org/utilities/kate/-/commit/6f35b0598567e8815f205a0e023d7e9f602c4e7b
Comment 7 John Veness 2025-11-08 21:28:03 UTC
(In reply to Waqar Ahmed from comment #4)
> reassigning to gwenview

Why is this in gwenview?
Comment 8 Waqar Ahmed 2025-11-09 05:13:26 UTC
Crash seems to be in gwenview part. See attached bt