Trouble starting Blender on Wayland with dedicated NVIDIA card #112168

Closed
opened 2023-09-09 02:31:14 +02:00 by bgc · 7 comments

System Information
Operating system: openSUSE Tumbleweed
Graphics card: NVIDIA Corporation GA106M / GeForce RTX 3060

Blender Version
Broken: 3.61, 8bda729ef4, 2023-07-17

When trying to launch Blender, with Wayland using my dedicated graphics card through switcherooctl, I'm getting "EGL_BAD_SURFACE" errors:

EGL Error (0x300D): EGL_BAD_SURFACE: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering.

This causes Blender to hang, and cannot respond to Wayland events and can't close, so I have to end the process with GNOME system monitor, or with the command: killall -s 9 blender.

Exact steps for others to reproduce the error
switcherooctl launch -g 1 ~/Downloads/blender-3.6.1-linux-x64/blender

**System Information** Operating system: openSUSE Tumbleweed Graphics card: NVIDIA Corporation GA106M / GeForce RTX 3060 **Blender Version** Broken: 3.61, 8bda729ef4dc, 2023-07-17 When trying to launch Blender, with Wayland using my dedicated graphics card through switcherooctl, I'm getting "EGL_BAD_SURFACE" errors: ``` EGL Error (0x300D): EGL_BAD_SURFACE: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering. ``` This causes Blender to hang, and cannot respond to Wayland events and can't close, so I have to end the process with GNOME system monitor, or with the command: `killall -s 9 blender`. **Exact steps for others to reproduce the error** switcherooctl launch -g 1 ~/Downloads/blender-3.6.1-linux-x64/blender
bgc added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-09-09 02:31:15 +02:00
Member

Hi @bgc , could you try starting blender with ./blender --debug-gpu-force-workarounds and see what happens? Does your computer have dedicated nvidia driver (installed with official download .run file)?

Also, please try using latest 4.0 or 3.6 daily build and see if problem persists.

Does your computer have integrated graphics? Could you use glxinfo -B and give us the output?

Hi @bgc , could you try starting blender with `./blender --debug-gpu-force-workarounds` and see what happens? Does your computer have dedicated nvidia driver (installed with official download `.run` file)? Also, please try using latest 4.0 or 3.6 daily build and see if problem persists. Does your computer have integrated graphics? Could you use `glxinfo -B` and give us the output?
Author

Hi @bgc , could you try starting blender with ./blender --debug-gpu-force-workarounds and see what happens?

I tried that, and the same issue occurs with version 3.6.2, and with 4.6.0. I notice with version 4, that the main window responds to quitting in the GNOME shell, along with extra output in the console:

Saved session recovery to "/tmp/quit.blend"
GHOST/Wayland: warning: queue 0x7f405dfcbba0 destroyed while proxies still attached:
./blender() [0xf23410]
/lib64/libwayland-client.so.0(+0x686a) [0x7f406894686a]
/lib64/libwayland-client.so.0(+0x82c1) [0x7f40689482c1]
/lib64/libwayland-client.so.0(wl_event_queue_destroy+0x24) [0x7f4068948394]
/lib64/libnvidia-egl-wayland.so.1(+0x8880) [0x7f405231c880]
/lib64/libnvidia-egl-wayland.so.1(+0x9847) [0x7f405231d847]
/lib64/libEGL_nvidia.so.0(+0xabc40) [0x7f404feabc40]
/lib64/libEGL_nvidia.so.0(+0x49147) [0x7f404fe49147]
./blender() [0x2395911]
./blender() [0x2395ac7]
./blender() [0x2395ad9]
./blender() [0x23832c5]
./blender() [0xf61855]
./blender() [0xf4ad31]
./blender() [0xf4aff7]
./blender() [0xf4b01b]
./blender() [0xf3cffd]
./blender() [0xf3dc9d]
./blender() [0xf3e773]
./blender() [0xf31370]
./blender() [0x71a56b]
/lib64/libc.so.6(+0x281b0) [0x7f406d0281b0]
/lib64/libc.so.6(__libc_start_main+0x8b) [0x7f406d028279]
./blender() [0x8b56be]
GHOST/Wayland:   zwp_linux_dmabuf_feedback_v1@57 still attached
./blender() [0xf23410]
/lib64/libwayland-client.so.0(+0x686a) [0x7f406894686a]
/lib64/libwayland-client.so.0(+0x833e) [0x7f406894833e]
/lib64/libwayland-client.so.0(wl_event_queue_destroy+0x24) [0x7f4068948394]
/lib64/libnvidia-egl-wayland.so.1(+0x8880) [0x7f405231c880]
/lib64/libnvidia-egl-wayland.so.1(+0x9847) [0x7f405231d847]
/lib64/libEGL_nvidia.so.0(+0xabc40) [0x7f404feabc40]
/lib64/libEGL_nvidia.so.0(+0x49147) [0x7f404fe49147]
./blender() [0x2395911]
./blender() [0x2395ac7]
./blender() [0x2395ad9]
./blender() [0x23832c5]
./blender() [0xf61855]
./blender() [0xf4ad31]
./blender() [0xf4aff7]
./blender() [0xf4b01b]
./blender() [0xf3cffd]
./blender() [0xf3dc9d]
./blender() [0xf3e773]
./blender() [0xf31370]
./blender() [0x71a56b]
/lib64/libc.so.6(+0x281b0) [0x7f406d0281b0]
/lib64/libc.so.6(__libc_start_main+0x8b) [0x7f406d028279]
./blender() [0x8b56be]
GHOST/Wayland:   zwp_linux_dmabuf_feedback_v1@55 still attached
./blender() [0xf23410]
/lib64/libwayland-client.so.0(+0x686a) [0x7f406894686a]
/lib64/libwayland-client.so.0(+0x833e) [0x7f406894833e]
/lib64/libwayland-client.so.0(wl_event_queue_destroy+0x24) [0x7f4068948394]
/lib64/libnvidia-egl-wayland.so.1(+0x8880) [0x7f405231c880]
/lib64/libnvidia-egl-wayland.so.1(+0x9847) [0x7f405231d847]
/lib64/libEGL_nvidia.so.0(+0xabc40) [0x7f404feabc40]
/lib64/libEGL_nvidia.so.0(+0x49147) [0x7f404fe49147]
./blender() [0x2395911]
./blender() [0x2395ac7]
./blender() [0x2395ad9]
./blender() [0x23832c5]
./blender() [0xf61855]
./blender() [0xf4ad31]
./blender() [0xf4aff7]
./blender() [0xf4b01b]
./blender() [0xf3cffd]
./blender() [0xf3dc9d]
./blender() [0xf3e773]
./blender() [0xf31370]
./blender() [0x71a56b]
/lib64/libc.so.6(+0x281b0) [0x7f406d0281b0]
/lib64/libc.so.6(__libc_start_main+0x8b) [0x7f406d028279]
./blender() [0x8b56be]
GHOST/Wayland:   zwp_linux_dmabuf_feedback_v1@48 still attached
./blender() [0xf23410]
/lib64/libwayland-client.so.0(+0x686a) [0x7f406894686a]
/lib64/libwayland-client.so.0(+0x833e) [0x7f406894833e]
/lib64/libwayland-client.so.0(wl_event_queue_destroy+0x24) [0x7f4068948394]
/lib64/libnvidia-egl-wayland.so.1(+0x8880) [0x7f405231c880]
/lib64/libnvidia-egl-wayland.so.1(+0x9847) [0x7f405231d847]
/lib64/libEGL_nvidia.so.0(+0xabc40) [0x7f404feabc40]
/lib64/libEGL_nvidia.so.0(+0x49147) [0x7f404fe49147]
./blender() [0x2395911]
./blender() [0x2395ac7]
./blender() [0x2395ad9]
./blender() [0x23832c5]
./blender() [0xf61855]
./blender() [0xf4ad31]
./blender() [0xf4aff7]
./blender() [0xf4b01b]
./blender() [0xf3cffd]
./blender() [0xf3dc9d]
./blender() [0xf3e773]
./blender() [0xf31370]
./blender() [0x71a56b]
/lib64/libc.so.6(+0x281b0) [0x7f406d0281b0]
/lib64/libc.so.6(__libc_start_main+0x8b) [0x7f406d028279]
./blender() [0x8b56be]
GHOST/Wayland:   zwp_linux_dmabuf_v1@53 still attached
./blender() [0xf23410]
/lib64/libwayland-client.so.0(+0x686a) [0x7f406894686a]
/lib64/libwayland-client.so.0(+0x833e) [0x7f406894833e]
/lib64/libwayland-client.so.0(wl_event_queue_destroy+0x24) [0x7f4068948394]
/lib64/libnvidia-egl-wayland.so.1(+0x8880) [0x7f405231c880]
/lib64/libnvidia-egl-wayland.so.1(+0x9847) [0x7f405231d847]
/lib64/libEGL_nvidia.so.0(+0xabc40) [0x7f404feabc40]
/lib64/libEGL_nvidia.so.0(+0x49147) [0x7f404fe49147]
./blender() [0x2395911]
./blender() [0x2395ac7]
./blender() [0x2395ad9]
./blender() [0x23832c5]
./blender() [0xf61855]
./blender() [0xf4ad31]
./blender() [0xf4aff7]
./blender() [0xf4b01b]
./blender() [0xf3cffd]
./blender() [0xf3dc9d]
./blender() [0xf3e773]
./blender() [0xf31370]
./blender() [0x71a56b]
/lib64/libc.so.6(+0x281b0) [0x7f406d0281b0]
/lib64/libc.so.6(__libc_start_main+0x8b) [0x7f406d028279]
./blender() [0x8b56be]

Blender quit

Does your computer have dedicated nvidia driver (installed with official download .run file)?

I am using the official YUM repository for NVIDIA drivers on OpenSUSE: https://download.nvidia.com/opensuse/tumbleweed

Also, please try using latest 4.0 or 3.6 daily build and see if problem persists.
Does your computer have integrated graphics? Could you use glxinfo -B and give us the output?

I have AMD Ryzen 5600H which includes Radeon graphics, and my dedicated RTX 3060, according to the output of glxinfo -B:

display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: AMD (0x1002)
    Device: AMD Radeon Graphics (renoir, LLVM 16.0.6, DRM 3.52, 6.4.12-1-default) (0x1638)
    Version: 23.1.6
    Accelerated: yes
    Video memory: 512MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
    VBO free memory - total: 50 MB, largest block: 50 MB
    VBO free aux. memory - total: 11345 MB, largest block: 11345 MB
    Texture free memory - total: 50 MB, largest block: 50 MB
    Texture free aux. memory - total: 11345 MB, largest block: 11345 MB
    Renderbuffer free memory - total: 50 MB, largest block: 50 MB
    Renderbuffer free aux. memory - total: 11345 MB, largest block: 11345 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 512 MB
    Total available memory: 12199 MB
    Currently available dedicated video memory: 50 MB
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon Graphics (renoir, LLVM 16.0.6, DRM 3.52, 6.4.12-1-default)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 23.1.6
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 23.1.6
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 23.1.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
> Hi @bgc , could you try starting blender with `./blender --debug-gpu-force-workarounds` and see what happens? I tried that, and the same issue occurs with version 3.6.2, and with 4.6.0. I notice with version 4, that the main window responds to quitting in the GNOME shell, along with extra output in the console: ``` Saved session recovery to "/tmp/quit.blend" GHOST/Wayland: warning: queue 0x7f405dfcbba0 destroyed while proxies still attached: ./blender() [0xf23410] /lib64/libwayland-client.so.0(+0x686a) [0x7f406894686a] /lib64/libwayland-client.so.0(+0x82c1) [0x7f40689482c1] /lib64/libwayland-client.so.0(wl_event_queue_destroy+0x24) [0x7f4068948394] /lib64/libnvidia-egl-wayland.so.1(+0x8880) [0x7f405231c880] /lib64/libnvidia-egl-wayland.so.1(+0x9847) [0x7f405231d847] /lib64/libEGL_nvidia.so.0(+0xabc40) [0x7f404feabc40] /lib64/libEGL_nvidia.so.0(+0x49147) [0x7f404fe49147] ./blender() [0x2395911] ./blender() [0x2395ac7] ./blender() [0x2395ad9] ./blender() [0x23832c5] ./blender() [0xf61855] ./blender() [0xf4ad31] ./blender() [0xf4aff7] ./blender() [0xf4b01b] ./blender() [0xf3cffd] ./blender() [0xf3dc9d] ./blender() [0xf3e773] ./blender() [0xf31370] ./blender() [0x71a56b] /lib64/libc.so.6(+0x281b0) [0x7f406d0281b0] /lib64/libc.so.6(__libc_start_main+0x8b) [0x7f406d028279] ./blender() [0x8b56be] GHOST/Wayland: zwp_linux_dmabuf_feedback_v1@57 still attached ./blender() [0xf23410] /lib64/libwayland-client.so.0(+0x686a) [0x7f406894686a] /lib64/libwayland-client.so.0(+0x833e) [0x7f406894833e] /lib64/libwayland-client.so.0(wl_event_queue_destroy+0x24) [0x7f4068948394] /lib64/libnvidia-egl-wayland.so.1(+0x8880) [0x7f405231c880] /lib64/libnvidia-egl-wayland.so.1(+0x9847) [0x7f405231d847] /lib64/libEGL_nvidia.so.0(+0xabc40) [0x7f404feabc40] /lib64/libEGL_nvidia.so.0(+0x49147) [0x7f404fe49147] ./blender() [0x2395911] ./blender() [0x2395ac7] ./blender() [0x2395ad9] ./blender() [0x23832c5] ./blender() [0xf61855] ./blender() [0xf4ad31] ./blender() [0xf4aff7] ./blender() [0xf4b01b] ./blender() [0xf3cffd] ./blender() [0xf3dc9d] ./blender() [0xf3e773] ./blender() [0xf31370] ./blender() [0x71a56b] /lib64/libc.so.6(+0x281b0) [0x7f406d0281b0] /lib64/libc.so.6(__libc_start_main+0x8b) [0x7f406d028279] ./blender() [0x8b56be] GHOST/Wayland: zwp_linux_dmabuf_feedback_v1@55 still attached ./blender() [0xf23410] /lib64/libwayland-client.so.0(+0x686a) [0x7f406894686a] /lib64/libwayland-client.so.0(+0x833e) [0x7f406894833e] /lib64/libwayland-client.so.0(wl_event_queue_destroy+0x24) [0x7f4068948394] /lib64/libnvidia-egl-wayland.so.1(+0x8880) [0x7f405231c880] /lib64/libnvidia-egl-wayland.so.1(+0x9847) [0x7f405231d847] /lib64/libEGL_nvidia.so.0(+0xabc40) [0x7f404feabc40] /lib64/libEGL_nvidia.so.0(+0x49147) [0x7f404fe49147] ./blender() [0x2395911] ./blender() [0x2395ac7] ./blender() [0x2395ad9] ./blender() [0x23832c5] ./blender() [0xf61855] ./blender() [0xf4ad31] ./blender() [0xf4aff7] ./blender() [0xf4b01b] ./blender() [0xf3cffd] ./blender() [0xf3dc9d] ./blender() [0xf3e773] ./blender() [0xf31370] ./blender() [0x71a56b] /lib64/libc.so.6(+0x281b0) [0x7f406d0281b0] /lib64/libc.so.6(__libc_start_main+0x8b) [0x7f406d028279] ./blender() [0x8b56be] GHOST/Wayland: zwp_linux_dmabuf_feedback_v1@48 still attached ./blender() [0xf23410] /lib64/libwayland-client.so.0(+0x686a) [0x7f406894686a] /lib64/libwayland-client.so.0(+0x833e) [0x7f406894833e] /lib64/libwayland-client.so.0(wl_event_queue_destroy+0x24) [0x7f4068948394] /lib64/libnvidia-egl-wayland.so.1(+0x8880) [0x7f405231c880] /lib64/libnvidia-egl-wayland.so.1(+0x9847) [0x7f405231d847] /lib64/libEGL_nvidia.so.0(+0xabc40) [0x7f404feabc40] /lib64/libEGL_nvidia.so.0(+0x49147) [0x7f404fe49147] ./blender() [0x2395911] ./blender() [0x2395ac7] ./blender() [0x2395ad9] ./blender() [0x23832c5] ./blender() [0xf61855] ./blender() [0xf4ad31] ./blender() [0xf4aff7] ./blender() [0xf4b01b] ./blender() [0xf3cffd] ./blender() [0xf3dc9d] ./blender() [0xf3e773] ./blender() [0xf31370] ./blender() [0x71a56b] /lib64/libc.so.6(+0x281b0) [0x7f406d0281b0] /lib64/libc.so.6(__libc_start_main+0x8b) [0x7f406d028279] ./blender() [0x8b56be] GHOST/Wayland: zwp_linux_dmabuf_v1@53 still attached ./blender() [0xf23410] /lib64/libwayland-client.so.0(+0x686a) [0x7f406894686a] /lib64/libwayland-client.so.0(+0x833e) [0x7f406894833e] /lib64/libwayland-client.so.0(wl_event_queue_destroy+0x24) [0x7f4068948394] /lib64/libnvidia-egl-wayland.so.1(+0x8880) [0x7f405231c880] /lib64/libnvidia-egl-wayland.so.1(+0x9847) [0x7f405231d847] /lib64/libEGL_nvidia.so.0(+0xabc40) [0x7f404feabc40] /lib64/libEGL_nvidia.so.0(+0x49147) [0x7f404fe49147] ./blender() [0x2395911] ./blender() [0x2395ac7] ./blender() [0x2395ad9] ./blender() [0x23832c5] ./blender() [0xf61855] ./blender() [0xf4ad31] ./blender() [0xf4aff7] ./blender() [0xf4b01b] ./blender() [0xf3cffd] ./blender() [0xf3dc9d] ./blender() [0xf3e773] ./blender() [0xf31370] ./blender() [0x71a56b] /lib64/libc.so.6(+0x281b0) [0x7f406d0281b0] /lib64/libc.so.6(__libc_start_main+0x8b) [0x7f406d028279] ./blender() [0x8b56be] Blender quit ``` > Does your computer have dedicated nvidia driver (installed with official download `.run` file)? I am using the official YUM repository for NVIDIA drivers on OpenSUSE: https://download.nvidia.com/opensuse/tumbleweed > Also, please try using latest 4.0 or 3.6 daily build and see if problem persists. > Does your computer have integrated graphics? Could you use `glxinfo -B` and give us the output? I have AMD Ryzen 5600H which includes Radeon graphics, and my dedicated RTX 3060, according to the output of `glxinfo -B`: ``` display: :0 screen: 0 direct rendering: Yes Extended renderer info (GLX_MESA_query_renderer): Vendor: AMD (0x1002) Device: AMD Radeon Graphics (renoir, LLVM 16.0.6, DRM 3.52, 6.4.12-1-default) (0x1638) Version: 23.1.6 Accelerated: yes Video memory: 512MB Unified memory: no Preferred profile: core (0x1) Max core profile version: 4.6 Max compat profile version: 4.6 Max GLES1 profile version: 1.1 Max GLES[23] profile version: 3.2 Memory info (GL_ATI_meminfo): VBO free memory - total: 50 MB, largest block: 50 MB VBO free aux. memory - total: 11345 MB, largest block: 11345 MB Texture free memory - total: 50 MB, largest block: 50 MB Texture free aux. memory - total: 11345 MB, largest block: 11345 MB Renderbuffer free memory - total: 50 MB, largest block: 50 MB Renderbuffer free aux. memory - total: 11345 MB, largest block: 11345 MB Memory info (GL_NVX_gpu_memory_info): Dedicated video memory: 512 MB Total available memory: 12199 MB Currently available dedicated video memory: 50 MB OpenGL vendor string: AMD OpenGL renderer string: AMD Radeon Graphics (renoir, LLVM 16.0.6, DRM 3.52, 6.4.12-1-default) OpenGL core profile version string: 4.6 (Core Profile) Mesa 23.1.6 OpenGL core profile shading language version string: 4.60 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile OpenGL version string: 4.6 (Compatibility Profile) Mesa 23.1.6 OpenGL shading language version string: 4.60 OpenGL context flags: (none) OpenGL profile mask: compatibility profile OpenGL ES profile version string: OpenGL ES 3.2 Mesa 23.1.6 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20 ```
Member

Hi!

I have AMD Ryzen 5600H which includes Radeon graphics, and my dedicated RTX 3060, according to the output of glxinfo -B:

From the log it looks like you are using the AMD graphics for your system. It seems that you are using a laptop? Maybe you need to sudo prime-select nvidia to force nvidia card. And if possible, disable integrated graphics card from your bios.

Hi! > I have AMD Ryzen 5600H which includes Radeon graphics, and my dedicated RTX 3060, according to the output of glxinfo -B: From the log it looks like you are using the AMD graphics for your system. It seems that you are using a laptop? Maybe you need to `sudo prime-select nvidia` to force nvidia card. And if possible, disable integrated graphics card from your bios.

I'm having the same logs on NixOS and Gnome - where the freezing starts ONLY when I used nvidia-offload

export __NV_PRIME_RENDER_OFFLOAD=1
export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export __VK_LAYER_NV_optimus=NVIDIA_only
exec "$@"

It also happened with the command used by @bgc.

[hubble@Gulo-Laptop:~]$ switcherooctl list
Device: 0
  Name:        Advanced Micro Devices, Inc. [AMD®/ATI] Renoir
  Default:     yes
  Environment: DRI_PRIME=pci-0000_07_00_0

Device: 1
  Name:        NVIDIA Corporation TU116M [GeForce GTX 1660 Ti Mobile]
  Default:     no
  Environment: __GLX_VENDOR_LIBRARY_NAME=nvidia __NV_PRIME_RENDER_OFFLOAD=1
[hubble@Gulo-Laptop:~]$  switcherooctl launch -g 1 ./result/bin/blender
Read prefs: "/home/hubble/.config/blender/3.6/config/userpref.blend"
GHOST/Wayland: warning: queue 0x7f58602fe3b0 destroyed while proxies still attached:
GHOST/Wayland:   wl_registry@50 still attached
EGL Error (0x300D): EGL_BAD_SURFACE: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering.

### Loading CATS...
### Loaded CATS successfully!

EGL Error (0x300D): EGL_BAD_SURFACE: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering.

[... repeats x15 times ...]

(CATS is an addon)

Same with @bgc, it won't launch a window. It does show Blender is running with a dock icon, where I can quit from there. Ctrl+C wouldn't work in the terminal either.

Note - I've launched the Nixpkgs build for 3.6.2, but it also happens with Blender on Steam.

I haven't been able to nail down this issue on the NixOS side, but I did find this issue thread with the same issue happening on Gnome, but with a different operating system. I have no idea if it's the same problem or not.

After I click "quit" in the right click menu for the dock icon (I tried ctrl+c before quitting) -

Writing userprefs: "/home/hubble/.config/blender/3.6/config/userpref.blend" ok
Info: Preferences saved
Error: Python: Traceback (most recent call last):
  File "<string>", line 1, in <module>
KeyboardInterrupt

GHOST/Wayland: warning: queue 0x7f58602fe230 destroyed while proxies still attached:
GHOST/Wayland:   zwp_linux_dmabuf_feedback_v1@60 still attached
GHOST/Wayland:   zwp_linux_dmabuf_feedback_v1@58 still attached
GHOST/Wayland:   zwp_linux_dmabuf_feedback_v1@51 still attached
GHOST/Wayland:   zwp_linux_dmabuf_v1@56 still attached

Then I tried switcherooctl launch -g 1 ./result/bin/blender --debug-gpu-force-workarounds

[hubble@Gulo-Laptop:~]$ switcherooctl launch -g 1 ./result/bin/blender --debug-gpu-force-workarounds
Read prefs: "/home/hubble/.config/blender/3.6/config/userpref.blend"
GHOST/Wayland: warning: queue 0x7f3718afe3b0 destroyed while proxies still attached:
GHOST/Wayland:   wl_registry@50 still attached

GL: Forcing workaround usage and disabling extensions.
    OpenGL identification strings
    vendor: NVIDIA Corporation
    renderer: NVIDIA GeForce GTX 1660 Ti/PCIe/SSE2
    version: 4.6.0 NVIDIA 535.86.05

EGL Error (0x300D): EGL_BAD_SURFACE: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering.

### Loading CATS...
### Loaded CATS successfully!

EGL Error (0x300D): EGL_BAD_SURFACE: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering.
EGL Error (0x300D): EGL_BAD_SURFACE: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering.
EGL Error (0x300D): EGL_BAD_SURFACE: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering.
EGL Error (0x300D): EGL_BAD_SURFACE: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering.
EGL Error (0x300D): EGL_BAD_SURFACE: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering.
EGL Error (0x300D): EGL_BAD_SURFACE: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering.
EGL Error (0x300D): EGL_BAD_SURFACE: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering.
EGL Error (0x300D): EGL_BAD_SURFACE: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering.
EGL Error (0x300D): EGL_BAD_SURFACE: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering.

and after quitting -

Saved session recovery to "/tmp/quit.blend"
Writing userprefs: "/home/hubble/.config/blender/3.6/config/userpref.blend" ok
Info: Preferences saved
### Unloading CATS...
Unregistered 138 CATS classes.
UNLOADING ICONS!
DONE!
shapekey button was not registered
Stopping settings threads...
Settings threads stopped.
### Unloaded CATS successfully!

GHOST/Wayland: warning: queue 0x7f3718afe230 destroyed while proxies still attached:
GHOST/Wayland:   zwp_linux_dmabuf_feedback_v1@60 still attached
GHOST/Wayland:   zwp_linux_dmabuf_feedback_v1@58 still attached
GHOST/Wayland:   zwp_linux_dmabuf_feedback_v1@51 still attached
GHOST/Wayland:   zwp_linux_dmabuf_v1@56 still attached

With the integrated graphics, it runs fine -

[hubble@Gulo-Laptop:~]$ switcherooctl launch -g 0 ./result/bin/blender --debug-gpu-force-workarounds
Read prefs: "/home/hubble/.config/blender/3.6/config/userpref.blend"
GHOST/Wayland: warning: queue 0x7fd55369d890 destroyed while proxies still attached:
GHOST/Wayland:   wl_registry@50 still attached

GL: Forcing workaround usage and disabling extensions.
    OpenGL identification strings
    vendor: AMD
    renderer: AMD Radeon Graphics (renoir, LLVM 15.0.7, DRM 3.52, 6.4.15-xanmod1)
    version: 4.6 (Core Profile) Mesa 23.0.3

GHOST/Wayland: warning: queue 0x7fd54259fbb0 destroyed while proxies still attached:
GHOST/Wayland:   wl_registry@85 still attached

### Loading CATS...
### Loaded CATS successfully!

[ Blender window launches ]

I'm having the same logs on NixOS and Gnome - where the freezing starts ONLY when I used `nvidia-offload` ``` export __NV_PRIME_RENDER_OFFLOAD=1 export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 export __GLX_VENDOR_LIBRARY_NAME=nvidia export __VK_LAYER_NV_optimus=NVIDIA_only exec "$@" ``` It also happened with the command used by @bgc. ``` [hubble@Gulo-Laptop:~]$ switcherooctl list Device: 0 Name: Advanced Micro Devices, Inc. [AMD®/ATI] Renoir Default: yes Environment: DRI_PRIME=pci-0000_07_00_0 Device: 1 Name: NVIDIA Corporation TU116M [GeForce GTX 1660 Ti Mobile] Default: no Environment: __GLX_VENDOR_LIBRARY_NAME=nvidia __NV_PRIME_RENDER_OFFLOAD=1 ``` ``` [hubble@Gulo-Laptop:~]$ switcherooctl launch -g 1 ./result/bin/blender Read prefs: "/home/hubble/.config/blender/3.6/config/userpref.blend" GHOST/Wayland: warning: queue 0x7f58602fe3b0 destroyed while proxies still attached: GHOST/Wayland: wl_registry@50 still attached EGL Error (0x300D): EGL_BAD_SURFACE: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering. ### Loading CATS... ### Loaded CATS successfully! EGL Error (0x300D): EGL_BAD_SURFACE: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering. [... repeats x15 times ...] ``` (CATS is an addon) Same with @bgc, it won't launch a window. It does show Blender is running with a dock icon, where I can quit from there. Ctrl+C wouldn't work in the terminal either. Note - I've launched the Nixpkgs build for 3.6.2, but it also happens with Blender on Steam. I haven't been able to nail down this issue on the NixOS side, but I did find this issue thread with the same issue happening on Gnome, but with a different operating system. I have no idea if it's the same problem or not. After I click "quit" in the right click menu for the dock icon (I tried ctrl+c before quitting) - ``` Writing userprefs: "/home/hubble/.config/blender/3.6/config/userpref.blend" ok Info: Preferences saved Error: Python: Traceback (most recent call last): File "<string>", line 1, in <module> KeyboardInterrupt GHOST/Wayland: warning: queue 0x7f58602fe230 destroyed while proxies still attached: GHOST/Wayland: zwp_linux_dmabuf_feedback_v1@60 still attached GHOST/Wayland: zwp_linux_dmabuf_feedback_v1@58 still attached GHOST/Wayland: zwp_linux_dmabuf_feedback_v1@51 still attached GHOST/Wayland: zwp_linux_dmabuf_v1@56 still attached ```` Then I tried `switcherooctl launch -g 1 ./result/bin/blender --debug-gpu-force-workarounds` ``` [hubble@Gulo-Laptop:~]$ switcherooctl launch -g 1 ./result/bin/blender --debug-gpu-force-workarounds Read prefs: "/home/hubble/.config/blender/3.6/config/userpref.blend" GHOST/Wayland: warning: queue 0x7f3718afe3b0 destroyed while proxies still attached: GHOST/Wayland: wl_registry@50 still attached GL: Forcing workaround usage and disabling extensions. OpenGL identification strings vendor: NVIDIA Corporation renderer: NVIDIA GeForce GTX 1660 Ti/PCIe/SSE2 version: 4.6.0 NVIDIA 535.86.05 EGL Error (0x300D): EGL_BAD_SURFACE: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering. ### Loading CATS... ### Loaded CATS successfully! EGL Error (0x300D): EGL_BAD_SURFACE: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering. EGL Error (0x300D): EGL_BAD_SURFACE: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering. EGL Error (0x300D): EGL_BAD_SURFACE: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering. EGL Error (0x300D): EGL_BAD_SURFACE: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering. EGL Error (0x300D): EGL_BAD_SURFACE: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering. EGL Error (0x300D): EGL_BAD_SURFACE: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering. EGL Error (0x300D): EGL_BAD_SURFACE: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering. EGL Error (0x300D): EGL_BAD_SURFACE: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering. EGL Error (0x300D): EGL_BAD_SURFACE: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering. ``` and after quitting - ``` Saved session recovery to "/tmp/quit.blend" Writing userprefs: "/home/hubble/.config/blender/3.6/config/userpref.blend" ok Info: Preferences saved ### Unloading CATS... Unregistered 138 CATS classes. UNLOADING ICONS! DONE! shapekey button was not registered Stopping settings threads... Settings threads stopped. ### Unloaded CATS successfully! GHOST/Wayland: warning: queue 0x7f3718afe230 destroyed while proxies still attached: GHOST/Wayland: zwp_linux_dmabuf_feedback_v1@60 still attached GHOST/Wayland: zwp_linux_dmabuf_feedback_v1@58 still attached GHOST/Wayland: zwp_linux_dmabuf_feedback_v1@51 still attached GHOST/Wayland: zwp_linux_dmabuf_v1@56 still attached ``` With the integrated graphics, it runs fine - ``` [hubble@Gulo-Laptop:~]$ switcherooctl launch -g 0 ./result/bin/blender --debug-gpu-force-workarounds Read prefs: "/home/hubble/.config/blender/3.6/config/userpref.blend" GHOST/Wayland: warning: queue 0x7fd55369d890 destroyed while proxies still attached: GHOST/Wayland: wl_registry@50 still attached GL: Forcing workaround usage and disabling extensions. OpenGL identification strings vendor: AMD renderer: AMD Radeon Graphics (renoir, LLVM 15.0.7, DRM 3.52, 6.4.15-xanmod1) version: 4.6 (Core Profile) Mesa 23.0.3 GHOST/Wayland: warning: queue 0x7fd54259fbb0 destroyed while proxies still attached: GHOST/Wayland: wl_registry@85 still attached ### Loading CATS... ### Loaded CATS successfully! [ Blender window launches ] ```

Also it's specifically a wayland problem, if I open it via x11 -

[hubble@Gulo-Laptop:~]$ WAYLAND_DISPLAY="" switcherooctl launch -g 1 ./result/bin/blender
Read prefs: "/home/hubble/.config/blender/3.6/config/userpref.blend"

### Loading CATS...
### Loaded CATS successfully!

[ Blender window launches via xwayland ]
Also it's specifically a wayland problem, if I open it via x11 - ``` [hubble@Gulo-Laptop:~]$ WAYLAND_DISPLAY="" switcherooctl launch -g 1 ./result/bin/blender Read prefs: "/home/hubble/.config/blender/3.6/config/userpref.blend" ### Loading CATS... ### Loaded CATS successfully! [ Blender window launches via xwayland ] ```

I think this may be a duplicate of #103999

Update - Maybe. I don't know how to determine it, but that is the closest bug report to this. NixOS 23.05 provides egl-wayland on version 1.1.11, which supposedly fixes that issue.

I think this may be a duplicate of #103999 Update - Maybe. I don't know how to determine it, but that is the closest bug report to this. NixOS 23.05 provides `egl-wayland` on version `1.1.11`, which supposedly fixes that issue.

Closing as duplicate of #103999 (see comments there), issues with NVIDIA will likely be resolved as their drivers are improved to support Wayland.

Closing as duplicate of #103999 (see comments there), issues with NVIDIA will likely be resolved as their drivers are improved to support Wayland.
Blender Bot added
Status
Archived
and removed
Status
Needs Information from User
labels 2023-12-05 23:34:17 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#112168
No description provided.