Bug 476036

Summary: content of the terminal is misrendered/missing a part
Product: [Applications] konsole Reporter: Jiri Slaby <jirislaby>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: 24.02.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: konsole misrendered

Description Jiri Slaby 2023-10-24 06:58:32 UTC
Created attachment 162526 [details]
konsole misrendered

SUMMARY
I have a multimonitor setup on wayland:
> $ kscreen-doctor -o
> Output: 1 eDP-1 enabled connected priority 1 Panel Modes: 0:1920x1200@60*! 1:1920x1200@50 2:1920x1200@48 3:1920x1080@60 4:1600x1200@60 5:1680x1050@60 6:1280x1024@60 7:1440x900@60 8:1280x800@60 9:1280x720@60 10:1024x768@60 11:800x600@60 12:640x480@60 13:1600x1200@60 14:1280x1024@60 15:1024x768@60 16:1920x1200@60 17:1280x800@60 18:1920x1080@60 19:1600x900@60 20:1368x768@60 21:1280x720@60 Geometry: 489,1440 1536x960 Scale: 1.25 Rotation: 1 Overscan: 0 Vrr: Automatic RgbRange: unknown
> Output: 2 DP-7 enabled connected priority 2 DisplayPort Modes: 0:3840x2160@60*! 1:3840x2160@60 2:3840x2160@60 3:3840x2160@50 4:3840x2160@30 5:3840x2160@30 6:3840x2160@30 7:2560x1440@60 8:1920x1080@60 9:1920x1080@60 10:1920x1080@60 11:1920x1080@50 12:1920x1080@50 13:1680x1050@60 14:1600x900@60 15:1280x1024@75 16:1280x1024@60 17:1440x900@60 18:1280x800@60 19:1152x864@75 20:1280x720@60 21:1280x720@60 22:1280x720@60 23:1280x720@50 24:1024x768@75 25:1024x768@70 26:1024x768@60 27:832x624@75 28:800x600@75 29:800x600@72 30:800x600@60 31:800x600@56 32:720x576@50 33:720x480@60 34:720x480@60 35:640x480@75 36:640x480@73 37:640x480@67 38:640x480@60 39:640x480@60 40:720x400@70 41:1600x1200@60 42:1280x1024@60 43:1024x768@60 44:2560x1600@60 45:1920x1200@60 46:1280x800@60 47:3840x2160@60 48:3200x1800@60 49:2880x1620@60 50:2560x1440@60 51:1920x1080@60 52:1600x900@60 53:1368x768@60 54:1280x720@60 Geometry: 0,0 2560x1440 Scale: 1.5 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown

(mind the scales)

I have konsoles on this DP-7 monitor.

STEPS TO REPRODUCE
1. switch from one desktop to another
2. maybe vertical maximization and restore to original size is needed before, I don't know for sure

OBSERVED RESULT
Sometimes, one of the konsoles is misrendered. See the attachment. It looks like scaled down by 1.2 -- from 1093 px (the window) to 910 (the rendered content).

EXPECTED RESULT
Proper rendering. Is this konsole's fault? Or is it perhaps some plasma component?

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20231022
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10
Kernel Version: 6.5.7-9.g4e7c99b-default (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 PRO 6850U with Radeon Graphics
Memory: 29.9 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: LENOVO
Product Name: 21CRS0K83K
System Version: ThinkPad T14s Gen 3
Comment 1 Jiri Slaby 2023-10-24 07:25:35 UTC
(In reply to Jiri Slaby from comment #0)
> STEPS TO REPRODUCE
> 1. switch from one desktop to another
> 2. maybe vertical maximization and restore to original size is needed
> before, I don't know for sure

Thinking about it, this is likely related/needed:
When monitors go to dpms off (after inactivity), it takes so long for the DP-7 output to come up, so that plasma "forgets" the output temporarily and moves all windows to eDP. After a second or two, all is moved back to place on DP-7. And this likely causes the problem -- the window is then distorted.
Comment 2 Jiri Slaby 2024-03-22 07:06:41 UTC
Still happens with konsole-24.02.0-1.1.x86_64.