Bug 423715

Summary: freeze on monitor disconnect with opengl enabled
Product: [Plasma] kwin Reporter: Michael Schima <michael>
Component: compositingAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: view of the corrupted screen

Description Michael Schima 2020-06-30 21:56:41 UTC
Created attachment 129801 [details]
view of the corrupted screen

Plasma freezes when I unplugging the display that came up first when booting (the one that showed the kernel log) when multiple displays are used
The issue also occurs when booted with a single display and another is added later
Note that this only happens when the compositor is enabled and using opengl 2.0 or 3.1, not with xrandr backend.

When plugged back in, the previously disconnected display seems to spill graphics memory. (see attached images)


STEPS TO REPRODUCE
1. identify the monitor that shows the kernel log on boot up
2. log into a plasma session
3. disconnect the monitor that showed the kernel log (the freeze should now occur)
4. reconnecting does not solve the issue

The issue does NOT occur when:
 - Only a single display is connected to the system
 - compositor is disabled or using xrandr

Displays used:
1:Displayport - Samsung U28E570D (2160p)
2: HDMI - Samsung T23B350 (1080p)

System Information:
Operating System: Arch Linux
KDE Plasma Version: 5.19.2
KDE Frameworks Version: 5.71.0
Qt Version: 5.15.0
Kernel Version: 5.7.6-arch1-1
OS Type: 64-bit
Processors: 16 × AMD Ryzen 7 2700X Eight-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon RX 5700 XT

GL_VERSION: 4.6 (Compatibility Profile) Mesa 20.1.2
GL_RENDERER: AMD Radeon RX 5700 XT (NAVI10, DRM 3.37.0, 5.7.6-arch1-1, LLVM 10.0.0)
GL_VENDOR: X.Org
GL_SHADING_LANGUAGE_VERSION = 4.60
GLU_VERSION: 1.3
GLU_EXTENSIONS: GLU_EXT_nurbs_tessellator GLU_EXT_object_space_tess 
GLUT_API_VERSION: 4
GLUT_XLIB_IMPLEMENTATION: 13
Comment 1 Justin Zobel 2022-10-12 03:50:02 UTC
Thank you for reporting this crash in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the crash with a recent software version?

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
Comment 2 Bug Janitor Service 2022-10-27 05:04:09 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Michael Schima 2022-10-31 21:20:55 UTC
After some some short testing I concluded that the bug does not seem to occur in a recent version.
However it got resolved, Thanks :)

Operating System: Arch Linux
KDE Plasma Version: 5.26.2
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6
Kernel Version: 6.0.5-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 2700X Eight-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon RX 5700 XT

Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon RX 5700 XT (navi10, LLVM 14.0.6, DRM 3.48, 6.0.5-arch1-1)
OpenGL version string: 4.6 (Compatibility Profile) Mesa 22.2.1
OpenGL platform interface: GLX
OpenGL shading language version string: 4.60
Driver: Unknown
GPU class: Unknown
OpenGL version: 4.6
GLSL version: 4.60
Mesa version: 22.2.1
X server version: 1.21.1