Bug 202818 - window does not repaint itself when switching to it
Summary: window does not repaint itself when switching to it
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: git master
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-06 16:58 UTC by suppandi G
Modified: 2012-03-19 00:37 UTC (History)
5 users (show)

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


Attachments
screenshot with external camera (617.27 KB, image/jpeg)
2009-08-13 07:40 UTC, suppandi G
Details
real screenshot (473.87 KB, image/png)
2009-09-15 11:09 UTC, Thomas Zell
Details
Screenshot with unrepainted terminal running mc (27.97 KB, image/png)
2010-10-19 07:29 UTC, Artem Anisimov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description suppandi G 2009-08-06 16:58:53 UTC
Version:           2.3 (using KDE 4.3.0)
OS:                Linux
Installed from:    SuSE RPMs

I have kde 4.3 running on the nvidia 180.37.05 driver. When i switch to a konsole window - only the part of the window that was visible (uncovered by other windows) before the switch is still seen. Even the title bar is missing. The only way i can get it back is to move the window and make a full repaint. This doesnot happen with any other applications - only konsole. I tried disabling window effects - but got the same result. 

And i cant produce it everytime either. it happens randomly - but it happens atleast 30% of the time i am switching to a konsole window.


Dont know what logs would be helpful here.

Thanks.
Comment 1 FiNeX 2009-08-06 18:06:21 UTC
can you provide a screenshot too?
Comment 2 suppandi G 2009-08-13 04:00:43 UTC
I've tried this over the last few days, everytime when ksnapshot tries to take a snapshot - the window repaints itself.
Comment 3 Paul Lemmons 2009-08-13 06:02:50 UTC
I am experiencing the same thing. I can not create the situation at will but I am starting to notice a couple things.

- It often happens when I select text
- It will often repaint itself in seemingly random peices
- Switching away from the desktop containging the konsole session and switching back clears the problem
- Every time it does it, it is annoying :)
Comment 4 Paul Lemmons 2009-08-13 06:14:19 UTC
Oops .. forgot to give specs...

Nvidia 180.44
KDE 4.3
Jaunty Jackalope
Kernel: 2.6.28-15-server #48-Ubuntu SMP
Lenovo T61
Comment 5 suppandi G 2009-08-13 07:40:05 UTC
Created attachment 36119 [details]
screenshot with external camera
Comment 6 suppandi G 2009-08-13 07:41:22 UTC
for comment - 5...the beige parts are parts of the konsole window. you can see text around the cursor is always seen. The other parts are random.
Comment 7 Paul Lemmons 2009-08-14 04:55:16 UTC
In your picture, (great idea by the way) is the black part a "selected" area? I am noticing the problem most often when I select a portion of the screen.
Comment 8 suppandi G 2009-08-18 22:53:21 UTC
Yes...the black part is a selection. I have also noticed its related to text selection - but i cant reliably reproduce it.
Comment 9 suppandi G 2009-09-01 00:41:41 UTC
Nobody cares about this bug!!!
Comment 10 Paul Lemmons 2009-09-04 03:01:44 UTC
I think that this bug may be bigger than just konsole. Konsole exhibits it much more severely than any other application but it is not exclusive. I notice it most often when I click in an application to gain its focus. Konsole goes completely away while other applications will only do so partially and not nearly as often.

I also find that running my mouse over any item in the panel that pops up a tap of information causes the application to refresh itself and becomes completely visible again.

I tried the 185 and 190 nvidia drivers with no change in behavior. I have also upgraded to KDE 4.3.1 with no positive effect.

I have looked for other bugs like this one and as of yet have not found any. I will keep looking. This is more than mildly irritating.
Comment 11 Thomas Zell 2009-09-15 11:09:52 UTC
Created attachment 36966 [details]
real screenshot

Managed to take a screenshot by pressing "Print Screen"
Comment 12 Thomas Zell 2009-09-15 12:12:39 UTC
Could this be related to bug 199735 ?
Comment 13 suppandi G 2009-09-22 18:05:29 UTC
I had eclipse do the same thing today.
Comment 14 Thomas Zell 2009-10-06 14:41:34 UTC
This bug is much easier to reproduce if a lot of windows are open: Four desktops with 2 - 3 windows each, as well as a Konsole window).

Almost every time I switch to another desktop and click into a Konsole window, most of it turns invisible.
Comment 15 Paul Lemmons 2009-10-07 04:27:03 UTC
I second Thomas' observations. I have multiple(6) desktops and am seeing the same thing.

I am also running the latest karmic beta(1) so I am up on the latest readily available version of KDE (4.3.1).

Would be nice if there was some indication that the bug had actually been seen and is being looked at... it has been open for a long time without any indication that we are not talking to ourselves.
Comment 16 Paul Lemmons 2009-10-07 06:57:48 UTC
Just upgraded to 4.3.2 and it is still there...
Comment 17 Paul Lemmons 2009-11-12 05:19:46 UTC
kde 4.3.3 ... still there
Comment 18 suppandi G 2010-01-13 07:09:29 UTC
4.4 - hasnt hit yet. maybe its finally fixed!
Comment 19 Paul Lemmons 2010-01-13 07:47:11 UTC
I did something incredibly stupid to my laptop and had to do a clean install to recover. After that the problem completely disappeared. And that was on 4.3.3. Were I a betting man I would say that the alpha's and beta's I used to get from jaunty to karmic munged something that latter updates did not un-mung. The clean install was mung-free :)
Comment 20 FiNeX 2010-01-13 19:34:50 UTC
could this bug be considered as "worksforme" at the current status or is someone still able to reproduce with 4.4?
Comment 21 suppandi G 2010-01-18 21:03:41 UTC
i guess i spoke too soon. I am hitting it again. 

Platform Version 4.4.59 (KDE 4.4.59 (KDE 4.5 >= 20100107)) "release 2"

i think i need lots of text in the window (not in vi) to hit this problem.
Comment 22 Thomas Zell 2010-02-11 16:17:18 UTC
I still see this in the 4.4 release
Comment 23 Thomas Zell 2010-03-07 23:13:01 UTC
I believe this is related to bug 229695.
Comment 24 suppandi G 2010-03-09 14:40:04 UTC
i donot have window decoration translucency or the translucency plugin setup & still hit it
Comment 25 Thomas Zell 2010-08-11 18:58:58 UTC
Upgraded to 4.5 and it's still there, but it's less severe. Now, it only seems to happen when clicking on the window decoration, and not when clicking inside the window.
Comment 26 Gunther Piez 2010-10-12 11:10:24 UTC
This may be caused by the "slide back" effect. If I disable it, the redraw seems to be ok, when I enable it, sooner a later regions of windows are no longer redrawed. I opened a bug at
https://bugs.kde.org/show_bug.cgi?id=253937
Comment 27 Artem Anisimov 2010-10-19 07:27:48 UTC
I have run into this bug after upgrading from 4.4.4 to 4.5.2.

I have an i915 graphics card and I am using xf86-video-intel-2.12 driver.

As for previous reporters, this problem mainly manifests itself with konsole. No repaint of konsole's window happens mainly when I switch tabs inside konsole. The interesting detail is that konsole does repaint parts of terminal that were recently updated. For example, if mc is copying a file, then a progress bar is drawn, but the rest of terminal remains unrepainted.

In my configuration it is simple to reproduce this bug: launch mc and start selecting files by holding insert key down -- in this case names of newly selected become yellow and selected with a bar, but the names of files that were selected several instants before are often left unchanged -- the selection bar is not removed from them. I have attached an image that shows this situation.

I have no desktop effects enabled except "dim parent window", so I believe that this bug is not related to effects, but to detection of regions to be repainted.

Temporarily disabling compositing makes the problem go away.
Comment 28 Artem Anisimov 2010-10-19 07:29:46 UTC
Created attachment 52667 [details]
Screenshot with unrepainted terminal running mc
Comment 29 Thomas Zell 2011-05-08 10:17:02 UTC
I haven't seen this one in a while (I'm now on KDE 4.6.3). Fixed?
Comment 30 Thomas Lübking 2012-03-19 00:37:39 UTC
last comment is 15 months old, render path has seen several changes, i recall a fix against slideback myself
-> closing as "works for me"
in case anyone still encounters the issue: please stand up and reopen the bug.