Bug 473393

Summary: Glitch and flickering after resume on nvidia wayland
Product: [Plasma] kwin Reporter: kndevl
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: xaver.hugl
Priority: NOR    
Version First Reported In: 5.27.7   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description kndevl 2023-08-15 03:10:57 UTC
SUMMARY
I have cherry picked the log lines from kwin_wayland* from the journal

Aug 14 19:48:33 host12 kwin_wayland_wrapper[60290]: Errors from xkbcomp are not fatal to the X server
Aug 14 19:48:33 host12 kwin_wayland_wrapper[60290]: >                   X11 cannot support keycodes above 255.
Aug 14 19:48:33 host12 kwin_wayland_wrapper[60290]: > Warning:          Unsupported maximum keycode 708, clipping.
Aug 14 19:48:33 host12 kwin_wayland_wrapper[60290]: The XKEYBOARD keymap compiler (xkbcomp) reports:
Aug 14 19:48:33 host12 kwin_wayland[60209]: kwin_wayland_drm: Failed to create gamma blob! Invalid argument
Aug 14 19:48:33 host12 kwin_wayland_wrapper[60261]: Please use "-listenfd" instead.
Aug 14 19:48:33 host12 kwin_wayland_wrapper[60261]: (WW) Option "-listen" for file descriptors is deprecated
Aug 14 19:48:33 host12 kwin_wayland_wrapper[60261]: Please use "-listenfd" instead.
Aug 14 19:48:33 host12 kwin_wayland_wrapper[60261]: (WW) Option "-listen" for file descriptors is deprecated
Aug 14 19:48:32 host12 kwin_wayland[60209]: kwin_xkbcommon: XKB: inet:324:58: unrecognized keysym "XF86Dictate"
Aug 14 19:48:32 host12 kwin_wayland[60209]: kwin_xkbcommon: XKB: inet:323:58: unrecognized keysym "XF86EmojiPicker"
Aug 14 19:48:32 host12 kwin_wayland[60209]: Virtual Machine:                        no
Aug 14 19:48:32 host12 kwin_wayland[60209]: Texture NPOT support:                   yes
Aug 14 19:48:32 host12 kwin_wayland[60209]: GLSL shaders:                           yes
Aug 14 19:48:32 host12 kwin_wayland[60209]: Requires strict binding:                no
Aug 14 19:48:32 host12 kwin_wayland[60209]: Linux kernel version:                   6.1.44
Aug 14 19:48:32 host12 kwin_wayland[60209]: GLSL version:                           1.40
Aug 14 19:48:32 host12 kwin_wayland[60209]: OpenGL version:                         3.1
Aug 14 19:48:32 host12 kwin_wayland[60209]: GPU class:                              Unknown
Aug 14 19:48:32 host12 kwin_wayland[60209]: Driver version:                         535.98
Aug 14 19:48:32 host12 kwin_wayland[60209]: Driver:                                 NVIDIA
Aug 14 19:48:32 host12 kwin_wayland[60209]: OpenGL shading language version string: 1.40 NVIDIA via Cg compiler
Aug 14 19:48:32 host12 kwin_wayland[60209]: OpenGL version string:                  3.1.0 NVIDIA 535.98
Aug 14 19:48:32 host12 kwin_wayland[60209]: OpenGL renderer string:                 NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2
Aug 14 19:48:32 host12 kwin_wayland[60209]: OpenGL vendor string:                   NVIDIA Corporation
Aug 14 19:48:32 host12 kwin_wayland[60209]: No backend specified, automatically choosing drm
Aug 14 19:48:22 host12 systemd[881]: plasma-kwin_wayland.service: Consumed 49min 43.926s CPU time.
Aug 14 19:48:22 host12 kwin_wayland[975]: QtDBus: cannot relay signals from parent QObject(0x55994ac21080 "") unless they are emitted in the object's thread QThread(0x55994ab6d1d8 "libinput-connection"). Current thread is QThread(0x55994ab1dbe0 "").
Aug 14 19:48:11 host12 kwin_wayland[975]: This plugin does not support raise()
Aug 14 19:48:09 host12 kwin_wayland[975]: This plugin does not support raise()
Aug 14 19:48:07 host12 kwin_wayland[975]: This plugin does not support raise()
Aug 14 19:46:53 host12 kwin_wayland[975]: DesktopGridConfig::instance called after the first use - ignoring
Aug 14 19:46:53 host12 kwin_wayland[975]: KscreenConfig::instance called after the first use - ignoring
Aug 14 19:46:53 host12 kwin_wayland[975]: OverviewConfig::instance called after the first use - ignoring
Aug 14 19:46:53 host12 kwin_wayland[975]: SlideConfig::instance called after the first use - ignoring
Aug 14 19:46:53 host12 kwin_wayland[975]: SlidingPopupsConfig::instance called after the first use - ignoring
Aug 14 19:46:53 host12 kwin_wayland[975]: WindowViewConfig::instance called after the first use - ignoring
Aug 14 19:46:53 host12 kwin_wayland[975]: BlurConfig::instance called after the first use - ignoring
Aug 14 19:46:53 host12 kwin_wayland[975]: Virtual Machine:                        no
Aug 14 19:46:53 host12 kwin_wayland[975]: Texture NPOT support:                   yes
Aug 14 19:46:53 host12 kwin_wayland[975]: GLSL shaders:                           yes
Aug 14 19:46:53 host12 kwin_wayland[975]: Requires strict binding:                no
Aug 14 19:46:53 host12 kwin_wayland[975]: Linux kernel version:                   6.1.44
Aug 14 19:46:53 host12 kwin_wayland[975]: X server version:                       1.23.1
Aug 14 19:46:53 host12 kwin_wayland[975]: GLSL version:                           1.40
Aug 14 19:46:53 host12 kwin_wayland[975]: OpenGL version:                         3.1
Aug 14 19:46:53 host12 kwin_wayland[975]: GPU class:                              Unknown
Aug 14 19:46:53 host12 kwin_wayland[975]: Driver version:                         535.98
Aug 14 19:46:53 host12 kwin_wayland[975]: Driver:                                 NVIDIA
Aug 14 19:46:53 host12 kwin_wayland[975]: OpenGL shading language version string: 1.40 NVIDIA via Cg compiler
Aug 14 19:46:53 host12 kwin_wayland[975]: OpenGL version string:                  3.1.0 NVIDIA 535.98
Aug 14 19:46:53 host12 kwin_wayland[975]: OpenGL renderer string:                 NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2
Aug 14 19:46:53 host12 kwin_wayland[975]: OpenGL vendor string:                   NVIDIA Corporation
Aug 14 19:46:53 host12 kwin_wayland[975]: kwin_scene_opengl: A graphics reset attributable to the current GL context occurred.
Aug 14 19:46:53 host12 kwin_wayland[975]: kwin_wayland_drm: Failed to create gamma blob! Invalid argument
Aug 14 19:46:53 host12 kernel: NVRM: Xid (PCI:0000:09:00): 13, pid=975, name=kwin_wayland, Graphics Exception: ChID 0010, Class 0000c197, Offset 00002410, Data 00000010


STEPS TO REPRODUCE
1. Suspend and resume

OBSERVED RESULT
The entire desktop and window decorations were glitching and flickering. However, the web pages inside firefox were still working fine. 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: ArchLinux
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
Linux 6.1.44
Nvidia 535.98-1
Comment 1 kndevl 2023-08-15 03:16:34 UTC
These are from roughly the same time

Aug 14 19:46:53 host12 kernel: NVRM: Xid (PCI:0000:09:00): 13, pid=1025, name=Xwayland, Graphics Exception: ChID 0018, Class 0000c197, Offset 000034a4, Data 00000f20
Aug 14 19:46:53 host12 kernel: NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: ESR 0x405848=0x80000000
Aug 14 19:46:53 host12 kernel: NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: ESR 0x405840=0xa204021e
Aug 14 19:46:53 host12 kernel: NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: Shader Program Header 18 Error
Aug 14 19:46:53 host12 kernel: NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: Shader Program Header 9 Error
Aug 14 19:46:53 host12 kernel: NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: Shader Program Header 4 Error
Aug 14 19:46:53 host12 kernel: NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: Shader Program Header 3 Error
Aug 14 19:46:53 host12 kernel: NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: Shader Program Header 2 Error
Aug 14 19:46:53 host12 kernel: NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: Shader Program Header 1 Error

Aug 14 19:46:53 host12 kernel: NVRM: Xid (PCI:0000:09:00): 13, pid=975, name=kwin_wayland, Graphics Exception: ChID 0010, Class 0000c197, Offset 00002410, Data 00000010
Aug 14 19:46:53 host12 kernel: NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: ESR 0x405848=0x80000000
Aug 14 19:46:53 host12 kernel: NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: ESR 0x405840=0x8204021e
Aug 14 19:46:53 host12 kernel: NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: Shader Program Header 18 Error
Aug 14 19:46:53 host12 kernel: NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: Shader Program Header 9 Error
Aug 14 19:46:53 host12 kernel: NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: Shader Program Header 4 Error
Aug 14 19:46:53 host12 kernel: NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: Shader Program Header 3 Error
Aug 14 19:46:53 host12 kernel: NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: Shader Program Header 2 Error
Aug 14 19:46:53 host12 kernel: NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: Shader Program Header 1 Error
Aug 14 19:46:53 host12 kernel: NVRM: GPU at PCI:0000:09:00: GPU-098c5cac-7d13-270f-d19e-fb0ec8735134
Comment 2 Zamundaaa 2023-08-16 17:33:52 UTC

*** This bug has been marked as a duplicate of bug 472676 ***