I have an issue where opening a campaign in Total War: Warhammer 3 under Proton sometimes causes Xwayland to crash. Runs fine under X11, and the logs show Nvidia driver errors before any other errors. This happened to me on both 555.42 and 555.52, and it also happened simultaneously to me and a friend when joining the same game. It has sometimes seemed to work fine, but then it crashes again. This probably isn’t the only way to provoke the crash, but it’s reasonably consistent.
Fedora 40 KDE and Fedora 40 Kinoite. Kernel 6.8.10. Kwin 6.0.5-3 (patched with explicit sync by Fedora) and Xwayland 24.1.0. Multiple different Proton versions tried(8, 9, 9-GE etc). Running with nvidia-drm.modeset=1 nvidia-drm.fbdev=1 nvidia.NVreg_EnableGpuFirmware=0
Here’s the journal log around the time of the Xwayland crash. I note that there’s a kernel-level error in the nvidia_drm module first, and then kwin logs a syncobj protocol violation, and apps start noticing that Xwayland is dead. This order of events is why I’m here and not in the Xwayland or Kwin bug trackers, but I may be wrong here.
My suspicion is that the driver issue causes the buffer, which is provided by the driver because of fbdev=1
, to disappear. Since the buffer disappeared, Kwin throws a protocol violation “explicit sync is used, but no buffer is attached”, which is fatal to Xwayland.
I’ll probably try without fbdev=1
to see if I’m right about the above, especially if the driver error persists but Xwayland stops crashing.
Jun 08 23:37:38 fedora steam[151092]: WARNING: discarding _NET_WM_PID 5 as invalid for X11 window - use specialized XCB_X11_TO_PID function!
Jun 08 23:37:38 fedora steam[151092]: WARNING: discarding _NET_WM_PID 5 as invalid for X11 window - use specialized XCB_X11_TO_PID function!
Jun 08 23:37:47 fedora kwin_wayland_wrapper[4939]: src/nv_gbm.c:123: GBM-DRV error (nv_gbm_bo_create): DRM_IOCTL_NVIDIA_GEM_ALLOC_NVKMS_MEMORY failed (ret=-1)
Jun 08 23:37:47 fedora kernel: [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000a00] Failed to allocate NVKMS memory for GEM object
Jun 08 23:37:47 fedora kernel: [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000a00] Failed to allocate NVKMS memory for GEM object
Jun 08 23:37:47 fedora kwin_wayland_wrapper[4939]: src/nv_gbm.c:123: GBM-DRV error (nv_gbm_bo_create): DRM_IOCTL_NVIDIA_GEM_ALLOC_NVKMS_MEMORY failed (ret=-1)
Jun 08 23:37:48 fedora kwin_wayland_wrapper[4939]: Error getting buffer
Jun 08 23:37:48 fedora kwin_wayland_wrapper[4819]: error in client communication (pid 4819)
Jun 08 23:37:48 fedora kwin_wayland_wrapper[4939]: XWAYLAND: wp_linux_drm_syncobj_surface_v1@70: error 3: explicit sync is used, but no buffer is attached
Jun 08 23:37:48 fedora kwin_wayland_wrapper[4939]: (EE) failed to dispatch Wayland events: Protocol error
Jun 08 23:37:48 fedora goverlay[171116]: The X11 connection broke (error 1). Did the X11 server die?
Jun 08 23:37:48 fedora xwaylandvideobridge[5326]: The X11 connection broke (error 1). Did the X11 server die?
Here’s a dmesg log from a separate crash:
[ 18.730787] systemd-journald[863]: File /var/log/journal/20b89bf7b2d4455094a72d0dbe3fd0c5/user-1000.journal corrupted or uncleanly shut down, renaming and replacing.
[ 229.193536] nvidia 0000:1c:00.0: Using 47-bit DMA addresses
[ 244.470257] [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00001c00] Failed to allocate NVKMS memory for GEM object
[ 244.470329] [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00001c00] Failed to allocate NVKMS memory for GEM object
The driver errors here seem similar to some of the other posts here, like the two directly above me.