Change:
makes blender crash on start on my machine with Nvidia GPU running Hyprland I think it's a Nvidia issue because I can't repro on Intel iGPU machine blender from current built channel (which is also my system's channel; note that I rebooted after , so probably not a gl driver mismatch issue): blender built from slightly older commit works (which is also blender 4.2.1): According to , the first bad commit is . That merge seems to include some wayland change and I'm using wayland, maybe it's related? Don't have time to bisect further (as it needs to rebuild the whole world) <!-- Please @ people who are in the list of the offending package or module. If in doubt, check for whoever last touched something. --Please run and paste the result. Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:
Can reproduce. Some initial triage notes: UI on non-Nvidia is okay Any use of Nvidia GPU seems to fail, including just rendering Crashes with Running with also crashes, so doesn’t seem to be a Wayland issue (GPU rendering also failing suggests the same) CPU rendering is fine I don’t have non-Nvidia GPUs capable of Blender GPU rendering to test those Initial search through upstream issues is not enlightening Runs okay with upstream’s compiled binary
Have identified a fix, will PR shortly.
Thanks! I think should go to BTW. I tested it locally and it fixes the issue
PR:

Discussion:
tbb, wayland, wayland-protocols, <ins> wayland-scanner, </ins> waylandSupport ? stdenv.isLinux, zlib, zstd,

cmakeFlags = [ <ins> "-DMaterialX_DIR=${python3Packages.materialx}/lib/cmake/MaterialX" </ins> "-DPYTHON_INCLUDE_DIR=${python3}/include/${python3.libPrefix}" "-DPYTHON_LIBPATH=${python3}/lib" "-DPYTHON_LIBRARY=${python3.libPrefix}"

"-DPYTHON_NUMPY_PATH=${python3Packages.numpy}/${python3.sitePackages}" "-DPYTHON_VERSION=${python3.pythonVersion}" "-DWITH_ALEMBIC=ON" <ins> "-DWITH_BUILDINFO=OFF" </ins> "-DWITH_CODEC_FFMPEG=ON" "-DWITH_CODEC_SNDFILE=ON" <ins> "-DWITH_CPU_CHECK=OFF" "-DWITH_CYCLES_DEVICE_OPTIX=${if cudaSupport then "ON" else "OFF"}" "-DWITH_CYCLES_OSL=OFF" </ins> "-DWITH_FFTW3=ON" "-DWITH_IMAGE_OPENJPEG=ON" "-DWITH_INSTALL_PORTABLE=OFF" <del> "-DMaterialX_DIR=${python3Packages.materialx}/lib/cmake/MaterialX" </del> <ins> "-DWITH_JACK=${if jackaudioSupport then "ON" else "OFF"}" "-DWITH_LIBS_PRECOMPILED=OFF" </ins> "-DWITH_MOD_OCEANSIM=ON" "-DWITH_OPENCOLLADA=${if colladaSupport then "ON" else "OFF"}" "-DWITH_OPENCOLORIO=ON" "-DWITH_OPENSUBDIV=ON" "-DWITH_OPENVDB=ON" <ins> "-DWITH_PULSEAUDIO=OFF" </ins> "-DWITH_PYTHON_INSTALL=OFF" "-DWITH_PYTHON_INSTALL_NUMPY=OFF" "-DWITH_PYTHON_INSTALL_REQUESTS=OFF" "-DWITH_SDL=OFF" <ins> "-DWITH_STRICT_BUILD_OPTIONS=ON" </ins> "-DWITH_TBB=ON" "-DWITH_USD=ON"

] ++ lib.optionals stdenv.isDarwin [ "-DLIBDIR=/does-not-exist" <del> "-DWITH_CYCLES_OSL=OFF" # causes segfault on aarch64-darwin </del> "-DSSE2NEON_INCLUDE_DIR=${sse2neon}/lib" "-DWITH_USD=OFF" # currently fails on darwin ] ++ lib.optional stdenv.cc.isClang "-DPYTHON_LINKFLAGS=" # Clang doesn't support "-export-dynamic" <del> ++ lib.optional jackaudioSupport "-DWITH_JACK=ON" </del> ++ lib.optionals cudaSupport [ "-DOPTIX_ROOT_DIR=${optix}" "-DWITH_CYCLES_CUDA_BINARIES=ON" <del> "-DWITH_CYCLES_DEVICE_OPTIX=ON" </del> ]; preConfigure = ''

addDriverRunpath cudaPackages.cuda_nvcc ] <del> ++ lib.optionals waylandSupport [ pkg-config ]; </del> <ins> ++ lib.optionals waylandSupport [ pkg-config wayland-scanner ]; </ins> buildInputs = [