Cycles GPU render crashes in 2.92, 2.93 on Ubuntu with rx580 #85099

Closed
opened 2021-01-27 10:30:03 +01:00 by Svend Sønderby · 18 comments

System Information
Operating system: Ubuntu 20.04.1 LTS and popOS 20.10
Graphics card: Radeon RX 580

Blender Version
Broken: 2.93.0 Alpha, branch: master, commit date: 2021-01-27 04:28, hash: fc669a4c3e
2.92.0 Beta

Worked: 2.83.1, 2.90.1, 2.91.2

Short description of error
Blender crashes in 2.92 and 2.93 when loading render kernels in cycles GPU render.

Tried both download from blender.org and build from master. Older versions works fine.

Exact steps for others to reproduce the error

  1. Preferences / System, select OpenCL and RX580
  2. Set render engine to Cycles and GPU Compute
  3. Set viewport to rendered or press F12 to render
      .... Starts loading render kernels and blender crashes

system-info.txt

blender.crash.txt

blender_debug_output.txt

**System Information** Operating system: Ubuntu 20.04.1 LTS and popOS 20.10 Graphics card: Radeon RX 580 **Blender Version** Broken: 2.93.0 Alpha, branch: master, commit date: 2021-01-27 04:28, hash: fc669a4c3ec0 2.92.0 Beta Worked: 2.83.1, 2.90.1, 2.91.2 **Short description of error** Blender crashes in 2.92 and 2.93 when loading render kernels in cycles GPU render. Tried both download from blender.org and build from master. Older versions works fine. **Exact steps for others to reproduce the error** 1) Preferences / System, select OpenCL and RX580 2) Set render engine to Cycles and GPU Compute 3) Set viewport to rendered or press F12 to render ``` .... Starts loading render kernels and blender crashes ``` [system-info.txt](https://archive.blender.org/developer/F9600163/system-info.txt) [blender.crash.txt](https://archive.blender.org/developer/F9600164/blender.crash.txt) [blender_debug_output.txt](https://archive.blender.org/developer/F9600165/blender_debug_output.txt)

Added subscriber: @Svend

Added subscriber: @Svend

Added subscriber: @mano-wii

Added subscriber: @mano-wii

I don't know if it can help, but I see in the logs some messages of "not found in cache" and "not found on disk" so...
Try to delete the cache files in /home/svend/.cache/ in order to recreate them.

I don't know if it can help, but I see in the logs some messages of `"not found in cache"` and `"not found on disk"` so... Try to delete the cache files in `/home/svend/.cache/` in order to recreate them.

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

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

Did deleting the cache files make any difference?

Did deleting the cache files make any difference?

Thanks for the suggestion!! I was wondering where the render kernels where saved and completely missed the cycles folder next to the blender folder.

No unfortunately not. Deleting the kernels; 2.92, 2.93 still crashes. 2.83 and 2.90 fine. 2.91 works but writes “Split kernel error: failed to load kernel_lamp_emmission” in the view port while building the kernel and you have to “reload” it by clicking another view and then back to render view. After this it works fine.

I thought maybe the load kernel_lamp_emmission might also be the problem in 2.92-3 because it was in the debug_output file ??!?

Tried everything I could think if incl removing/installing the AMD OpenCL driver from both version 20.10 and 20.40. Did also delete everything in cache as sugested, not just kernels .

Can anyone confirm that they can make the cycles GPU render kernels in ubuntu with a rx580 (or similar amd card) in either 2.92 or 2.93? If so I’ll try a fresh system install.

Thanks for the help and have a nice weekend when you get to it :)

Thanks for the suggestion!! I was wondering where the render kernels where saved and completely missed the cycles folder next to the blender folder. No unfortunately not. Deleting the kernels; 2.92, 2.93 still crashes. 2.83 and 2.90 fine. 2.91 works but writes “Split kernel error: failed to load kernel_lamp_emmission” in the view port while building the kernel and you have to “reload” it by clicking another view and then back to render view. After this it works fine. I thought maybe the load kernel_lamp_emmission might also be the problem in 2.92-3 because it was in the debug_output file ??!? Tried everything I could think if incl removing/installing the AMD OpenCL driver from both version 20.10 and 20.40. Did also delete everything in cache as sugested, not just kernels . Can anyone confirm that they can make the cycles GPU render kernels in ubuntu with a rx580 (or similar amd card) in either 2.92 or 2.93? If so I’ll try a fresh system install. Thanks for the help and have a nice weekend when you get to it :)

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

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

This “Split kernel error: failed to load kernel_lamp_emmission” is a known issue that appeared in recent AMD drivers for this GPU.
The strange thing is that this problem has only been seen on windows.
See #84461 (Cycles: Split kernel error with OpenCL)

So I'm not sure if it's a duplicate.

This `“Split kernel error: failed to load kernel_lamp_emmission”` is a known issue that appeared in recent AMD drivers for this GPU. The strange thing is that this problem has only been seen on windows. See #84461 (Cycles: Split kernel error with OpenCL) So I'm not sure if it's a duplicate.

The machine is actually a MacPro so I guess we have a full circle ;)
(and yes I am booting directly in to ubuntu/pop, not a virtual machine or whatever.)

Not sure either. One difference to #84461 is that even though I get the same error it actually works in 2.91 in my case. It was rendering happy as Larry for 5-6 hours the other day. Do you know what exactly the kernel_lamp_emmission does? Maybe my renders didn’t actually need it. I’ll be happy to run a test render if it can help.

The machine is actually a MacPro so I guess we have a full circle ;) (and yes I am booting directly in to ubuntu/pop, not a virtual machine or whatever.) Not sure either. One difference to #84461 is that even though I get the same error it actually works in 2.91 in my case. It was rendering happy as Larry for 5-6 hours the other day. Do you know what exactly the kernel_lamp_emmission does? Maybe my renders didn’t actually need it. I’ll be happy to run a test render if it can help.

Added subscriber: @JanneM

Added subscriber: @JanneM

Tried a completely fresh Pop OS 20.10 install and OpenCL from 20.40. Same result :(

2.83.12 works
2.91.2 Split kernel error: failed to load kernel_lamp_emmission, but appears to work fine when kernels are loaded again.
2.92.0 Crash

Maybe #84579 is the same problem??

Tried a completely fresh Pop OS 20.10 install and OpenCL from 20.40. Same result :( 2.83.12 works 2.91.2 Split kernel error: failed to load kernel_lamp_emmission, but appears to work fine when kernels are loaded again. 2.92.0 Crash Maybe #84579 is the same problem??

Added subscriber: @iandol

Added subscriber: @iandol

Added subscriber: @WojciechZakroczymski

Added subscriber: @WojciechZakroczymski

Added subscriber: @thomas-29

Added subscriber: @thomas-29

Workaround for cycles kernel build crash on RX5x0 on Linux

Huge thank you to @thomas-29 for sharing this in #86610 !!!

After looking around I did the same just in a different place. Looks like it was introduced in Cycles: Enable NanoVDB usage by default, bd6bfba64d

By reverting this I can now render with my RX580 again

  1. Deleted old build and cycles kernel cache in .local
  2. Revert bd6bfba64d by changing line 206 to off in CMakeLists.txt
  3. Build master

The first time blender builds the kernels it gives an error (failed to load kernel_path_init) - Assume it’s the same problem as in 2.91.x described above - Try again and it now works :)

To test I rendered bmw27, Classrom. No problems.

Downside; no rendering of volume objects on GPU. Did not test this but, Thomas mentioned it.

Whats the best way to friendly poke the cycles team? Maybe knowing that NanoVDB seems to be the cause there is a simple fix for the AMD cards?
Hopefully this would also fix;

#86610
#85698
#84579
#86182
#86248 (Radeon Pro WX5100)
#85099

Update: As I was writing this, it looks like thomas-29 #86610 just found a solution so it also works with volumes :) Thanks !

Workaround for cycles kernel build crash on RX5x0 on Linux Huge thank you to @thomas-29 for sharing this in #86610 !!! After looking around I did the same just in a different place. Looks like it was introduced in Cycles: Enable NanoVDB usage by default, bd6bfba64d By reverting this I can now render with my RX580 again 1. Deleted old build and cycles kernel cache in .local 2. Revert bd6bfba64dad by changing line 206 to off in CMakeLists.txt 3. Build master The first time blender builds the kernels it gives an error (failed to load kernel_path_init) - Assume it’s the same problem as in 2.91.x described above - Try again and it now works :) To test I rendered bmw27, Classrom. No problems. Downside; no rendering of volume objects on GPU. Did not test this but, Thomas mentioned it. Whats the best way to friendly poke the cycles team? Maybe knowing that NanoVDB seems to be the cause there is a simple fix for the AMD cards? Hopefully this would also fix; #86610 #85698 #84579 #86182 #86248 (Radeon Pro WX5100) #85099 Update: As I was writing this, it looks like thomas-29 #86610 just found a solution so it also works with volumes :) Thanks !

Thanks, did a fresh build and 91c44fe885 seems to have removed the crash :) Do I change the status or is that done by an admin?

The split kernel error is still there!

First time Blender is compiling render kernels I get the following error:

    Split kernel error: failed to load kernel_subsurface_scatter

When I try again it's much faster compiling and all now works fine.

I don't think it has anything to do with subsurface scatter. The error has been there since 2.91 and other versions failed to load other kernel_whatever. Did a few render tests with subsurface scatter, all fine as far as I can tell.

Is this a known bug? or should i make a separate bug report for it?

Thanks, did a fresh build and 91c44fe88547 seems to have removed the crash :) Do I change the status or is that done by an admin? The split kernel error is still there! First time Blender is compiling render kernels I get the following error: ``` Split kernel error: failed to load kernel_subsurface_scatter ``` When I try again it's much faster compiling and all now works fine. I don't think it has anything to do with subsurface scatter. The error has been there since 2.91 and other versions failed to load other kernel_whatever. Did a few render tests with subsurface scatter, all fine as far as I can tell. Is this a known bug? or should i make a separate bug report for it?

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

Changed status from 'Needs Triage' to: 'Resolved'
Germano Cavalcante self-assigned this 2021-04-12 15:01:34 +02:00

Thanks for the info.
The split kernel appears to be a different problem and is probably related to #84461 (Cycles: Split kernel error with OpenCL).
So I will close this report.

Thanks for the info. The split kernel appears to be a different problem and is probably related to #84461 (Cycles: Split kernel error with OpenCL). So I will close this report.
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
5 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#85099
No description provided.