Bug 513007

Summary: Konsole crash when actively scrolling on another virtual desktop
Product: [Applications] konsole Reporter: Oleg <oleg_antonyan>
Component: generalAssignee: Konsole Bugs <konsole-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version First Reported In: 25.08.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: bt full from gdb, and debugger log from qtcreator

Description Oleg 2025-12-06 13:17:22 UTC
Created attachment 187390 [details]
bt full from gdb, and debugger log from qtcreator

SUMMARY
When Konsole is pumping a lot of text to stdout and is open on different desktop, it crashes on this line in TerminalScrollBar.cpp:
```
display->scroll(0, display->terminalFont()->fontHeight() * (-lines), scrollRect);
```
Show/hide scrollbar in settings makes no effect.

Commenting out this line resolves the issue (but without proper scrolling Konsole becomes unusable)


STEPS TO REPRODUCE
1. start a long output-heavy process in konsole, compilation for example
2. switch to another virtual desktop
3. wait a bit

OBSERVED RESULT
Konsole crashes

EXPECTED RESULT
Konsole keeps working

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20251204
KDE Plasma Version: 6.5.3
KDE Frameworks Version: 6.20.0
Qt Version: 6.10.1
Kernel Version: 6.18.0-1-default (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 9 5900HX with Radeon Graphics
Memory: 16 GiB of RAM (15.0 GiB usable)
Graphics Processor: AMD Radeon Graphics


ADDITIONAL INFORMATION
Both Konsole from repos (25.08.3), and from master https://github.com/KDE/konsole

Attached debugger log from QtCreator, and backtrace from gdb
Comment 1 Oleg 2025-12-06 19:51:36 UTC
Same error in QTerminal https://github.com/lxqt/qterminal/issues/1307
Comment 2 Oleg 2025-12-06 20:41:19 UTC
Looks like duplicate of https://bugs.kde.org/show_bug.cgi?id=511945
Comment 3 Oleg 2025-12-06 20:49:20 UTC

*** This bug has been marked as a duplicate of bug 511945 ***