OpenCL rendering with Cycles crashes Blender 2.8 #55795

Closed
opened 2018-07-06 15:58:03 +02:00 by Duo Oratar · 13 comments

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 dd5c25fab2 (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

  • Open Blender 2.80 Alpha
  • In Edit -> User Preferences -> System enable OpenCL compute on one or more GPUs.
  • Add a Camera to the scene.
  • In the Properties Window -> Render -> Performance switch to GPU Compute.
  • Click Render -> Render Image to begin rendering.
  • Blender will hang for a moment and then crash.
**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 ](https://www.archlinux.org/packages/extra/x86_64/ocl-icd/) OpenCL Library: [AMDGPU PRO Standalone OpenCL Library 18.20-606296 ](https://aur.archlinux.org/packages/opencl-amd/) OpenCL Library 2: [Mesa OpenCL Library 18.1.3-1 ](https://www.archlinux.org/packages/extra/x86_64/opencl-mesa/) **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** - Open Blender 2.80 Alpha - In Edit -> User Preferences -> System enable OpenCL compute on one or more GPUs. - Add a Camera to the scene. - In the Properties Window -> Render -> Performance switch to GPU Compute. - Click Render -> Render Image to begin rendering. - Blender will hang for a moment and then crash.
Author

Added subscriber: @duooratar

Added subscriber: @duooratar

Added subscribers: @brecht, @mont29

Added subscribers: @brecht, @mont29
Brecht Van Lommel was assigned by Bastien Montagne 2018-07-24 15:58:26 +02:00

@brecht assigning to you, no idea who/if OpenCL is a valid topic currently…

@brecht assigning to you, no idea who/if OpenCL is a valid topic currently…

Added subscriber: @mirrorstream-2

Added subscriber: @mirrorstream-2
Brecht Van Lommel was unassigned by Dalai Felinto 2019-12-23 16:36:07 +01:00

Added subscriber: @mano-wii

Added subscriber: @mano-wii

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

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

Is this still a problem in the latest builds?
https://builder.blender.org/download/

Also be sure to update the graphics drivers.
For more information on installing the latest graphics driver see https://docs.blender.org/manual/en/dev/troubleshooting/gpu/index.html

Is this still a problem in the latest builds? https://builder.blender.org/download/ Also be sure to update the graphics drivers. For more information on installing the latest graphics driver see https://docs.blender.org/manual/en/dev/troubleshooting/gpu/index.html

Removed subscriber: @mirrorstream-2

Removed subscriber: @mirrorstream-2
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Member

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

Changed status from 'Needs User Info' to: 'Resolved'
Aaron Carlisle self-assigned this 2020-02-18 19:34:02 +01:00
Member

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.

Added subscriber: @Nikolay-1

Added subscriber: @Nikolay-1

I think this is not fixed and should be reopened. Any render engine using OpenCL results in a lockup/gpu crash on my systems (AMDGPU driver/Mesa + AMDGPU Pro OpenCL), both 2.9 from arch repos and the alpha version have this problem. Attaching logs.

blender.log - Blender 2.9 from Archlinux repos

blender.log - Blender 2.92 alpha

I think this is not fixed and should be reopened. Any render engine using OpenCL results in a lockup/gpu crash on my systems (AMDGPU driver/Mesa + AMDGPU Pro OpenCL), both 2.9 from arch repos and the alpha version have this problem. Attaching logs. [blender.log](https://archive.blender.org/developer/F9228749/blender.log) - Blender 2.9 from Archlinux repos [blender.log](https://archive.blender.org/developer/F9228751/blender.log) - Blender 2.92 alpha
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
6 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#55795
No description provided.