Bug 356723

Summary: Incomplete window updates after updating to Plasma 5.5.0
Product: [Applications] konsole Reporter: Stefan Becker <chemobejk>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: normal CC: bhubbard, caleb, j, jburgess777, kde, lists, mhlavink, nfd, rdieter
Priority: NOR    
Version: 15.08.3   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Contents of ~/.xsession-errors when opening first/second konsole window.

Description Stefan Becker 2015-12-15 08:58:40 UTC
After updating to Plasma 5.5.0 konsole window updates are incomplete. When konsole starts to scroll only the lowest 2-3 lines of text (and some random lines above) are updated. To get the real current content of the konsole window, you have to click outside the konsole window (deactivates window) and click on the konsole window (activates window again).

NOTE: konsole was not updated when I received the Plasma 5.5.0 update. So this issue might be related to Plasma changes. But as far as I can see only konsole has issues with window updates. I updated now to konsole 5.12.0, but the problem is still there.

Several other people I have discussed on IRC with have also noticed this issues on their system with different HW and open source drivers, so this is not an Nvidia issue. I use a Dell laptop with Nvidia blob driver and describe how I can reproduce this on my system.

Changing compositor settings or disabling compositor completely does not fix this problem.

Reproducible: Always

Steps to Reproduce:
- laptop out of docking station, i.e. one screen only
- login to KDE session
- force scrolling in konsole sessions, e.g. commands with many lines of output
-> window updates are OK
- put laptop into docking station, switch to 2 external screens
- force scrolling in konsole sessions or scroll konsole window
-> lowest 2-3 lines are usually updated, randomly some other lines too
- switch back to 1-screen mode (laptop display)
- force scrolling in konsole sessions or scroll konsole window
-> issue is still there





qt5-qtbase-5.5.1-8.fc23.x86_64
kf5-plasma-5.16.0-4.fc23.x86_64
plasma-desktop-5.5.0-4.fc23.x86_64
plasma-workspace-5.5.0-3.fc23.x86_64
kwin-5.5.0-1.fc23.x86_64
konsole5-15.12.0-1.fc23.x86_64
Comment 1 Stefan Becker 2015-12-15 09:00:20 UTC
BTW: I checked https://bugs.kde.org/show_bug.cgi?id=356343 but that looks like a different issue.
Comment 2 Stefan Becker 2015-12-17 15:25:24 UTC
It seems that the running konsole process gets confused. When the windows from the original konsole process start to show the window update problem then a new konsole process started with

   $ konsole --separate

does *not* show the problem. I.e. I now have on my desktop konsole windows with broken scrolling and konsole windows that work fine.

As an update to the original description: try scrolling up & down of a konsole that has many lines in the scroll buffer: you will see updates on the top 2-3 lines and lowest 2-3 lines, but the middle part stays at is is.

BTW: my konsole profile has "Fixed size scrollback" with 1000 lines enabled.
Comment 3 Jon Burgess 2015-12-17 16:23:05 UTC
I had the same issue yesterday but it seems to have gone away today after applying the latest Fedora package updates and rebooting.
Comment 4 Stefan Becker 2015-12-18 11:20:33 UTC
Just updated to latest Fedora 23 "updates" repo contents. Problem is still there.

I checked "updates-testing": there are no new Qt/KF/Plasma/Konsole packages in there, so updating to updates-testing wouldn't solve the problem either.
Comment 5 Jon Burgess 2015-12-20 14:46:40 UTC
(In reply to Stefan Becker from comment #4)
> Just updated to latest Fedora 23 "updates" repo contents. Problem is still
> there.

You are right, the problem re-appeared as soon as I turned one of my monitors off/on.
Comment 6 Fredy Neeser 2015-12-28 17:28:21 UTC
konsole is also broken on Fedora 22 after applying the updates for Plasma 5.5.0 and KDE frameworks 5.17:

The first instance of a konsole window shows a window with title "<user>: bash -- Konsole" but no menu and some random graphical content -- this broken konsole window does not react to keyboard input at all.

The second, third etc. instances of a konsole window (opened while the first instance is still open) work normally.

After closing all konsole window instances, the first konsole opened is again broken.
Comment 7 Fredy Neeser 2015-12-28 17:40:06 UTC
Created attachment 96334 [details]
Contents of ~/.xsession-errors when opening first/second konsole window.

Attachment shows debug messages in ~/.xsession-errors when opening first/second konsole window.  All debug settings were enabled via kdebugsettings.
Comment 8 Fredy Neeser 2015-12-28 17:59:41 UTC
Additional symptoms of this konsole breakage:

- When I switch to a different Profile via Settings > Switch Profile, konsole no longer persists the selected Profile.  When I open a new konsole instance, it again has the (default) Profile.

- Clicking the menu entry Settings > Manage Profiles  does nothing
Comment 9 Stefan Becker 2016-01-15 10:39:41 UTC
Some interesting observations which might narrow down where the actual problem lies. When the konsole window updates are broken, then

* opening a new konsole window (Ctrl-Shift-N): window updates work correctly in new window
* attaching the tab from the new konsole window to an existing konsole window: window updates are broken in that tab now too
* detaching a konsole tab from a window: window updates work correctly in the new detached window
* re-attaching the tab to the old konsole window: window updates are broken again in that tab
* opening new konsole Window (Ctrl-Shift-N) and moving a tab from an old konsole window to the new window: the window updates are broken in all tabs of the new konsole window.
* BUT: detaching a tab from the old window and then moving all tabs from the old to the new window: the resulting "restored" konsole window has working window updates

So the "brokeness" is associated with the window object. Creating a new window object, even from the same konsole process, makes window updates work again.

At least I have now a work-around when the broken window updates get too annoying: just "re-tab" the old window to a new window :-)
Comment 10 Fredy Neeser 2016-02-04 09:37:50 UTC
On Fedora 22, Plasma 5.5.4 (in fact plasma-breeze-5.5.4-1.fc22.x86_64) resolves the problem for me.

See also:
   https://bugzilla.redhat.com/show_bug.cgi?id=1291260
Comment 11 Stefan Becker 2016-02-04 17:38:06 UTC
Confirmed. After latest F23 updates konsole works fine again.

Package information (compare to original description):

Updated previously:

qt5-qtbase-5.5.1-11.fc23.x86_64
kf5-plasma-5.18.0-1.fc23.x86_64

Updates that arrived today:

kwin-5.5.4-1.fc23.x86_64
konsole5-15.12.1-1.fc23.x86_64
plasma-workspace-5.5.4-1.fc23.x86_64
plasma-desktop-5.5.4-1.fc23.x86_64

I don't see any code changes between konsole5 5.12.0 and 5.12.1.

Only two changes between kwin 5.5.3 and 5.5.4. IMHO it could be this change for bug #357543, because it talks about corrupted visuals: https://quickgit.kde.org/?p=kwin.git&a=commitdiff&h=a18177cc24d20bca02f60a95b67f2dcbd1ee8afc

Closing as FIXED.