Cycles GPU render crashes when using Subsurface Scattering shader #80283

Closed
opened 2020-08-31 16:26:15 +02:00 by Aron Bergman · 9 comments

System Information
Operating system: (Linux Mint 19.3) Linux-5.4.0-42-generic-x86_64-with-debian-buster-sid 64 Bits
Graphics card: AMD Radeon RX 5700 XT (NAVI10, DRM 3.38.0, 5.4.0-42-generic, LLVM 10.0.0) X.Org 4.6 (Core Profile) Mesa 20.0.8

Blender Version
Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-08-30 21:49, hash: 429afe0c62
Also confirmed not to work with 2.83.5
Worked: (newest version of Blender that worked as expected)

Short description of error
Rendering with Cycles GPU makes the computer "halt", i.e. the screen freezes (though mouse movement works) and I can't switch to a login terminal (CTRL+ALT+F[1,2,3,...]).
Seems to be caused by the Subsurface Scattering shader, see logs.
When rendering, it says "Loading render kernels" and after a while it switches to "Compiling render kernels". After a couple moments, the computer stops responding.
Works fine with Cycles CPU.

Exact steps for others to reproduce the error
Delete the Cycles cache (~/.cache/cycles). (This may not be necessary, but I've always done this before testing)
Create a fresh project and select the cube.
Go to the Shader tab, delete the default Principled BSDF shader.
Add a Subsurface Scattering shader (and connect it to the Material Output).
Switch from Eevees to Cycles GPU.
Press F12 to render.

system-info.txt

These logs were generated by running ./blender > <file>.log 2>&1
The default.log is the output of rendering the default cube. bug.log is produced by following the above steps.

default.log

bug.log

**System Information** Operating system: (Linux Mint 19.3) Linux-5.4.0-42-generic-x86_64-with-debian-buster-sid 64 Bits Graphics card: AMD Radeon RX 5700 XT (NAVI10, DRM 3.38.0, 5.4.0-42-generic, LLVM 10.0.0) X.Org 4.6 (Core Profile) Mesa 20.0.8 **Blender Version** Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-08-30 21:49, hash: `429afe0c62` Also confirmed not to work with 2.83.5 Worked: (newest version of Blender that worked as expected) **Short description of error** Rendering with Cycles GPU makes the computer "halt", i.e. the screen freezes (though mouse movement works) and I can't switch to a login terminal (CTRL+ALT+F[1,2,3,...]). Seems to be caused by the Subsurface Scattering shader, see logs. When rendering, it says "Loading render kernels" and after a while it switches to "Compiling render kernels". After a couple moments, the computer stops responding. Works fine with Cycles CPU. **Exact steps for others to reproduce the error** Delete the Cycles cache (~/.cache/cycles). (This may not be necessary, but I've always done this before testing) Create a fresh project and select the cube. Go to the Shader tab, delete the default Principled BSDF shader. Add a Subsurface Scattering shader (and connect it to the Material Output). Switch from Eevees to Cycles GPU. Press F12 to render. [system-info.txt](https://archive.blender.org/developer/F8825730/system-info.txt) These logs were generated by running `./blender > <file>.log 2>&1` The `default.log` is the output of rendering the default cube. `bug.log` is produced by following the above steps. [default.log](https://archive.blender.org/developer/F8825729/default.log) [bug.log](https://archive.blender.org/developer/F8825728/bug.log)
Author

Added subscriber: @weerox

Added subscriber: @weerox

Added subscriber: @gabe2252

Added subscriber: @gabe2252
Author

I've been generating some more log files using ./blender -b <args> <file> -f 1 > <logfile> 2>&1.

<file> is the path to either of these files, where bug.blend is generated by following the steps to reproduce the error as stated in the description. default.blend is the default cube with rendering set to Cycles GPU.
bug.blend

default.blend

<args> can be 4 different things.

  • Nothing
  • --log "*" --log-level -1
  • --debug
  • --debug-all

Here are the log files that was generated.
bug.1.log

bug.2.log

bug.3.log

bug.4.log

default.1.log

default.2.log

default.3.log

default.4.log

I will compare these logs and see if I can find anything that seems relevant.

I've been generating some more log files using `./blender -b <args> <file> -f 1 > <logfile> 2>&1`. `<file>` is the path to either of these files, where `bug.blend` is generated by following the steps to reproduce the error as stated in the description. `default.blend` is the default cube with rendering set to Cycles GPU. [bug.blend](https://archive.blender.org/developer/F8832609/bug.blend) [default.blend](https://archive.blender.org/developer/F8832610/default.blend) `<args>` can be 4 different things. - Nothing - `--log "*" --log-level -1` - `--debug` - `--debug-all` Here are the log files that was generated. [bug.1.log](https://archive.blender.org/developer/F8832639/bug.1.log) [bug.2.log](https://archive.blender.org/developer/F8832640/bug.2.log) [bug.3.log](https://archive.blender.org/developer/F8832641/bug.3.log) [bug.4.log](https://archive.blender.org/developer/F8832642/bug.4.log) [default.1.log](https://archive.blender.org/developer/F8832646/default.1.log) [default.2.log](https://archive.blender.org/developer/F8832648/default.2.log) [default.3.log](https://archive.blender.org/developer/F8832647/default.3.log) [default.4.log](https://archive.blender.org/developer/F8832649/default.4.log) I will compare these logs and see if I can find anything that seems relevant.
Author

After looking through the log files the only thing that stands out is that rendering stops at tile 74/510 in all 4 logs.

To figure out which tile it was that caused the problem I changed the Tile Order to Left to Right and rendered bug.blend again. I expected it to crash on another tile this time, but it didn't, it froze on tile 74/510 again and the 74th tile (using Left to Right order) just contains the background.

I did some more experiments and managed to get into a terminal (CTRL+ALT+F[1,2,3,...]) after Blender crashed but before the computer froze completely. When trying to log in, the kernel sent out messages about amdgpu page faults, so this is probably a driver problem and not a problem with Blender. Though I still think it is peculiar that it stops at tile 74 irregardless of tile order.

After looking through the log files the only thing that stands out is that rendering stops at tile 74/510 in all 4 logs. To figure out which tile it was that caused the problem I changed the Tile Order to Left to Right and rendered `bug.blend` again. I expected it to crash on another tile this time, but it didn't, it froze on tile 74/510 again and the 74th tile (using Left to Right order) just contains the background. I did some more experiments and managed to get into a terminal (CTRL+ALT+F[1,2,3,...]) after Blender crashed but before the computer froze completely. When trying to log in, the kernel sent out messages about `amdgpu` page faults, so this is probably a driver problem and not a problem with Blender. Though I still think it is peculiar that it stops at tile 74 irregardless of tile order.
Author

Here is the kern.log output concerning amdgpu, if anyone is interested.
amdgpu.log

Here is the `kern.log` output concerning `amdgpu`, if anyone is interested. [amdgpu.log](https://archive.blender.org/developer/F8833125/amdgpu.log)
Author

Changed status from 'Needs Triage' to: 'Archived'

Changed status from 'Needs Triage' to: 'Archived'
Aron Bergman self-assigned this 2020-09-02 19:11:45 +02:00
Author

Yes, this was a driver problem, downgraded from amdgpu-pro 20.30 to amdgpu-pro 20.10 and now it works great!

Yes, this was a driver problem, downgraded from `amdgpu-pro 20.30` to `amdgpu-pro 20.10` and now it works great!

Sweet! Can you test if this bug is present on that driver? https://developer.blender.org/T79724 It seems to be another 5700xt driver issue.

Sweet! Can you test if this bug is present on that driver? https://developer.blender.org/T79724 It seems to be another 5700xt driver issue.
Author

In #80283#1007881, @gabe2252 wrote:
Sweet! Can you test if this bug is present on that driver? https://developer.blender.org/T79724 It seems to be another 5700xt driver issue.

Woops, that freezes my computer too, using the older version of the driver...

> In #80283#1007881, @gabe2252 wrote: > Sweet! Can you test if this bug is present on that driver? https://developer.blender.org/T79724 It seems to be another 5700xt driver issue. Woops, that freezes my computer too, using the older version of the driver...
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
2 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#80283
No description provided.