Page MenuHome

Failed assertion in OSL 1.9.9 aborts rendering on Ubuntu/Debian
Closed, ResolvedPublic

Description

System Information
Operating system: Ubuntu 16 and 18 and also Debian, all tested via Docker
Graphics card: -

Blender Version
Broken: 2.81.3 master e283f0807c60
Worked: There was no such problem on MacOS Mojave

Short description of error
The whole compilation and install process works like a charm. However you cannot enable OSL with Cycles and render. The following error occurs:
Fra:1 Mem:126.54M (0.00M, Peak 128.94M) | Time:00:00.22 | Mem:0.00M, Peak:0.00M | Scene, RenderLayer | Updating Scene
Fra:1 Mem:126.54M (0.00M, Peak 128.94M) | Time:00:00.22 | Mem:0.00M, Peak:0.00M | Scene, RenderLayer | Updating Shaders
Couldn't find function osl_raytype_bit
/root/src/blender-deps/OpenShadingLanguage-1.9.9/src/liboslexec/llvm_util.cpp:1240: failed assertion 'func'
Aborted

Exact steps for others to reproduce the error

  1. Compile dependencies with install_deps.sh --with-all
  2. Compile Blender
  3. Start Blender
  4. Set Cycles as render engine
  5. Enable Open Shading Language
  6. Save your scene under osl_test.blend
  7. With the command line, call blender -b osl_test.blend -f 1

The error above occurs. Note that we haven't yet used any OSL feature.