Bug 490518 - my second screen lag
Summary: my second screen lag
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: platform-drm (show other bugs)
Version: 6.1.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-19 18:07 UTC by Cherkah
Modified: 2024-07-22 19:41 UTC (History)
2 users (show)

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


Attachments
dmesg-drm-debug.log (1.08 MB, text/x-log)
2024-07-20 16:31 UTC, Cherkah
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cherkah 2024-07-19 18:07:36 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
since the 6.1.3 update my external screen lag (mouse, video ....)
that is my only log about this issue:
kwin_wayland: kwin_scene_opengl: Invalid framebuffer status:  "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT"




SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Kernel Version: 6.9.10-arch1-1 (64-bit)
Graphics Platform: Wayland


ADDITIONAL INFORMATION

Graphics:
Device-1: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] driver: nvidia
v: 555.58.02
Device-2: Chicony Integrated Camera driver: uvcvideo type: USB
Display: wayland server: X.org v: 1.21.1.13 with: Xwayland v: 24.1.1
compositor: kwin_wayland driver: X: loaded: nvidia unloaded: modesetting
gpu: nvidia resolution: 1: 1920x1080 2: 1536x864
API: EGL v: 1.5 drivers: nvidia,swrast,zink
platforms: gbm,wayland,x11,surfaceless,device
API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 555.58.02
renderer: NVIDIA GeForce GTX 1650/PCIe/SSE2
API: Vulkan v: 1.3.279 drivers: nvidia surfaces: xcb,xlib,wayland
Comment 1 Cherkah 2024-07-20 15:22:59 UTC
is you need more info:

- sddm-greeter-qt6[1116]: Reading from "/usr/local/share/wayland-sessions/plasma.desktop"
- sddm-greeter-qt6[1116]: Reading from "/usr/share/wayland-sessions/plasma.desktop"
- sddm-greeter-qt6[1116]: Reading from "/usr/share/wayland-sessions/plasma.desktop"
- sddm[1043]: Reading from "/usr/share/wayland-sessions/plasma.desktop"
- sddm[1043]: Session "/usr/share/wayland-sessions/plasma.desktop" selected, command: "/usr/lib/plasma-dbus-run-session-if-needed /usr/bin/startplasma-wayland" for VT 1
- sddm-helper[1138]: Starting Wayland user session: "/usr/share/sddm/scripts/wayland-session" "/usr/lib/plasma-dbus-run-session-if-needed /usr/bin/startplasma-wayland"
- systemd[1146]: Started Xwayland Video Bridge.
- xwaylandvideobridge[1629]: libEGL warning: egl: failed to create dri2 screen
- solaar[1635]: rules cannot access modifier keys in Wayland, accessing process only works on GNOME with Solaar - kwin_wayland[1253]: kf.windowsystem: static bool KX11Extras::mapViewport() may only be used on X11
- kwin_wayland[1253]: kwin_core: Cannot grant a token to KWin::ClientConnection(0x567d95e35850)
- plasmashell[1380]: kf.windowsystem.wayland: Failed to recreate shadow for NotificationPopup_QMLTYPE_355_QML_397(0x5b887305d030)
- plasmashell[1380]: kf.windowsystem.wayland: Failed to recreate shadow for notificationPopup_QMLTYPE_355_QML_397(0x79ae6c00a490)
- kwin_wayland[1253]: kf.windowsystem: static bool KX11Extras::mapViewport() may only be used on X11
- kwin_wayland[1253]: kwin_scene_opengl: 0x501: GL_INVALID_VALUE error generated. <levels>,<width> and <height> must be 1 or greater.
- kwin_wayland[1253]: kwin_scene_opengl: Invalid framebuffer status:  "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT"
- kwin_wayland[1253]: kwin_scene_opengl: 0x502: GL_INVALID_OPERATION error generated. Framebuffer name must be generated before being bound.
- kwin_wayland[1253]: kwin_scene_opengl: 0x506: GL_INVALID_FRAMEBUFFER_OPERATION error generated. Operation is not valid because a bound framebuffer is not framebuffer complete.
Comment 2 Cherkah 2024-07-20 16:31:39 UTC
Created attachment 171829 [details]
dmesg-drm-debug.log
Comment 3 Zamundaaa 2024-07-21 17:19:38 UTC
Looks like roughly every second atomic commit fails. Unfortunately NVidia's debug logging is very sparse and doesn't reveal why they fail...

Afaict there's no commits between 6.1.2 and 6.1.3 that could cause this; could you test downgrading KWin to 6.1.2 and check if that's really the change that made this happen?
Comment 4 Cherkah 2024-07-22 14:59:44 UTC
ok solved by changing the refresh rate of my screen.

 the freezes was also fixed with the new egl-wayland update
Comment 5 Zamundaaa 2024-07-22 19:41:09 UTC
Okay, then it's definitely a driver bug - KWin doesn't use the driver APIs differently with different refresh rates.
Please report that at https://forums.developer.nvidia.com/c/gpu-graphics/linux