Page MenuHome

OpenCL rendering with Cycles crashes Blender 2.8
Open, NormalPublic

Description

System Information
CPU: AMD R7 1800X
GPU: 2x AMD RX 480 4GB
OS: Arch Linux 4.17.3-1 64 bit
OpenCL ICD Version: 2.2.12-1
OpenCL Library: AMDGPU PRO Standalone OpenCL Library 18.20-606296
OpenCL Library 2: Mesa OpenCL Library 18.1.3-1

Blender Version
Broken: 2.80 Alpha dd5c25fab20 (Built At: 2018-07-06 10:10)
Worked: 2.79b

OpenCL rendering with Cycles does not work with either of the two OpenCL libraries available for AMD GPUs on Linux (AMDGPU Pro and Mesa).

  • OpenCL rendering crashes on both Mesa's OpenCL implementation and AMD's one.
  • OpenCL rendering crashes regardless of whether one or two GPUs are selected.
  • OpenCL rendering on the CPU works fine.
  • I haven't tested other operating systems or with CUDA, the problem may exist elsewhere as well.
  • Rendering with 2.79b on the same system works fine.

Console output during rendering:

Device init success
Device init success
Writing: /tmp/blender.crash.txt
zsh: segmentation fault (core dumped)  blender-2.8

Stack trace (from /temp/blender.crash.txt) from the AMDGPU PRO crash:

blender-2.8(BLI_system_backtrace+0x34) [0x562c4b16da74]
blender-2.8(+0xb290f5) [0x562c4a7a70f5]
/usr/lib/libc.so.6(+0x368f0) [0x7f4c8ff938f0]
/usr/lib/libOpenCL.so(clReleaseProgram+0x21) [0x7f4c48dee411]
blender-2.8(_ZN3ccl16OpenCLDeviceBase13OpenCLProgram7releaseEv+0x5e) [0x562c4b5af42e]
blender-2.8(_ZN3ccl23OpenCLDeviceSplitKernelD0Ev+0x38) [0x562c4b5ad088]
blender-2.8(_ZN3ccl11MultiDeviceD0Ev+0x67) [0x562c4b59e237]
blender-2.8(_ZN3ccl7SessionD1Ev+0x254) [0x562c4b547984]
blender-2.8(_ZN3ccl14BlenderSession12free_sessionEv+0x36) [0x562c4b46ebf6]
blender-2.8(_ZN3ccl14BlenderSession13reset_sessionERN2BL9BlendDataERNS1_9DepsgraphE+0x474) [0x562c4b471d74]
blender-2.8(+0x17ede01) [0x562c4b46be01]
/usr/lib/libpython3.6m.so.1.0(_PyCFunction_FastCallDict+0x93) [0x7f4c991f4343]
/usr/lib/libpython3.6m.so.1.0(+0x14b84e) [0x7f4c991bd84e]
/usr/lib/libpython3.6m.so.1.0(_PyEval_EvalFrameDefault+0x2ea) [0x7f4c991810fa]
/usr/lib/libpython3.6m.so.1.0(+0x14b31b) [0x7f4c991bd31b]
/usr/lib/libpython3.6m.so.1.0(+0x14b952) [0x7f4c991bd952]
/usr/lib/libpython3.6m.so.1.0(_PyEval_EvalFrameDefault+0x2ea) [0x7f4c991810fa]
/usr/lib/libpython3.6m.so.1.0(PyEval_EvalCodeEx+0x329) [0x7f4c991bde59]
/usr/lib/libpython3.6m.so.1.0(+0x1a6154) [0x7f4c99218154]
/usr/lib/libpython3.6m.so.1.0(PyObject_Call+0x43) [0x7f4c991efcf3]
blender-2.8(+0xeda768) [0x562c4ab58768]
blender-2.8(+0x1417e4b) [0x562c4b095e4b]
blender-2.8(RE_engine_render+0x2ba) [0x562c4ab349aa]
blender-2.8(+0xeba503) [0x562c4ab38503]
blender-2.8(+0xebd8a1) [0x562c4ab3b8a1]
blender-2.8(RE_BlenderFrame+0xd3) [0x562c4ab3c123]
blender-2.8(+0xe17725) [0x562c4aa95725]
blender-2.8(+0xb3d71a) [0x562c4a7bb71a]
/usr/lib/libpthread.so.0(+0x7075) [0x7f4c90524075]
/usr/lib/libc.so.6(clone+0x3f) [0x7f4c9005553f]

Exact steps for others to reproduce the error

  1. Open Blender 2.80 Alpha
  2. In Edit -> User Preferences -> System enable OpenCL compute on one or more GPUs.
  3. Add a Camera to the scene.
  4. In the Properties Window -> Render -> Performance switch to GPU Compute.
  5. Click Render -> Render Image to begin rendering.
  6. Blender will hang for a moment and then crash.

Details

Type
Bug