Blender Benchmark segfaults with Optix initialization error #80156

Closed
opened 2020-08-27 11:10:07 +02:00 by Paul Melis · 15 comments

System Information
Operating system: Debian GNU/Linux 10 (buster)
Graphics card: TITAN RTX

Blender Version
Broken: 2.83.4 LTS binaries (c113af82881a)

Short description of error

Running the benchmark GUI segfaults somewhere, so I tried to run the benchmark using the offline instructions. That gives an error and segfault:

I0827 11:07:30.248574 17428 device_optix.cpp:1530] OptiX initialization failed with error code 7805
Writing: /tmp/main.crash.txt
./run_cpu.sh: line 19: 17428 Segmentation fault      blender --background --factory-startup -noaudio --debug-cycles --enable-autoexec --engine CYCLES $1 --python main.py -- --device-type CPU

Looking up the error code in https://raytracing-docs.nvidia.com/optix7/api/OptiX_API_Reference.200113.A4.pdf it is OPTIX_ERROR_ENTRY_SYMBOL_NOT_FOUND. We don't have optix installed on the system, not sure if it comes with the official binaries?

Exact steps for others to reproduce the error

paulm@r35n1:~/software/blender-benchmark-script-2.0.0$ cat ./run_cpu.sh
- !/bin/sh
- From https://opendata.blender.org/about/
module load Blender/2.83.4-lts

export DISPLAY=:0.0

blender \
        --background \
	--factory-startup \
	-noaudio \
	--debug-cycles \
	--enable-autoexec \
	--engine \
	CYCLES \
	$1 \
	--python \
	main.py \
	-- \
	--device-type CPU

paulm@r35n1:~/software/blender-benchmark-script-2.0.0$ ./run_cpu.sh scenes/bmw27/main.blend 
Blender 2.83.4 (hash c113af82881a built 2020-08-05 06:00:03)
found bundled python: /home/paulm/.local/easybuild/Debian10/2019/software/Blender/2.83.4-lts/2.83/python
I0827 11:07:29.730150 17428 blender_python.cpp:191] Debug flags initialized to:
CPU flags:
  AVX2       : True
  AVX        : True
  SSE4.1     : True
  SSE3       : True
  SSE2       : True
  BVH layout : BVH8
  Split      : False
CUDA flags:
  Adaptive Compile : False
OptiX flags:
  CUDA streams : 1
OpenCL flags:
  Device type    : ALL
  Debug          : False
  Memory limit   : 0
Read blend: /home/paulm/software/blender-benchmark-script-2.0.0/scenes/bmw27/main.blend
path: ['/home/paulm/software/blender-benchmark-script-2.0.0', '/home/paulm/.local/easybuild/Debian10/2019/software/Blender/2.83.4-lts/2.83/scripts/startup', '/home/paulm/.local/easybuild/Debian10/2019/software/Blender/2.83.4-lts/2.83/scripts/modules', '/home/paulm/.local/easybuild/Debian10/2019/software/Blender/2.83.4-lts/2.83/python/lib/python37.zip', '/home/paulm/.local/easybuild/Debian10/2019/software/Blender/2.83.4-lts/2.83/python/lib/python3.7', '/home/paulm/.local/easybuild/Debian10/2019/software/Blender/2.83.4-lts/2.83/python/lib/python3.7/lib-dynload', '/home/paulm/.local/easybuild/Debian10/2019/software/Blender/2.83.4-lts/2.83/python/lib/python3.7/site-packages', '/home/paulm/.local/easybuild/Debian10/2019/software/Blender/2.83.4-lts/2.83/scripts/freestyle/modules', '/home/paulm/.local/easybuild/Debian10/2019/software/Blender/2.83.4-lts/2.83/scripts/addons/modules', '/home/paulm/.config/blender/2.83/scripts/addons/modules', '/home/paulm/.local/easybuild/Debian10/2019/software/Blender/2.83.4-lts/2.83/scripts/addons']
I0827 11:07:30.029736 17428 device_opencl.cpp:48] CLEW initialization succeeded.
I0827 11:07:30.220584 17428 opencl_util.cpp:945] Enumerating devices for platform Clover.
I0827 11:07:30.220660 17428 opencl_util.cpp:952] Ignoring platform Clover, failed to fetch of devices: CL_DEVICE_NOT_FOUND
I0827 11:07:30.220674 17428 opencl_util.cpp:945] Enumerating devices for platform NVIDIA CUDA.
I0827 11:07:30.220824 17428 opencl_util.cpp:995] Ignoring device TITAN RTX, not officially supported yet.
I0827 11:07:30.220952 17428 opencl_util.cpp:995] Ignoring device TITAN RTX, not officially supported yet.
I0827 11:07:30.221083 17428 opencl_util.cpp:995] Ignoring device TITAN RTX, not officially supported yet.
I0827 11:07:30.221215 17428 opencl_util.cpp:995] Ignoring device TITAN RTX, not officially supported yet.
I0827 11:07:30.221546 17428 device_cuda.cpp:41] CUEW initialization succeeded
I0827 11:07:30.221850 17428 device_cuda.cpp:43] Found precompiled kernels
I0827 11:07:30.246047 17428 device_cuda.cpp:166] Device has compute preemption or is not used for display.
I0827 11:07:30.246068 17428 device_cuda.cpp:169] Added device "TITAN RTX" with id "CUDA_TITAN RTX_0000:3b:00".
I0827 11:07:30.246212 17428 device_cuda.cpp:166] Device has compute preemption or is not used for display.
I0827 11:07:30.246223 17428 device_cuda.cpp:169] Added device "TITAN RTX" with id "CUDA_TITAN RTX_0000:5e:00".
I0827 11:07:30.246354 17428 device_cuda.cpp:166] Device has compute preemption or is not used for display.
I0827 11:07:30.246366 17428 device_cuda.cpp:169] Added device "TITAN RTX" with id "CUDA_TITAN RTX_0000:b1:00".
I0827 11:07:30.246496 17428 device_cuda.cpp:166] Device has compute preemption or is not used for display.
I0827 11:07:30.246507 17428 device_cuda.cpp:169] Added device "TITAN RTX" with id "CUDA_TITAN RTX_0000:d9:00".
I0827 11:07:30.248574 17428 device_optix.cpp:1530] OptiX initialization failed with error code 7805
Writing: /tmp/main.crash.txt
./run_cpu.sh: line 19: 17428 Segmentation fault      blender --background --factory-startup -noaudio --debug-cycles --enable-autoexec --engine CYCLES $1 --python main.py -- --device-type CPU
**System Information** Operating system: Debian GNU/Linux 10 (buster) Graphics card: TITAN RTX **Blender Version** Broken: 2.83.4 LTS binaries (c113af82881a) **Short description of error** Running the benchmark GUI segfaults somewhere, so I tried to run the benchmark using the offline instructions. That gives an error and segfault: ``` I0827 11:07:30.248574 17428 device_optix.cpp:1530] OptiX initialization failed with error code 7805 Writing: /tmp/main.crash.txt ./run_cpu.sh: line 19: 17428 Segmentation fault blender --background --factory-startup -noaudio --debug-cycles --enable-autoexec --engine CYCLES $1 --python main.py -- --device-type CPU ``` Looking up the error code in https://raytracing-docs.nvidia.com/optix7/api/OptiX_API_Reference.200113.A4.pdf it is `OPTIX_ERROR_ENTRY_SYMBOL_NOT_FOUND`. We don't have optix installed on the system, not sure if it comes with the official binaries? **Exact steps for others to reproduce the error** ``` paulm@r35n1:~/software/blender-benchmark-script-2.0.0$ cat ./run_cpu.sh - !/bin/sh - From https://opendata.blender.org/about/ module load Blender/2.83.4-lts export DISPLAY=:0.0 blender \ --background \ --factory-startup \ -noaudio \ --debug-cycles \ --enable-autoexec \ --engine \ CYCLES \ $1 \ --python \ main.py \ -- \ --device-type CPU paulm@r35n1:~/software/blender-benchmark-script-2.0.0$ ./run_cpu.sh scenes/bmw27/main.blend Blender 2.83.4 (hash c113af82881a built 2020-08-05 06:00:03) found bundled python: /home/paulm/.local/easybuild/Debian10/2019/software/Blender/2.83.4-lts/2.83/python I0827 11:07:29.730150 17428 blender_python.cpp:191] Debug flags initialized to: CPU flags: AVX2 : True AVX : True SSE4.1 : True SSE3 : True SSE2 : True BVH layout : BVH8 Split : False CUDA flags: Adaptive Compile : False OptiX flags: CUDA streams : 1 OpenCL flags: Device type : ALL Debug : False Memory limit : 0 Read blend: /home/paulm/software/blender-benchmark-script-2.0.0/scenes/bmw27/main.blend path: ['/home/paulm/software/blender-benchmark-script-2.0.0', '/home/paulm/.local/easybuild/Debian10/2019/software/Blender/2.83.4-lts/2.83/scripts/startup', '/home/paulm/.local/easybuild/Debian10/2019/software/Blender/2.83.4-lts/2.83/scripts/modules', '/home/paulm/.local/easybuild/Debian10/2019/software/Blender/2.83.4-lts/2.83/python/lib/python37.zip', '/home/paulm/.local/easybuild/Debian10/2019/software/Blender/2.83.4-lts/2.83/python/lib/python3.7', '/home/paulm/.local/easybuild/Debian10/2019/software/Blender/2.83.4-lts/2.83/python/lib/python3.7/lib-dynload', '/home/paulm/.local/easybuild/Debian10/2019/software/Blender/2.83.4-lts/2.83/python/lib/python3.7/site-packages', '/home/paulm/.local/easybuild/Debian10/2019/software/Blender/2.83.4-lts/2.83/scripts/freestyle/modules', '/home/paulm/.local/easybuild/Debian10/2019/software/Blender/2.83.4-lts/2.83/scripts/addons/modules', '/home/paulm/.config/blender/2.83/scripts/addons/modules', '/home/paulm/.local/easybuild/Debian10/2019/software/Blender/2.83.4-lts/2.83/scripts/addons'] I0827 11:07:30.029736 17428 device_opencl.cpp:48] CLEW initialization succeeded. I0827 11:07:30.220584 17428 opencl_util.cpp:945] Enumerating devices for platform Clover. I0827 11:07:30.220660 17428 opencl_util.cpp:952] Ignoring platform Clover, failed to fetch of devices: CL_DEVICE_NOT_FOUND I0827 11:07:30.220674 17428 opencl_util.cpp:945] Enumerating devices for platform NVIDIA CUDA. I0827 11:07:30.220824 17428 opencl_util.cpp:995] Ignoring device TITAN RTX, not officially supported yet. I0827 11:07:30.220952 17428 opencl_util.cpp:995] Ignoring device TITAN RTX, not officially supported yet. I0827 11:07:30.221083 17428 opencl_util.cpp:995] Ignoring device TITAN RTX, not officially supported yet. I0827 11:07:30.221215 17428 opencl_util.cpp:995] Ignoring device TITAN RTX, not officially supported yet. I0827 11:07:30.221546 17428 device_cuda.cpp:41] CUEW initialization succeeded I0827 11:07:30.221850 17428 device_cuda.cpp:43] Found precompiled kernels I0827 11:07:30.246047 17428 device_cuda.cpp:166] Device has compute preemption or is not used for display. I0827 11:07:30.246068 17428 device_cuda.cpp:169] Added device "TITAN RTX" with id "CUDA_TITAN RTX_0000:3b:00". I0827 11:07:30.246212 17428 device_cuda.cpp:166] Device has compute preemption or is not used for display. I0827 11:07:30.246223 17428 device_cuda.cpp:169] Added device "TITAN RTX" with id "CUDA_TITAN RTX_0000:5e:00". I0827 11:07:30.246354 17428 device_cuda.cpp:166] Device has compute preemption or is not used for display. I0827 11:07:30.246366 17428 device_cuda.cpp:169] Added device "TITAN RTX" with id "CUDA_TITAN RTX_0000:b1:00". I0827 11:07:30.246496 17428 device_cuda.cpp:166] Device has compute preemption or is not used for display. I0827 11:07:30.246507 17428 device_cuda.cpp:169] Added device "TITAN RTX" with id "CUDA_TITAN RTX_0000:d9:00". I0827 11:07:30.248574 17428 device_optix.cpp:1530] OptiX initialization failed with error code 7805 Writing: /tmp/main.crash.txt ./run_cpu.sh: line 19: 17428 Segmentation fault blender --background --factory-startup -noaudio --debug-cycles --enable-autoexec --engine CYCLES $1 --python main.py -- --device-type CPU ```
Author

Added subscriber: @PaulMelis

Added subscriber: @PaulMelis
Author

Official 2.83.5 binaries give the same error, btw (I forgot this was already released)

Official 2.83.5 binaries give the same error, btw (I forgot this was already released)
Author

Removing the --factory-startup option fixes it (probably because it then assumes CUDA as chosen in the preferences, even though it is a CPU render), but I'm not sure the results will adhere to the benchmark then :) But at least I have a way of getting some results, alas not something that is submittable to the benchmark site.

Removing the `--factory-startup` option fixes it (probably because it then assumes CUDA as chosen in the preferences, even though it is a CPU render), but I'm not sure the results will adhere to the benchmark then :) But at least I have a way of getting *some* results, alas not something that is submittable to the benchmark site.

Added subscriber: @ankitm

Added subscriber: @ankitm

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

Could you upload crash.txt ?
Also did any recent versions fix the issue ?

Could you upload crash.txt ? Also did any recent versions fix the issue ?
Author

With Blender 2.92.0 I now get a different error:

paulm@r36n1 12:08 ~/software/blender-benchmark-script-2.0.0$ cat run_cpu.sh 
- !/bin/sh
- From https://opendata.blender.org/about/
#module load Blender/2.83.8-lts

export DISPLAY=:0.0

- Leave out --factory-startup to get around
- https://developer.blender.org/T80156

~/software/blender-2.92.0-linux64/blender \
    --background \
    -noaudio \
    --debug-cycles \
    --enable-autoexec \
    --engine \
    CYCLES \
    $1 \
    --python \
    main.py \
    -- \
    --device-type CPU

paulm@r36n1 12:08 ~/software/blender-benchmark-script-2.0.0$ ./run_cpu.sh scenes/bmw27/main.blend 

Blender 2.92.0 (hash 02948a2cab44 built 2021-02-25 09:31:37)
I0419 12:08:47.670706 24569 blender_python.cpp:194] Debug flags initialized to:
CPU flags:
  AVX2       : True
  AVX        : True
  SSE4.1     : True
  SSE3       : True
  SSE2       : True
  BVH layout : EMBREE
  Split      : False
CUDA flags:
  Adaptive Compile : False
OptiX flags:
  CUDA streams : 1
OpenCL flags:
  Device type    : ALL
  Debug          : False
  Memory limit   : 0
Read blend: /home/paulm/software/blender-benchmark-script-2.0.0/scenes/bmw27/main.blend
path: ['/home/paulm/software/blender-benchmark-script-2.0.0', '/home/paulm/software/blender-2.92.0-linux64/2.92/scripts/startup', '/home/paulm/software/blender-2.92.0-linux64/2.92/scripts/modules', '/home/paulm/software/blender-2.92.0-linux64/2.92/python/lib/python37.zip', '/home/paulm/software/blender-2.92.0-linux64/2.92/python/lib/python3.7', '/home/paulm/software/blender-2.92.0-linux64/2.92/python/lib/python3.7/lib-dynload', '/home/paulm/software/blender-2.92.0-linux64/2.92/python/lib/python3.7/site-packages', '/home/paulm/software/blender-2.92.0-linux64/2.92/scripts/freestyle/modules', '/home/paulm/software/blender-2.92.0-linux64/2.92/scripts/addons/modules', '/home/paulm/.config/blender/2.92/scripts/addons/modules', '/home/paulm/software/blender-2.92.0-linux64/2.92/scripts/addons']
I0419 12:08:47.976789 24569 device_opencl.cpp:48] CLEW initialization succeeded.
I0419 12:08:48.124505 24569 opencl_util.cpp:957] Enumerating devices for platform Clover.
I0419 12:08:48.124600 24569 opencl_util.cpp:964] Ignoring platform Clover, failed to fetch of devices: CL_DEVICE_NOT_FOUND
I0419 12:08:48.124616 24569 opencl_util.cpp:957] Enumerating devices for platform NVIDIA CUDA.
I0419 12:08:48.124727 24569 opencl_util.cpp:1007] Ignoring device TITAN RTX, not officially supported yet.
I0419 12:08:48.124814 24569 opencl_util.cpp:1007] Ignoring device TITAN RTX, not officially supported yet.
I0419 12:08:48.124898 24569 opencl_util.cpp:1007] Ignoring device TITAN RTX, not officially supported yet.
I0419 12:08:48.124982 24569 opencl_util.cpp:1007] Ignoring device TITAN RTX, not officially supported yet.
I0419 12:08:48.125219 24569 device_cuda.cpp:41] CUEW initialization succeeded
I0419 12:08:48.125250 24569 device_cuda.cpp:43] Found precompiled kernels
I0419 12:08:48.141676 24569 device_cuda.cpp:176] Device has compute preemption or is not used for display.
I0419 12:08:48.141695 24569 device_cuda.cpp:179] Added device "TITAN RTX" with id "CUDA_TITAN RTX_0000:3b:00".
I0419 12:08:48.141796 24569 device_cuda.cpp:176] Device has compute preemption or is not used for display.
I0419 12:08:48.141808 24569 device_cuda.cpp:179] Added device "TITAN RTX" with id "CUDA_TITAN RTX_0000:5e:00".
I0419 12:08:48.141892 24569 device_cuda.cpp:176] Device has compute preemption or is not used for display.
I0419 12:08:48.141903 24569 device_cuda.cpp:179] Added device "TITAN RTX" with id "CUDA_TITAN RTX_0000:b1:00".
I0419 12:08:48.141988 24569 device_cuda.cpp:176] Device has compute preemption or is not used for display.
I0419 12:08:48.141999 24569 device_cuda.cpp:179] Added device "TITAN RTX" with id "CUDA_TITAN RTX_0000:d9:00".
Traceback (most recent call last):
  File "/home/paulm/software/blender-benchmark-script-2.0.0/main.py", line 102, in <module>
    main()
  File "/home/paulm/software/blender-benchmark-script-2.0.0/main.py", line 98, in main
    _benchmark(render_type, requested_device)
  File "/home/paulm/software/blender-benchmark-script-2.0.0/main.py", line 72, in _benchmark
    render_device_full = render.render(render_type, requested_device)
  File "/home/paulm/software/blender-benchmark-script-2.0.0/render.py", line 107, in render
    enabled_devices = _enable_device(requested_device)
  File "/home/paulm/software/blender-benchmark-script-2.0.0/render.py", line 81, in _enable_device
    return _enable_cpu_device(requested_device)
  File "/home/paulm/software/blender-benchmark-script-2.0.0/render.py", line 31, in _enable_cpu_device
    cpu_devices = [d for d in info._get_all_devices() if d.type == DeviceType.CPU]
  File "/home/paulm/software/blender-benchmark-script-2.0.0/info.py", line 47, in _get_all_devices
    for name, type, *_ in _cycles.available_devices('')
ValueError: Device "" not known.

Blender quit
Writing: /tmp/blender.crash.txt
./run_cpu.sh: line 21: 24569 Segmentation fault      ~/software/blender-2.92.0-linux64/blender --background -noaudio --debug-cycles --enable-autoexec --engine CYCLES $1 --python main.py -- --device-type CPU

With or without --factory-startup makes no difference and the stack trace is the same:

paulm@r36n1 12:10 ~/software/blender-benchmark-script-2.0.0$ cat /tmp/blender.crash.txt 

# backtrace
/home/paulm/software/blender-2.92.0-linux64/blender(BLI_system_backtrace+0x20) [0x865aed0]
/home/paulm/software/blender-2.92.0-linux64/blender() [0xeb124a]
/lib/x86_64-linux-gnu/libc.so.6(+0x37840) [0x145a42a66840]
/usr/lib/x86_64-linux-gnu/libnvoptix.so.1(+0x798160) [0x1459f35fd160]
/usr/lib/x86_64-linux-gnu/libnvoptix.so.1(+0x799758) [0x1459f35fe758]
/usr/lib/x86_64-linux-gnu/libnvoptix.so.1(+0x59ae0b) [0x1459f33ffe0b]
/lib/x86_64-linux-gnu/libc.so.6(+0x39d8c) [0x145a42a68d8c]
/lib/x86_64-linux-gnu/libc.so.6(+0x39eba) [0x145a42a68eba]
/home/paulm/software/blender-2.92.0-linux64/blender() [0x124df5d]
/home/paulm/software/blender-2.92.0-linux64/blender(main+0x330) [0xde8b40]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb) [0x145a42a5309b]
/home/paulm/software/blender-2.92.0-linux64/blender() [0xeadbe3]

# Python backtrace

Btw, I don't see a newer version of the standalone benchmark script on https://opendata.blender.org/about/, the link there still refers to 2.0.0. Should there be a newer version?

With Blender 2.92.0 I now get a different error: ``` paulm@r36n1 12:08 ~/software/blender-benchmark-script-2.0.0$ cat run_cpu.sh - !/bin/sh - From https://opendata.blender.org/about/ #module load Blender/2.83.8-lts export DISPLAY=:0.0 - Leave out --factory-startup to get around - https://developer.blender.org/T80156 ~/software/blender-2.92.0-linux64/blender \ --background \ -noaudio \ --debug-cycles \ --enable-autoexec \ --engine \ CYCLES \ $1 \ --python \ main.py \ -- \ --device-type CPU paulm@r36n1 12:08 ~/software/blender-benchmark-script-2.0.0$ ./run_cpu.sh scenes/bmw27/main.blend Blender 2.92.0 (hash 02948a2cab44 built 2021-02-25 09:31:37) I0419 12:08:47.670706 24569 blender_python.cpp:194] Debug flags initialized to: CPU flags: AVX2 : True AVX : True SSE4.1 : True SSE3 : True SSE2 : True BVH layout : EMBREE Split : False CUDA flags: Adaptive Compile : False OptiX flags: CUDA streams : 1 OpenCL flags: Device type : ALL Debug : False Memory limit : 0 Read blend: /home/paulm/software/blender-benchmark-script-2.0.0/scenes/bmw27/main.blend path: ['/home/paulm/software/blender-benchmark-script-2.0.0', '/home/paulm/software/blender-2.92.0-linux64/2.92/scripts/startup', '/home/paulm/software/blender-2.92.0-linux64/2.92/scripts/modules', '/home/paulm/software/blender-2.92.0-linux64/2.92/python/lib/python37.zip', '/home/paulm/software/blender-2.92.0-linux64/2.92/python/lib/python3.7', '/home/paulm/software/blender-2.92.0-linux64/2.92/python/lib/python3.7/lib-dynload', '/home/paulm/software/blender-2.92.0-linux64/2.92/python/lib/python3.7/site-packages', '/home/paulm/software/blender-2.92.0-linux64/2.92/scripts/freestyle/modules', '/home/paulm/software/blender-2.92.0-linux64/2.92/scripts/addons/modules', '/home/paulm/.config/blender/2.92/scripts/addons/modules', '/home/paulm/software/blender-2.92.0-linux64/2.92/scripts/addons'] I0419 12:08:47.976789 24569 device_opencl.cpp:48] CLEW initialization succeeded. I0419 12:08:48.124505 24569 opencl_util.cpp:957] Enumerating devices for platform Clover. I0419 12:08:48.124600 24569 opencl_util.cpp:964] Ignoring platform Clover, failed to fetch of devices: CL_DEVICE_NOT_FOUND I0419 12:08:48.124616 24569 opencl_util.cpp:957] Enumerating devices for platform NVIDIA CUDA. I0419 12:08:48.124727 24569 opencl_util.cpp:1007] Ignoring device TITAN RTX, not officially supported yet. I0419 12:08:48.124814 24569 opencl_util.cpp:1007] Ignoring device TITAN RTX, not officially supported yet. I0419 12:08:48.124898 24569 opencl_util.cpp:1007] Ignoring device TITAN RTX, not officially supported yet. I0419 12:08:48.124982 24569 opencl_util.cpp:1007] Ignoring device TITAN RTX, not officially supported yet. I0419 12:08:48.125219 24569 device_cuda.cpp:41] CUEW initialization succeeded I0419 12:08:48.125250 24569 device_cuda.cpp:43] Found precompiled kernels I0419 12:08:48.141676 24569 device_cuda.cpp:176] Device has compute preemption or is not used for display. I0419 12:08:48.141695 24569 device_cuda.cpp:179] Added device "TITAN RTX" with id "CUDA_TITAN RTX_0000:3b:00". I0419 12:08:48.141796 24569 device_cuda.cpp:176] Device has compute preemption or is not used for display. I0419 12:08:48.141808 24569 device_cuda.cpp:179] Added device "TITAN RTX" with id "CUDA_TITAN RTX_0000:5e:00". I0419 12:08:48.141892 24569 device_cuda.cpp:176] Device has compute preemption or is not used for display. I0419 12:08:48.141903 24569 device_cuda.cpp:179] Added device "TITAN RTX" with id "CUDA_TITAN RTX_0000:b1:00". I0419 12:08:48.141988 24569 device_cuda.cpp:176] Device has compute preemption or is not used for display. I0419 12:08:48.141999 24569 device_cuda.cpp:179] Added device "TITAN RTX" with id "CUDA_TITAN RTX_0000:d9:00". Traceback (most recent call last): File "/home/paulm/software/blender-benchmark-script-2.0.0/main.py", line 102, in <module> main() File "/home/paulm/software/blender-benchmark-script-2.0.0/main.py", line 98, in main _benchmark(render_type, requested_device) File "/home/paulm/software/blender-benchmark-script-2.0.0/main.py", line 72, in _benchmark render_device_full = render.render(render_type, requested_device) File "/home/paulm/software/blender-benchmark-script-2.0.0/render.py", line 107, in render enabled_devices = _enable_device(requested_device) File "/home/paulm/software/blender-benchmark-script-2.0.0/render.py", line 81, in _enable_device return _enable_cpu_device(requested_device) File "/home/paulm/software/blender-benchmark-script-2.0.0/render.py", line 31, in _enable_cpu_device cpu_devices = [d for d in info._get_all_devices() if d.type == DeviceType.CPU] File "/home/paulm/software/blender-benchmark-script-2.0.0/info.py", line 47, in _get_all_devices for name, type, *_ in _cycles.available_devices('') ValueError: Device "" not known. Blender quit Writing: /tmp/blender.crash.txt ./run_cpu.sh: line 21: 24569 Segmentation fault ~/software/blender-2.92.0-linux64/blender --background -noaudio --debug-cycles --enable-autoexec --engine CYCLES $1 --python main.py -- --device-type CPU ``` With or without `--factory-startup` makes no difference and the stack trace is the same: ``` paulm@r36n1 12:10 ~/software/blender-benchmark-script-2.0.0$ cat /tmp/blender.crash.txt # backtrace /home/paulm/software/blender-2.92.0-linux64/blender(BLI_system_backtrace+0x20) [0x865aed0] /home/paulm/software/blender-2.92.0-linux64/blender() [0xeb124a] /lib/x86_64-linux-gnu/libc.so.6(+0x37840) [0x145a42a66840] /usr/lib/x86_64-linux-gnu/libnvoptix.so.1(+0x798160) [0x1459f35fd160] /usr/lib/x86_64-linux-gnu/libnvoptix.so.1(+0x799758) [0x1459f35fe758] /usr/lib/x86_64-linux-gnu/libnvoptix.so.1(+0x59ae0b) [0x1459f33ffe0b] /lib/x86_64-linux-gnu/libc.so.6(+0x39d8c) [0x145a42a68d8c] /lib/x86_64-linux-gnu/libc.so.6(+0x39eba) [0x145a42a68eba] /home/paulm/software/blender-2.92.0-linux64/blender() [0x124df5d] /home/paulm/software/blender-2.92.0-linux64/blender(main+0x330) [0xde8b40] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb) [0x145a42a5309b] /home/paulm/software/blender-2.92.0-linux64/blender() [0xeadbe3] # Python backtrace ``` Btw, I don't see a newer version of the standalone benchmark script on https://opendata.blender.org/about/, the link there still refers to 2.0.0. Should there be a newer version?
Author

Btw, I don't see a newer version of the standalone benchmark script on https://opendata.blender.org/about/, the link there still refers to 2.0.0. Should there be a newer version?

Ah, there is a new version (2.0.1) on the FTP, https://ftp.nluug.nl/pub/graphics/blender/release/BlenderBenchmark2.0/script/. Let me try that

> Btw, I don't see a newer version of the standalone benchmark script on https://opendata.blender.org/about/, the link there still refers to 2.0.0. Should there be a newer version? Ah, there *is* a new version (2.0.1) on the FTP, https://ftp.nluug.nl/pub/graphics/blender/release/BlenderBenchmark2.0/script/. Let me try that
Author

So with blender-benchmark-script 2.0.1, the newest version of the BMW scene and the official 2.92.0 Blender binaries I now get a successful render, but still get segfault on exit (again both with and without --factory-startup):

paulm@r36n1 12:15 ~/software/blender-benchmark-script-2.0.1$ cat run_cpu.sh 
- !/bin/sh
- From https://opendata.blender.org/about/
#module load Blender/2.83.8-lts

export DISPLAY=:0.0

- Leave out --factory-startup to get around
- https://developer.blender.org/T80156

~/software/blender-2.92.0-linux64/blender \
    --background \
    -noaudio \
    --debug-cycles \
    --enable-autoexec \
    --engine \
    CYCLES \
    $1 \
    --python \
    main.py \
    -- \
    --device-type CPU

paulm@r36n1 12:15 ~/software/blender-benchmark-script-2.0.1$ ./run_cpu.sh  scenes/bmw27/main.blend
I0419 12:15:23.694793 25646 blender_python.cpp:194] Debug flags initialized to:
CPU flags:
  AVX2       : True
  AVX        : True
  SSE4.1     : True
  SSE3       : True
  SSE2       : True
  BVH layout : EMBREE
  Split      : False
CUDA flags:
  Adaptive Compile : False
OptiX flags:
  CUDA streams : 1
OpenCL flags:
  Device type    : ALL
  Debug          : False
  Memory limit   : 0
I0419 12:15:23.968972 25646 device_opencl.cpp:48] CLEW initialization succeeded.
I0419 12:15:24.118418 25646 opencl_util.cpp:957] Enumerating devices for platform Clover.
I0419 12:15:24.118495 25646 opencl_util.cpp:964] Ignoring platform Clover, failed to fetch of devices: CL_DEVICE_NOT_FOUND
I0419 12:15:24.118510 25646 opencl_util.cpp:957] Enumerating devices for platform NVIDIA CUDA.
I0419 12:15:24.118613 25646 opencl_util.cpp:1007] Ignoring device TITAN RTX, not officially supported yet.
I0419 12:15:24.118693 25646 opencl_util.cpp:1007] Ignoring device TITAN RTX, not officially supported yet.
I0419 12:15:24.118772 25646 opencl_util.cpp:1007] Ignoring device TITAN RTX, not officially supported yet.
I0419 12:15:24.118852 25646 opencl_util.cpp:1007] Ignoring device TITAN RTX, not officially supported yet.
I0419 12:15:24.119092 25646 device_cuda.cpp:41] CUEW initialization succeeded
I0419 12:15:24.119120 25646 device_cuda.cpp:43] Found precompiled kernels
I0419 12:15:24.135715 25646 device_cuda.cpp:176] Device has compute preemption or is not used for display.
I0419 12:15:24.135733 25646 device_cuda.cpp:179] Added device "TITAN RTX" with id "CUDA_TITAN RTX_0000:3b:00".
I0419 12:15:24.135813 25646 device_cuda.cpp:176] Device has compute preemption or is not used for display.
I0419 12:15:24.135821 25646 device_cuda.cpp:179] Added device "TITAN RTX" with id "CUDA_TITAN RTX_0000:5e:00".
I0419 12:15:24.135900 25646 device_cuda.cpp:176] Device has compute preemption or is not used for display.
I0419 12:15:24.135910 25646 device_cuda.cpp:179] Added device "TITAN RTX" with id "CUDA_TITAN RTX_0000:b1:00".
I0419 12:15:24.135988 25646 device_cuda.cpp:176] Device has compute preemption or is not used for display.
I0419 12:15:24.135996 25646 device_cuda.cpp:179] Added device "TITAN RTX" with id "CUDA_TITAN RTX_0000:d9:00".
I0419 12:15:24.353565 25646 device_cpu.cpp:137] Will be using AVX2 kernels.
...
Fra:1 Mem:88.31M (Peak 278.60M) | Time:01:52.34 | Compositing | Tile 12-12
Fra:1 Mem:88.25M (Peak 278.60M) | Time:01:52.34 | Compositing | De-initializing execution
path: ['/home/paulm/software/blender-benchmark-script-2.0.1', '/home/paulm/software/blender-2.92.0-linux64/2.92/scripts/startup', '/home/paulm/software/blender-2.92.0-linux64/2.92/scripts/modules', '/home/paulm/software/blender-2.92.0-linux64/2.92/python/lib/python37.zip', '/home/paulm/software/blender-2.92.0-linux64/2.92/python/lib/python3.7', '/home/paulm/software/blender-2.92.0-linux64/2.92/python/lib/python3.7/lib-dynload', '/home/paulm/software/blender-2.92.0-linux64/2.92/python/lib/python3.7/site-packages', '/home/paulm/software/blender-2.92.0-linux64/2.92/scripts/freestyle/modules', '/home/paulm/software/blender-2.92.0-linux64/2.92/scripts/addons/modules', '/home/paulm/.config/blender/2.92/scripts/addons/modules', '/home/paulm/software/blender-2.92.0-linux64/2.92/scripts/addons']
Benchmark JSON Data: {"timestamp": "2021-04-19T10:17:16.488196+00:00", "blender_version": {"version": "2.92.0", "build_date": "2021-02-25", "build_time": "09:31:37", "build_commit_date": "2021-02-24", "build_commit_time": "16:25", "build_hash": "02948a2cab44"}, "system_info": {"bitness": "64bit", "machine": "x86_64", "system": "Linux", "dist_name": "Debian GNU/Linux", "dist_version": "10", "devices": [{"name": "Intel Xeon Gold 5118 CPU @ 2.30GHz", "type": "CPU"}, {"name": "Intel Xeon Gold 5118 CPU @ 2.30GHz", "type": "CPU"}, {"name": "TITAN RTX", "type": "CUDA", "is_display": false}, {"name": "TITAN RTX", "type": "CUDA", "is_display": false}, {"name": "TITAN RTX", "type": "CUDA", "is_display": false}, {"name": "TITAN RTX", "type": "CUDA", "is_display": false}, {"name": "Intel Xeon Gold 5118 CPU @ 2.30GHz", "type": "CPU"}, {"name": "TITAN RTX", "type": "OPTIX", "is_display": false}, {"name": "TITAN RTX", "type": "OPTIX", "is_display": false}, {"name": "TITAN RTX", "type": "OPTIX", "is_display": false}, {"name": "TITAN RTX", "type": "OPTIX", "is_display": false}, {"name": "Intel Xeon Gold 5118 CPU @ 2.30GHz", "type": "CPU"}], "num_cpu_sockets": 2, "num_cpu_cores": 24, "num_cpu_threads": 24}, "device_info": {"device_type": "CPU", "compute_devices": [{"name": "Intel Xeon Gold 5118 CPU @ 2.30GHz", "type": "CPU"}, {"name": "Intel Xeon Gold 5118 CPU @ 2.30GHz", "type": "CPU"}, {"name": "Intel Xeon Gold 5118 CPU @ 2.30GHz", "type": "CPU"}, {"name": "Intel Xeon Gold 5118 CPU @ 2.30GHz", "type": "CPU"}], "num_cpu_threads": 24}}

Blender quit
Writing: /tmp/blender.crash.txt
./run_cpu.sh: line 21: 25646 Segmentation fault      ~/software/blender-2.92.0-linux64/blender --background -noaudio --debug-cycles --enable-autoexec --engine CYCLES $1 --python main.py -- --device-type CPU

paulm@r36n1 12:18 ~/software/blender-benchmark-script-2.0.1$ cat /tmp/blender.crash.txt

# backtrace
/home/paulm/software/blender-2.92.0-linux64/blender(BLI_system_backtrace+0x20) [0x865aed0]
/home/paulm/software/blender-2.92.0-linux64/blender() [0xeb124a]
/lib/x86_64-linux-gnu/libc.so.6(+0x37840) [0x14b6d1af7840]
/usr/lib/x86_64-linux-gnu/libnvoptix.so.1(+0x798160) [0x14b6835fd160]
/usr/lib/x86_64-linux-gnu/libnvoptix.so.1(+0x799758) [0x14b6835fe758]
/usr/lib/x86_64-linux-gnu/libnvoptix.so.1(+0x59ae0b) [0x14b6833ffe0b]
/lib/x86_64-linux-gnu/libc.so.6(+0x39d8c) [0x14b6d1af9d8c]
/lib/x86_64-linux-gnu/libc.so.6(+0x39eba) [0x14b6d1af9eba]
/home/paulm/software/blender-2.92.0-linux64/blender() [0x124df5d]
/home/paulm/software/blender-2.92.0-linux64/blender(main+0x330) [0xde8b40]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb) [0x14b6d1ae409b]
/home/paulm/software/blender-2.92.0-linux64/blender() [0xeadbe3]

# Python backtrace
So with blender-benchmark-script 2.0.1, the newest version of the BMW scene and the official 2.92.0 Blender binaries I now get a successful render, but still get segfault on exit (again both with and without `--factory-startup`): ``` paulm@r36n1 12:15 ~/software/blender-benchmark-script-2.0.1$ cat run_cpu.sh - !/bin/sh - From https://opendata.blender.org/about/ #module load Blender/2.83.8-lts export DISPLAY=:0.0 - Leave out --factory-startup to get around - https://developer.blender.org/T80156 ~/software/blender-2.92.0-linux64/blender \ --background \ -noaudio \ --debug-cycles \ --enable-autoexec \ --engine \ CYCLES \ $1 \ --python \ main.py \ -- \ --device-type CPU paulm@r36n1 12:15 ~/software/blender-benchmark-script-2.0.1$ ./run_cpu.sh scenes/bmw27/main.blend I0419 12:15:23.694793 25646 blender_python.cpp:194] Debug flags initialized to: CPU flags: AVX2 : True AVX : True SSE4.1 : True SSE3 : True SSE2 : True BVH layout : EMBREE Split : False CUDA flags: Adaptive Compile : False OptiX flags: CUDA streams : 1 OpenCL flags: Device type : ALL Debug : False Memory limit : 0 I0419 12:15:23.968972 25646 device_opencl.cpp:48] CLEW initialization succeeded. I0419 12:15:24.118418 25646 opencl_util.cpp:957] Enumerating devices for platform Clover. I0419 12:15:24.118495 25646 opencl_util.cpp:964] Ignoring platform Clover, failed to fetch of devices: CL_DEVICE_NOT_FOUND I0419 12:15:24.118510 25646 opencl_util.cpp:957] Enumerating devices for platform NVIDIA CUDA. I0419 12:15:24.118613 25646 opencl_util.cpp:1007] Ignoring device TITAN RTX, not officially supported yet. I0419 12:15:24.118693 25646 opencl_util.cpp:1007] Ignoring device TITAN RTX, not officially supported yet. I0419 12:15:24.118772 25646 opencl_util.cpp:1007] Ignoring device TITAN RTX, not officially supported yet. I0419 12:15:24.118852 25646 opencl_util.cpp:1007] Ignoring device TITAN RTX, not officially supported yet. I0419 12:15:24.119092 25646 device_cuda.cpp:41] CUEW initialization succeeded I0419 12:15:24.119120 25646 device_cuda.cpp:43] Found precompiled kernels I0419 12:15:24.135715 25646 device_cuda.cpp:176] Device has compute preemption or is not used for display. I0419 12:15:24.135733 25646 device_cuda.cpp:179] Added device "TITAN RTX" with id "CUDA_TITAN RTX_0000:3b:00". I0419 12:15:24.135813 25646 device_cuda.cpp:176] Device has compute preemption or is not used for display. I0419 12:15:24.135821 25646 device_cuda.cpp:179] Added device "TITAN RTX" with id "CUDA_TITAN RTX_0000:5e:00". I0419 12:15:24.135900 25646 device_cuda.cpp:176] Device has compute preemption or is not used for display. I0419 12:15:24.135910 25646 device_cuda.cpp:179] Added device "TITAN RTX" with id "CUDA_TITAN RTX_0000:b1:00". I0419 12:15:24.135988 25646 device_cuda.cpp:176] Device has compute preemption or is not used for display. I0419 12:15:24.135996 25646 device_cuda.cpp:179] Added device "TITAN RTX" with id "CUDA_TITAN RTX_0000:d9:00". I0419 12:15:24.353565 25646 device_cpu.cpp:137] Will be using AVX2 kernels. ... Fra:1 Mem:88.31M (Peak 278.60M) | Time:01:52.34 | Compositing | Tile 12-12 Fra:1 Mem:88.25M (Peak 278.60M) | Time:01:52.34 | Compositing | De-initializing execution path: ['/home/paulm/software/blender-benchmark-script-2.0.1', '/home/paulm/software/blender-2.92.0-linux64/2.92/scripts/startup', '/home/paulm/software/blender-2.92.0-linux64/2.92/scripts/modules', '/home/paulm/software/blender-2.92.0-linux64/2.92/python/lib/python37.zip', '/home/paulm/software/blender-2.92.0-linux64/2.92/python/lib/python3.7', '/home/paulm/software/blender-2.92.0-linux64/2.92/python/lib/python3.7/lib-dynload', '/home/paulm/software/blender-2.92.0-linux64/2.92/python/lib/python3.7/site-packages', '/home/paulm/software/blender-2.92.0-linux64/2.92/scripts/freestyle/modules', '/home/paulm/software/blender-2.92.0-linux64/2.92/scripts/addons/modules', '/home/paulm/.config/blender/2.92/scripts/addons/modules', '/home/paulm/software/blender-2.92.0-linux64/2.92/scripts/addons'] Benchmark JSON Data: {"timestamp": "2021-04-19T10:17:16.488196+00:00", "blender_version": {"version": "2.92.0", "build_date": "2021-02-25", "build_time": "09:31:37", "build_commit_date": "2021-02-24", "build_commit_time": "16:25", "build_hash": "02948a2cab44"}, "system_info": {"bitness": "64bit", "machine": "x86_64", "system": "Linux", "dist_name": "Debian GNU/Linux", "dist_version": "10", "devices": [{"name": "Intel Xeon Gold 5118 CPU @ 2.30GHz", "type": "CPU"}, {"name": "Intel Xeon Gold 5118 CPU @ 2.30GHz", "type": "CPU"}, {"name": "TITAN RTX", "type": "CUDA", "is_display": false}, {"name": "TITAN RTX", "type": "CUDA", "is_display": false}, {"name": "TITAN RTX", "type": "CUDA", "is_display": false}, {"name": "TITAN RTX", "type": "CUDA", "is_display": false}, {"name": "Intel Xeon Gold 5118 CPU @ 2.30GHz", "type": "CPU"}, {"name": "TITAN RTX", "type": "OPTIX", "is_display": false}, {"name": "TITAN RTX", "type": "OPTIX", "is_display": false}, {"name": "TITAN RTX", "type": "OPTIX", "is_display": false}, {"name": "TITAN RTX", "type": "OPTIX", "is_display": false}, {"name": "Intel Xeon Gold 5118 CPU @ 2.30GHz", "type": "CPU"}], "num_cpu_sockets": 2, "num_cpu_cores": 24, "num_cpu_threads": 24}, "device_info": {"device_type": "CPU", "compute_devices": [{"name": "Intel Xeon Gold 5118 CPU @ 2.30GHz", "type": "CPU"}, {"name": "Intel Xeon Gold 5118 CPU @ 2.30GHz", "type": "CPU"}, {"name": "Intel Xeon Gold 5118 CPU @ 2.30GHz", "type": "CPU"}, {"name": "Intel Xeon Gold 5118 CPU @ 2.30GHz", "type": "CPU"}], "num_cpu_threads": 24}} Blender quit Writing: /tmp/blender.crash.txt ./run_cpu.sh: line 21: 25646 Segmentation fault ~/software/blender-2.92.0-linux64/blender --background -noaudio --debug-cycles --enable-autoexec --engine CYCLES $1 --python main.py -- --device-type CPU paulm@r36n1 12:18 ~/software/blender-benchmark-script-2.0.1$ cat /tmp/blender.crash.txt # backtrace /home/paulm/software/blender-2.92.0-linux64/blender(BLI_system_backtrace+0x20) [0x865aed0] /home/paulm/software/blender-2.92.0-linux64/blender() [0xeb124a] /lib/x86_64-linux-gnu/libc.so.6(+0x37840) [0x14b6d1af7840] /usr/lib/x86_64-linux-gnu/libnvoptix.so.1(+0x798160) [0x14b6835fd160] /usr/lib/x86_64-linux-gnu/libnvoptix.so.1(+0x799758) [0x14b6835fe758] /usr/lib/x86_64-linux-gnu/libnvoptix.so.1(+0x59ae0b) [0x14b6833ffe0b] /lib/x86_64-linux-gnu/libc.so.6(+0x39d8c) [0x14b6d1af9d8c] /lib/x86_64-linux-gnu/libc.so.6(+0x39eba) [0x14b6d1af9eba] /home/paulm/software/blender-2.92.0-linux64/blender() [0x124df5d] /home/paulm/software/blender-2.92.0-linux64/blender(main+0x330) [0xde8b40] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb) [0x14b6d1ae409b] /home/paulm/software/blender-2.92.0-linux64/blender() [0xeadbe3] # Python backtrace ```

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'

Added subscriber: @OmarEmaraDev

Added subscriber: @OmarEmaraDev

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

To clarify, the only remaining issue is the one in your last comment? If it is the case, can you edit report to contain the exact problem as there is currently three problems mentioned?
And are you still able to reproduce it?

To clarify, the only remaining issue is the one in your last comment? If it is the case, can you edit report to contain the exact problem as there is currently three problems mentioned? And are you still able to reproduce it?

Changed status from 'Needs User Info' to: 'Archived'

Changed status from 'Needs User Info' to: 'Archived'

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed.

Thanks again for the report. If the problem persists please open a new report with the required information.

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed. Thanks again for the report. If the problem persists please open a new report with the required information.
This repo is archived. You cannot comment on issues.
No description provided.