Bug 404973

Summary: Konsole 18.12.2 regression: cursor lingers where typing has already occurred
Product: [Applications] konsole Reporter: A. Wilcox (awilfox) <awilfox>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED DUPLICATE    
Severity: normal CC: m.j.everitt, nate, wbauer1
Priority: NOR    
Version: 18.12.2   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description A. Wilcox (awilfox) 2019-03-02 00:02:35 UTC
SUMMARY
Upgraded from Konsole 18.08.3 to 18.12.2.  Now there are random _ everywhere in the Konsole output.


STEPS TO REPRODUCE
1. Open Konsole 18.12.2.
2. Type a few commands.

OBSERVED RESULT
awilcox on gwyn [pts/4 Fri 1 17:52] ~: _c_d _ _ Downloads_

The 'c' is underlined, as if the cursor was still present there; it is not.  The space between 'cd' and 'Downloads', where the cursor lingered while I was writing this paragraph, is also underlined like a cursor is still present.


EXPECTED RESULT
awilcox on gwyn [pts/4 Fri 1 17:52] ~: cd Downloads_


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux gwyn 4.14.88-mc13-easy-power8 #1 SMP Fri Feb 22 21:12:46 UTC 2019 ppc64
KDE Plasma Version: 5.12.7 LTS
KDE Frameworks Version: 5.54.0
Qt Version: 5.9.7 LTS

ADDITIONAL INFORMATION
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: X.Org (0x1002)
    Device: AMD CAICOS (DRM 2.50.0 / 4.14.88-mc13-easy-power8, LLVM 6.0.1) (0x6779)
    Version: 18.3.2
    Accelerated: yes
    Video memory: 2048MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 3.2
    Max compat profile version: 3.1
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.1
OpenGL vendor string: X.Org
OpenGL renderer string: AMD CAICOS (DRM 2.50.0 / 4.14.88-mc13-easy-power8, LLVM 6.0.1)
OpenGL core profile version string: 3.2 (Core Profile) Mesa 18.3.2
OpenGL core profile shading language version string: 1.50

Compositing is not active, due to Mesa bugs.
Comment 1 Nate Graham 2019-03-02 13:10:50 UTC
I don't see this on my Konsole 18.12.2 with mostly stock appearance settings. Do you have any custom fonts, font sizes, color schemes, or widget themes active that might help explain this? And is it reproducible when compositing *is* enabled?
Comment 2 Wolfgang Bauer 2019-03-02 18:50:07 UTC
(In reply to Nate Graham from comment #1)
> I don't see this on my Konsole 18.12.2 with mostly stock appearance
> settings.

I can reproduce it here.

But this is about the "Underline" cursor, you need to switch to that in the profile settings (Advanced tab->Cursor Shape).

The cursor seems to be rendered slightly wrong since anti-aliasing was introduced, and that likely causes the "lingering" artifact.

The standard block cursor had a similar problem but that was fixed in 18.12.1 with https://cgit.kde.org/konsole.git/commit/?h=Applications/18.12&id=b48ecb5712037027e6385515c9eced7fabfc3dc3

And the "I-Beam" cursor is also still rendered wrong, although that doesn't seem to cause any artifacts here.

> And is it reproducible when
> compositing *is* enabled?

Yes, it does happen with compositing on here.

Btw, this is probably a duplicate of bug#402589 I think.
Comment 3 Nate Graham 2019-03-02 20:57:25 UTC
Can reproduce now, if I use the underline cursor. :( Looks like a duplicate, indeed.

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