Blender won't start in Distrobox

So I am updating my ROCm / HIP cookbook for any distro! Tested with Blender and Stable Diffusion on Tumbleweed with AMD Radeon 7600 and created some Distrobox containers to test things out.

However, I noticed that none of them could start Blender, which is weird because my original Distrobox container still works and starts Blender without a problem. I have no idea what the difference between the containers is and I also don’t know how I could check the difference.

Here is a console log to show the problem:

bird@localhost ~/.l/s/S/s/c/Blender> distrobox enter rocm
📦[bird@rocm Blender]$ ./blender
Unable to find 'libwayland-cursor.so'
Saved session recovery to "/tmp/quit.blend"

Blender quit
📦[bird@rocm Blender]$ apt show rocm-libs -a
Package: rocm-libs
Version: 6.0.2.60002-115~22.04
Priority: optional
Section: devel
Maintainer: ROCm Dev Support <rocm-dev.support@amd.com>
Installed-Size: 13.3 kB
Depends: hipblas (= 2.0.0.60002-115~22.04), hipblaslt (= 0.6.0.60002-115~22.04), hipfft (= 1.0.13.60002-115~22.04), hipsolver (= 2.0.0.60002-115~22.04), hipsparse (= 3.0.0.60002-115~22.04), hiptensor (= 1.1.0.60002-115~22.04), miopen-hip (= 3.00.0.60002-115~22.04), half (= 1.12.0.60002-115~22.04), rccl (= 2.18.3.60002-115~22.04), rocalution (= 3.0.3.60002-115~22.04), rocblas (= 4.0.0.60002-115~22.04), rocfft (= 1.0.25.60002-115~22.04), rocrand (= 3.0.0.60002-115~22.04), hiprand (= 2.10.16.60002-115~22.04), rocsolver (= 3.24.0.60002-115~22.04), rocsparse (= 3.0.2.60002-115~22.04), rocm-core (= 6.0.2.60002-115~22.04), composablekernel-dev (= 1.1.0.60002-115~22.04), hipblas-dev (= 2.0.0.60002-115~22.04), hipblaslt-dev (= 0.6.0.60002-115~22.04), hipcub-dev (= 3.0.0.60002-115~22.04), hipfft-dev (= 1.0.13.60002-115~22.04), hipsolver-dev (= 2.0.0.60002-115~22.04), hipsparse-dev (= 3.0.0.60002-115~22.04), hiptensor-dev (= 1.1.0.60002-115~22.04), miopen-hip-dev (= 3.00.0.60002-115~22.04), rccl-dev (= 2.18.3.60002-115~22.04), rocalution-dev (= 3.0.3.60002-115~22.04), rocblas-dev (= 4.0.0.60002-115~22.04), rocfft-dev (= 1.0.25.60002-115~22.04), rocprim-dev (= 3.0.0.60002-115~22.04), rocrand-dev (= 3.0.0.60002-115~22.04), hiprand-dev (= 2.10.16.60002-115~22.04), rocsolver-dev (= 3.24.0.60002-115~22.04), rocsparse-dev (= 3.0.2.60002-115~22.04), rocthrust-dev (= 3.0.0.60002-115~22.04), rocwmma-dev (= 1.3.0.60002-115~22.04)
Homepage: https://github.com/RadeonOpenCompute/ROCm
Download-Size: 1050 B
APT-Sources: https://repo.radeon.com/rocm/apt/6.0.2 jammy/main amd64 Packages
Description: Radeon Open Compute (ROCm) Runtime software stack

📦[bird@rocm Blender]$ exit
logout
bird@localhost ~/.l/s/S/s/c/Blender> distrobox enter rocm6-0-2
📦[bird@rocm6-0-2 Blender]$ ./blender
GHOST/Wayland: interface 'wl_surface' has no event 2
./blender() [0xf3d720]
/lib/x86_64-linux-gnu/libwayland-client.so.0(+0x595a) [0x7f9b23d3f95a]
/lib/x86_64-linux-gnu/libwayland-client.so.0(wl_display_read_events+0x1133) [0x7f9b23d42af3]
/lib/x86_64-linux-gnu/libwayland-client.so.0(wl_display_dispatch_queue+0x109) [0x7f9b23d42d59]
./blender() [0x29f9838]
./blender() [0x29f6478]
./blender() [0x29d64c4]
./blender() [0xfc2d72]
./blender() [0xfc2fcd]
./blender() [0xf84e64]
./blender() [0xf9c1d2]
./blender() [0xfa1d5f]
./blender() [0x72f171]
/lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x7f9b22e29d90]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80) [0x7f9b22e29e40]
./blender() [0x83e9ae]
The Wayland connection experienced a fatal error: No such file or directory
Writing: /tmp/blender.crash.txt
Segmentation fault (core dumped)
📦[bird@rocm6-0-2 Blender]$ apt show rocm-libs -a
Package: rocm-libs
Version: 6.0.2.60002-115~22.04
Priority: optional
Section: devel
Maintainer: ROCm Dev Support <rocm-dev.support@amd.com>
Installed-Size: 13.3 kB
Depends: hipblas (= 2.0.0.60002-115~22.04), hipblaslt (= 0.6.0.60002-115~22.04), hipfft (= 1.0.13.60002-115~22.04), hipsolver (= 2.0.0.60002-115~22.04), hipsparse (= 3.0.0.60002-115~22.04), hiptensor (= 1.1.0.60002-115~22.04), miopen-hip (= 3.00.0.60002-115~22.04), half (= 1.12.0.60002-115~22.04), rccl (= 2.18.3.60002-115~22.04), rocalution (= 3.0.3.60002-115~22.04), rocblas (= 4.0.0.60002-115~22.04), rocfft (= 1.0.25.60002-115~22.04), rocrand (= 3.0.0.60002-115~22.04), hiprand (= 2.10.16.60002-115~22.04), rocsolver (= 3.24.0.60002-115~22.04), rocsparse (= 3.0.2.60002-115~22.04), rocm-core (= 6.0.2.60002-115~22.04), composablekernel-dev (= 1.1.0.60002-115~22.04), hipblas-dev (= 2.0.0.60002-115~22.04), hipblaslt-dev (= 0.6.0.60002-115~22.04), hipcub-dev (= 3.0.0.60002-115~22.04), hipfft-dev (= 1.0.13.60002-115~22.04), hipsolver-dev (= 2.0.0.60002-115~22.04), hipsparse-dev (= 3.0.0.60002-115~22.04), hiptensor-dev (= 1.1.0.60002-115~22.04), miopen-hip-dev (= 3.00.0.60002-115~22.04), rccl-dev (= 2.18.3.60002-115~22.04), rocalution-dev (= 3.0.3.60002-115~22.04), rocblas-dev (= 4.0.0.60002-115~22.04), rocfft-dev (= 1.0.25.60002-115~22.04), rocprim-dev (= 3.0.0.60002-115~22.04), rocrand-dev (= 3.0.0.60002-115~22.04), hiprand-dev (= 2.10.16.60002-115~22.04), rocsolver-dev (= 3.24.0.60002-115~22.04), rocsparse-dev (= 3.0.2.60002-115~22.04), rocthrust-dev (= 3.0.0.60002-115~22.04), rocwmma-dev (= 1.3.0.60002-115~22.04)
Homepage: https://github.com/RadeonOpenCompute/ROCm
Download-Size: 1050 B
APT-Sources: https://repo.radeon.com/rocm/apt/6.0.2 jammy/main amd64 Packages
Description: Radeon Open Compute (ROCm) Runtime software stack

📦[bird@rocm6-0-2 Blender]$ cat /tmp/blender.crash.txt 
# Blender 4.2.1, Commit date: 2024-08-19 11:21, Hash 396f546c9d82

# backtrace
./blender() [0xf3d720]
./blender() [0x84310f]
/lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7f9b22e42520]
./blender() [0xfc2f6d]
./blender() [0xfc2fcd]
./blender() [0xf84e64]
./blender() [0xf9c1d2]
./blender() [0xfa1d5f]
./blender() [0x72f171]
/lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x7f9b22e29d90]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80) [0x7f9b22e29e40]
./blender() [0x83e9ae]

# Python backtrace
📦[bird@rocm6-0-2 Blender]$ 

As you can see, the old container “rocm” still starts blender, but the new container “rocm6-0-2” doesn’t. Yet, they both use the same ROCm version 6.0.2 and, as far as I know, have the same packages installed.

I am using the Steam version of Blender with the version 4.2.1 LTS

1 Like

Found the bug!

It all works fine until I install Darktable.

Steps to reproduce:

  1. Download Blender 4.2.1 LTS
  2. Create a Distrobox distrobox create -i ubuntu:22.04 -n test
  3. Enter the container
  4. Install some required packages for Blender sudo apt install libxkbcommon0 libsm6
  5. Confirm that blender works
  6. Install darktable sudo apt install darktable
  7. Confirm that blender doesn’t work
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.