Bug 192962 - Scrolling in kate and then clicking on a line of text, visually duplicates or removes lines of text
Summary: Scrolling in kate and then clicking on a line of text, visually duplicates or...
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-17 05:35 UTC by Bartemius Crouch
Modified: 2009-08-06 01:55 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bartemius Crouch 2009-05-17 05:35:03 UTC
Version:           3.2.2 (using 4.2.2 (KDE 4.2.2), Kubuntu packages)
Compiler:          cc
OS:                Linux (x86_64) release 2.6.28-11-generic

When scrolling a long text clicking on a individual line duplicates the lines above when scrolling upwards or removes lines when scrolling downwards. The line numbers will be duplicated or removed too. using the arrow up the the problem moves upwards.

Example:
40 a
41 b
42 c
43 d
Clicking on a line after scrolling upwards will give:
40 a
41 b
42 c
41 b Cursor
42 c
Using the arrow up moves this problem
40 a
41 b
40 a Cursor
41 b
42 c
Switching between files or when the window loses focus the lines are correct again.

The problem seems to happen more if the terminal or find in files toolbar is open, but also happens often otherwise.
Comment 1 Vince Boros 2009-07-06 05:19:37 UTC
I have been experiencing the same problem with:

Kate 3.2.2 (using KDE 4.2.2)
Ubuntu 9.04
Kernel Linux 2.6.28-13-generic
GNOME 2.26.1

It appears to be a screen redraw issue on files having more than 139 lines.

After I use the down arrow key to move the cursor to the bottom of the screen, the following happens:
1/ When I press the down arrow key once, the line immediately below the screen overwrites the last line on the screen.
2/ When I press the up arrow key once, the line that was previously overwritten (the last line) overwrites the second last line on the screen.
3/ When I press the up arrow key once, the line that was previously overwritten (the second last line) overwrites the third last line on the screen.
4/ The behaviour in 2/ and 3/ continues in this pattern until the top of the screen.

After I use the up arrow key to move the cursor to the top of the screen, the following happens:
1/ When I press the up arrow key once, the line immediately above the screen overwrites the first line on the screen.
2/ When I press the down arrow key once, the line that was previously overwritten (the first line) inserts between the current first line and the current second line, and all the lines after the second line (including the second line) jump down one line to make room for the inserted line.

I can confirm the earlier report that:
1/ Scrolling up and then clicking the mouse duplicates lines in the redraw.
2/ Scrolling down and then clicking the mouse deletes lines in the redraw.
3/ Defocussing the window corrects the redraw duplication/deletion of lines.
Comment 2 Bartemius Crouch 2009-08-05 03:49:48 UTC
I seem to have solved the issue or at least unable to reproduce it anymore by installing a newer nvidia driver instead of the provided driver(version 180).

I installed version 185.18.29 of the nvidia driver for x64. To install, boot into recovery mode(ubuntu) and choose netroot. Run the installer and ignore the runlevel warning(if ubuntu).  Or do something similar for your vga card/chip and architecture.

http://www.nvidia.com/object/linux_display_amd64_185.18.29.html

If this doesn't work, you can reopen this bug. If it works, could you confirm it here,Vince?

kate 3.2.2 Using KDE 4.2.2 (KDE 4.2.2)
(Ubuntu Jaunty) Linux (x86_64) release 2.6.28-14-generic
Comment 3 Andrius 2009-08-05 19:03:58 UTC
I saw similar behavior in mswindows when kate's window is not maximized, scrolling. It is a display problem and does not change the actual text. I was using 4.2.2-msvc, it seems to be not happening in latest unstable/mingw, I'm going to confirm with latest unstable/msvc later.
Comment 4 Vince Boros 2009-08-06 01:55:48 UTC
Thank you, Bartemius, for the advice to upgrade the NVidia driver.

The short story is that changing the driver has resolved the redraw problem in Kate.

The long story is that the manual installation to version 185.18.29 was not perfect (the kernel still sees version 180.44 but the installed kernel module is version 185, which is likely due only to my unskilled tinkering under the hood of linux).  The system reverted to a default non-nvidia graphics driver, which resolved the redraw issue.  This morning I installed an older nvidia driver (173.14.16 for Linux-x86_64) and the redraw issue still has not reappeared.  Since everything is working, I'll wait until version 185 is available in the package manager before upgrading to 185.

Again, thanks.

Vince