Summary: | Konsole crashed while I was selecting text, causing the window to scroll up | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | Lincoln Ramsay <a1291762> |
Component: | copy-paste | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | b7.10110111, bugs.kde.org, jwbruno, kde, kristoffer.grundstrom1983, laurent.postic, manuel, nathanmonfils, nico.kruber, simonandric5, vivo75+kde |
Priority: | NOR | ||
Version: | 17.04.2 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/konsole/f98c752bce9fa11f1e81cf6ef8c02b3c3861c341 | Version Fixed In: | 18.04 |
Sentry Crash Report: | |||
Attachments: | New crash information added by DrKonqi |
Description
Lincoln Ramsay
2014-09-11 02:35:29 UTC
*** Bug 381680 has been marked as a duplicate of this bug. *** *** Bug 350151 has been marked as a duplicate of this bug. *** *** Bug 359886 has been marked as a duplicate of this bug. *** *** Bug 369397 has been marked as a duplicate of this bug. *** *** Bug 382027 has been marked as a duplicate of this bug. *** *** Bug 383997 has been marked as a duplicate of this bug. *** Created attachment 109695 [details]
New crash information added by DrKonqi
konsole (17.12.0) using Qt 5.10.0
- What I was doing when the application crashed:
Selecting a bunch of text from bottom to top, causing the window to scroll up. It takes quite a few lines before the crash occurs (I would say about 50).
-- Backtrace (Reduced):
#5 0x00007fb750789fbd in Konsole::TerminalDisplay::charClass(Konsole::Character const&) const () from /usr/lib/libkonsoleprivate.so.17
#6 0x00007fb75078f74e in Konsole::TerminalDisplay::findWordEnd(QPoint const&) () from /usr/lib/libkonsoleprivate.so.17
#7 0x00007fb750791226 in Konsole::TerminalDisplay::extendSelection(QPoint const&) () from /usr/lib/libkonsoleprivate.so.17
#8 0x00007fb75078bfdc in Konsole::TerminalDisplay::mouseMoveEvent(QMouseEvent*) () from /usr/lib/libkonsoleprivate.so.17
#9 0x00007fb74dfdee38 in QWidget::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
It seems this happens only when word-selecting, i.e. double-click the text, then move the mouse cursor up. I can reliably reproduce the problem when doing the following: 1. Open Konsole 2. Type in bash prompt: for((i=0;i<1000;++i)); do echo Hello, world $i; done 3. Run the command typed 4. Double-click the last appeared word "world" and drag it above the terminal viewport so that the terminal starts to scroll. The double-click&drag pattern is like "Press-release-press-drag left mouse button" 5. It'll scroll not much before it crashes. I was able to get it scroll by one line and crash, but it seems this depends on the text column the mouse cursor is above, so if you still fail to reproduce, try moving the cursor left-right while holding it above the terminal viewport. Thanks for the steps to reproduce - crashes on master as well Git commit f98c752bce9fa11f1e81cf6ef8c02b3c3861c341 by Kurt Hindenburg. Committed on 21/01/2018 at 18:44. Pushed by hindenburg into branch 'master'. Reverts: Fix double click can only select text within visible region Partial revert of 914067d14a6a27b59bba1c53cc18cb67eb9811fc Change to use old code while leaving (not used) new code in. Fixes reproduciable crashes: Konsole::TerminalDisplay::findWordEnd() Konsole::TerminalDisplay::charClass(image[j]); -> invalid location I was not able to get the triple click code to crash which was the previous patch to this. FIXED-IN: 18.04 M +96 -11 src/TerminalDisplay.cpp https://commits.kde.org/konsole/f98c752bce9fa11f1e81cf6ef8c02b3c3861c341 *** Bug 398861 has been marked as a duplicate of this bug. *** *** Bug 411170 has been marked as a duplicate of this bug. *** |