Every time I try to open a chromium based app on wayland I get errors and most of the time it crashes. In journald I have a bunch of these entries.
[drm:__nv_drm_gem_nvkms_memory_prime_get_sg_table [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Cannot create sg_table for NvKmsKapiMemory 0x00000000c54d9462
I cant seem to figure it out. The only way I can get chromium apps to open as I expect them to is if I do e.g.WAYLAND_DISPLAY= google-chrome
, but that is also flakey. (echo WAYLAND_DISPLAY
â wayland-1
). When I donât do it that way for chrome, half the time it crashes, half the time it takes a few minutes then it opens with all acceleration turned off. For vscode it immediately crashes and even with changing the flag I have not been able to get it to work.
Here is my system info and logs.
Thu Dec 21 14:10:16 2023
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 545.29.06 Driver Version: 545.29.06 CUDA Version: 12.3 |
|-----------------------------------------+----------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+======================+======================|
| 0 NVIDIA GeForce RTX 4050 ... Off | 00000000:01:00.0 Off | N/A |
| N/A 47C P0 19W / 115W | 16MiB / 6141MiB | 0% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+
+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 2165 G /run/current-system/sw/bin/Hyprland 1MiB |
| 0 N/A N/A 2328 G /home/henry/.nix-profile/bin/kitty 8MiB |
+---------------------------------------------------------------------------------------+
Env
NIXOS_OZONE_WL = "1";
XDG_CURRENT_DESKTOP="Hyprland";
XDG_SESSION_TYPE="wayland";
XDG_SESSION_DESKTOP="Hyprland";
LIBVA_DRIVER_NAME = "nvidia";
GBM_BACKEND = "nvidia-drm";
__GL_VRR_ALLOWED="0";
__NV_PRIME_RENDER_OFFLOAD="1";
__NV_PRIME_RENDER_OFFLOAD_PROVIDER="NVIDIA-G0";
__GLX_VENDOR_LIBRARY_NAME="nvidia";
__VK_LAYER_NV_optimus="NVIDIA_only";
Iâve tried variations of removing the above, including all the prime variables.
My journald log:
log.txt (21.8 MB)
Chrome report:
about-gpu-2023-12-21T19-02-29-962Z.txt (84.8 KB)
glxinfo | grep âOpenGLâ
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce RTX 4050 Laptop GPU/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 545.29.06
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6.0 NVIDIA 545.29.06
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 545.29.06
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:
vulkaninfo --summary
WARNING: [Loader Message] Code 0 : terminator_CreateInstance: Failed to CreateInstance in ICD 5. Skipping ICD.
WARNING: [Loader Message] Code 0 : terminator_CreateInstance: Failed to CreateInstance in ICD 6. Skipping ICD.
==========
VULKANINFO
==========
Vulkan Instance Version: 1.3.268
Instance Extensions: count = 23
-------------------------------
VK_EXT_acquire_drm_display : extension revision 1
VK_EXT_acquire_xlib_display : extension revision 1
VK_EXT_debug_report : extension revision 10
VK_EXT_debug_utils : extension revision 2
VK_EXT_direct_mode_display : extension revision 1
VK_EXT_display_surface_counter : extension revision 1
VK_EXT_surface_maintenance1 : extension revision 1
VK_EXT_swapchain_colorspace : extension revision 4
VK_KHR_device_group_creation : extension revision 1
VK_KHR_display : extension revision 23
VK_KHR_external_fence_capabilities : extension revision 1
VK_KHR_external_memory_capabilities : extension revision 1
VK_KHR_external_semaphore_capabilities : extension revision 1
VK_KHR_get_display_properties2 : extension revision 1
VK_KHR_get_physical_device_properties2 : extension revision 2
VK_KHR_get_surface_capabilities2 : extension revision 1
VK_KHR_portability_enumeration : extension revision 1
VK_KHR_surface : extension revision 25
VK_KHR_surface_protected_capabilities : extension revision 1
VK_KHR_wayland_surface : extension revision 6
VK_KHR_xcb_surface : extension revision 6
VK_KHR_xlib_surface : extension revision 6
VK_LUNARG_direct_driver_loading : extension revision 1
Instance Layers: count = 4
--------------------------
VK_LAYER_INTEL_nullhw INTEL NULL HW 1.1.73 version 1
VK_LAYER_MESA_device_select Linux device selection layer 1.3.211 version 1
VK_LAYER_MESA_overlay Mesa Overlay layer 1.3.211 version 1
VK_LAYER_NV_optimus NVIDIA Optimus layer 1.3.260 version 1
Devices:
========
GPU0:
apiVersion = 1.3.260
driverVersion = 545.29.6.0
vendorID = 0x10de
deviceID = 0x28a1
deviceType = PHYSICAL_DEVICE_TYPE_DISCRETE_GPU
deviceName = NVIDIA GeForce RTX 4050 Laptop GPU
driverID = DRIVER_ID_NVIDIA_PROPRIETARY
driverName = NVIDIA
driverInfo = 545.29.06
conformanceVersion = 1.3.6.0
deviceUUID = 031867de-0393-522e-8a42-c0a8119bb85b
driverUUID = 468717c2-5245-5d6d-9401-72b8a4ff98e5
GPU1:
apiVersion = 1.3.246
driverVersion = 23.1.9
vendorID = 0x8086
deviceID = 0xa788
deviceType = PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU
deviceName = Intel(R) Graphics (RPL-S)
driverID = DRIVER_ID_INTEL_OPEN_SOURCE_MESA
driverName = Intel open-source Mesa driver
driverInfo = Mesa 23.1.9
conformanceVersion = 1.3.0.0
deviceUUID = 868088a7-0400-0000-0002-000000000000
driverUUID = 01719c4b-7fa1-4393-001d-4932c8f3b424
GPU2:
apiVersion = 1.3.246
driverVersion = 0.0.1
vendorID = 0x10005
deviceID = 0x0000
deviceType = PHYSICAL_DEVICE_TYPE_CPU
deviceName = llvmpipe (LLVM 16.0.6, 256 bits)
driverID = DRIVER_ID_MESA_LLVMPIPE
driverName = llvmpipe
driverInfo = Mesa 23.1.9 (LLVM 16.0.6)
conformanceVersion = 1.3.1.1
deviceUUID = 6d657361-3233-2e31-2e39-000000000000
driverUUID = 6c6c766d-7069-7065-5555-494400000000
Modesetting is also enabled through nixos config.