Cycles crashes after compiling render kernels for a scene with volumetric shaders #77858

Closed
opened 2020-06-14 17:10:17 +02:00 by Edward Hurley · 55 comments

Operating system: Windows 10
Graphics card: AMD Ryzen 5600 XT

Broken: 2.83 LTS
Worked: N/A

Whenever I try to start a render with a scene that has a volumetric shader, Blender crashes on the "Updating device | Writing constant memory | Compiling render kernels" step. It does not matter what the step size/count is. I have 16gb of memory which has been more than enough in the past. If I render on my CPU, then the render is successful

Here is the blend file. test2.blend

Operating system: Windows 10 Graphics card: AMD Ryzen 5600 XT Broken: 2.83 LTS Worked: N/A Whenever I try to start a render with a scene that has a volumetric shader, Blender crashes on the "Updating device | Writing constant memory | Compiling render kernels" step. It does not matter what the step size/count is. I have 16gb of memory which has been more than enough in the past. If I render on my CPU, then the render is successful Here is the blend file. [test2.blend](https://archive.blender.org/developer/F8619333/test2.blend)
Author

Added subscriber: @echurley

Added subscriber: @echurley

#78963 was marked as duplicate of this issue

#78963 was marked as duplicate of this issue

#78964 was marked as duplicate of this issue

#78964 was marked as duplicate of this issue

#78027 was marked as duplicate of this issue

#78027 was marked as duplicate of this issue

#81632 was marked as duplicate of this issue

#81632 was marked as duplicate of this issue

#79437 was marked as duplicate of this issue

#79437 was marked as duplicate of this issue

Added subscriber: @mano-wii

Added subscriber: @mano-wii

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

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

This message is usually temporary.
And it only appears the first time that kernels are compiled.

Did you wait for the compilation of the kernels to complete?

This message is usually temporary. And it only appears the first time that kernels are compiled. Did you wait for the compilation of the kernels to complete?
Author

It crashes after compiling, so no I haven't.

It crashes after compiling, so no I haven't.

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

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

I tested with the attached file.
Compiling the kernels took a while but the rendering went smoothly.
However, some texture images are not in the file.

Many things can cause the problem in your GPU:

  • Poor refirgeration
  • inefficient energy supply
  • Not enough memory

Operating system: Windows-10-10.0.18941 64 Bits
Graphics card: Radeon (TM) RX 480 Graphics ATI Technologies Inc. 4.5.13596 Core Profile Context 20.10.19.02 27.20.1019.2002

I tested with the attached file. Compiling the kernels took a while but the rendering went smoothly. However, some texture images are not in the file. Many things can cause the problem in your GPU: - Poor refirgeration - inefficient energy supply - Not enough memory ---- **Operating system:** Windows-10-10.0.18941 64 Bits **Graphics card:** Radeon (TM) RX 480 Graphics ATI Technologies Inc. 4.5.13596 Core Profile Context 20.10.19.02 27.20.1019.2002
Author

I had the AMD stats software in the corner of my screen so I could monitor my GPU. It was at a normal temperature and neither the VRAM nor my system RAM were running out of room. My power supply can handle my system at full load plus about 50 watts additionally.

I had the AMD stats software in the corner of my screen so I could monitor my GPU. It was at a normal temperature and neither the VRAM nor my system RAM were running out of room. My power supply can handle my system at full load plus about 50 watts additionally.

Added subscriber: @SwampCucumber

Added subscriber: @SwampCucumber

I am not sure if I can comment on a bug report as a person who didn't start it. If I can't, feel free to delete this comment.

Operating system: Windows 10
GPU: 5700XT
Broken: 2.83

Using any form of volumetrics in the scene with gpu rendering results in blender crashing/disappearing on writing constant memory/compiling render kernels. This takes about a minute from the step first appearing to the crash with nothing else happening. The window is not hanging during this time, with blender ui being fully responsive. This includes an emmision shader, principled volume, volume scatter and volume absorbtion.

Rendering in the viewport works fine even with the volumetrics enabled. Turning them off allows the full render to proceed. Rendering the scene on CPU works fine with memory peak usage at 800mb. Loading factory preferences didn't fix the issue.

While trying to render, the GPU doesn't pass 50C, VRAM utilisation stays at 15% and the power supply(750W) is more than enough.

Default cube with volume shader also crashes. Reinstall did not fix this issue.

I am not sure if I can comment on a bug report as a person who didn't start it. If I can't, feel free to delete this comment. Operating system: Windows 10 GPU: 5700XT Broken: 2.83 Using any form of volumetrics in the scene with gpu rendering results in blender crashing/disappearing on writing constant memory/compiling render kernels. This takes about a minute from the step first appearing to the crash with nothing else happening. The window is not hanging during this time, with blender ui being fully responsive. This includes an emmision shader, principled volume, volume scatter and volume absorbtion. Rendering in the viewport works fine even with the volumetrics enabled. Turning them off allows the full render to proceed. Rendering the scene on CPU works fine with memory peak usage at 800mb. Loading factory preferences didn't fix the issue. While trying to render, the GPU doesn't pass 50C, VRAM utilisation stays at 15% and the power supply(750W) is more than enough. Default cube with volume shader also crashes. Reinstall did not fix this issue.

Added subscriber: @iss

Added subscriber: @iss

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

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

Can you download latest Blender 2.90 from https://builder.blender.org/download/ run blender_debug_log.cmd file and upload files created?

Can you download latest Blender 2.90 from https://builder.blender.org/download/ run `blender_debug_log.cmd` file and upload files created?

Okay, downloaded the daily build.

The problems persist, but crashes faster. This happens on a default cube with a default principled volume in the volume output. Viewport GPU rendering also crashes now, which didn't happen in 2.83. Also I forgot to mention that I have the newest AMD driver available for my card.

blender_system_info.txt
blender_debug_output.txt

Okay, downloaded the daily build. The problems persist, but crashes faster. This happens on a default cube with a default principled volume in the volume output. Viewport GPU rendering also crashes now, which didn't happen in 2.83. Also I forgot to mention that I have the newest AMD driver available for my card. [blender_system_info.txt](https://archive.blender.org/developer/F8637041/blender_system_info.txt) [blender_debug_output.txt](https://archive.blender.org/developer/F8637042/blender_debug_output.txt)

I don't see any sign of crash in blender_debug_output.txt file. Did you let Blender crash and these files were created after that? I guess I should have explained my intentions better.

I don't see any sign of crash in `blender_debug_output.txt` file. Did you let Blender crash and these files were created after that? I guess I should have explained my intentions better.

Yes I did. I am uploading a video of the crash. I also tried running the gpu debug, but it doesn't look like anything changed.

I also tried to have a look at drivers. Right now I am running an optional driver 2.5.1, but reinstalling back to the last recommended driver 2.4.2 did not change anything. The "PRO" driver for my card also did not change anything.

blender_debug_output.txt
blender_system_info.txt
BlenderCrash.mp4

Yes I did. I am uploading a video of the crash. I also tried running the gpu debug, but it doesn't look like anything changed. I also tried to have a look at drivers. Right now I am running an optional driver 2.5.1, but reinstalling back to the last recommended driver 2.4.2 did not change anything. The "PRO" driver for my card also did not change anything. [blender_debug_output.txt](https://archive.blender.org/developer/F8638443/blender_debug_output.txt) [blender_system_info.txt](https://archive.blender.org/developer/F8638444/blender_system_info.txt) [BlenderCrash.mp4](https://archive.blender.org/developer/F8638415/BlenderCrash.mp4)

Added subscriber: @dstiglitz

Added subscriber: @dstiglitz

I have the same exact problem, with every version of blender 2.8+. GPU and CPU temperatures are ok (below 65°C). When starts rendering on GPU and after a certain amount of time compiling render kernel, then simply blender crashes.

I have the same exact problem, with every version of blender 2.8+. GPU and CPU temperatures are ok (below 65°C). When starts rendering on GPU and after a certain amount of time compiling render kernel, then simply blender crashes.

Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'

Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'

I uninstalled the optional AMD driver (Adrenalin 2020 Edition 20.5.1) and installed the recommended (Adrenalin 2020 Edition 20.4.2). It worked for me.

I uninstalled the optional AMD driver (Adrenalin 2020 Edition 20.5.1) and installed the recommended (Adrenalin 2020 Edition 20.4.2). It worked for me.

Added subscriber: @brecht

Added subscriber: @brecht

In #77858#965299, @dstiglitz wrote:
I uninstalled the optional AMD driver (Adrenalin 2020 Edition 20.5.1) and installed the recommended (Adrenalin 2020 Edition 20.4.2). It worked for me.

This is curious.

@brecht, does this problem have anything to do with using OpenCL 2.0?
@echurley, can you confirm that downgrading the driver solves the problem for you too? (https://www.amd.com/en/support/kb/release-notes/rn-rad-win-20-4-2)

> In #77858#965299, @dstiglitz wrote: > I uninstalled the optional AMD driver (Adrenalin 2020 Edition 20.5.1) and installed the recommended (Adrenalin 2020 Edition 20.4.2). It worked for me. This is curious. @brecht, does this problem have anything to do with using OpenCL 2.0? @echurley, can you confirm that downgrading the driver solves the problem for you too? (https://www.amd.com/en/support/kb/release-notes/rn-rad-win-20-4-2)
Author

This comment was removed by @echurley

*This comment was removed by @echurley*
Author

@mano-wii Downgrading the AMD driver to 20.4.2 did not work for me

@mano-wii Downgrading the AMD driver to 20.4.2 did not work for me

Same problem with newest AMD drivers Adrenalin 2020 Edition 20.7.2 Optional

Same problem with newest AMD drivers Adrenalin 2020 Edition 20.7.2 Optional

Added subscriber: @Doidero

Added subscriber: @Doidero

Added subscriber: @Insertcoin.tv

Added subscriber: @Insertcoin.tv

Hi Guys, any news for use 2.83+ with AMD cards??
We can't use it, always crash...
Here all explained.

https:*developer.blender.org/T75319

Hi Guys, any news for use 2.83+ with AMD cards?? We can't use it, always crash... Here all explained. [https:*developer.blender.org/T75319](https:*developer.blender.org/T75319)

Added subscriber: @egementncr

Added subscriber: @egementncr
Author

Update: I did a fresh Windows 10 install (for unrelated reasons) and now with the AMD recommended drivers (20.4.2) I can render volumes in cycles with my 5600 XT.

Update: I did a fresh Windows 10 install (for unrelated reasons) and now with the AMD recommended drivers (20.4.2) I can render volumes in cycles with my 5600 XT.

Added subscriber: @John-smith-1

Added subscriber: @John-smith-1

i have the same problem just after i reinstaled windows with the newest drivers a few days ago, is there ant solutions?

i have the same problem just after i reinstaled windows with the newest drivers a few days ago, is there ant solutions?

Removed subscriber: @Insertcoin.tv

Removed subscriber: @Insertcoin.tv
Member

Added subscriber: @HeyAshy

Added subscriber: @HeyAshy

Added subscriber: @Zodijac

Added subscriber: @Zodijac

As everyone here, i got the exact same problem as in the video
any fixes?
i am using adrenalin 20.9.2
blender version is 2.90.1

As everyone here, i got the exact same problem as in the video any fixes? i am using adrenalin 20.9.2 blender version is 2.90.1

Added subscriber: @Alejandro-Nevarez-Lucio

Added subscriber: @Alejandro-Nevarez-Lucio

I've got the same problem since the release of the AMD new drivers, i've been just reading this thread, i've tried everything, and i have something weird besides the crash.

Sometimes (it is just random) when i hit render view with OpenCL the whole scene turns white materials, everything, the HDRI, textures, materials, it all goes white (even with factory reset default cube thing or complex scene) for a minute or two, then it crashes. This just happens from time to time, it usually just crashes when loading kernels finish.

It now happens with every latest blender version, even 2.83 LTS from windows store giving me always same problem.

I think it has something to do with Radeon Drivers, this same thing happened to me back in April, and the problem just went away with new AMD Drivers, now same thing i guess we'll have to wait for new AMD drivers and hope Blender works fine with them.

I've got the same problem since the release of the AMD new drivers, i've been just reading this thread, i've tried everything, and i have something weird besides the crash. Sometimes (it is just random) when i hit render view with OpenCL the whole scene turns white materials, everything, the HDRI, textures, materials, it all goes white (even with factory reset default cube thing or complex scene) for a minute or two, then it crashes. This just happens from time to time, it usually just crashes when loading kernels finish. It now happens with every latest blender version, even 2.83 LTS from windows store giving me always same problem. I think it has something to do with Radeon Drivers, this same thing happened to me back in April, and the problem just went away with new AMD Drivers, now same thing i guess we'll have to wait for new AMD drivers and hope Blender works fine with them.

Hey everyone!

I wrote an email to the amd support and the guys who replied (amd customersupport) said: " The Rx 5700 XT is a gaming graphics card, are your games working properly? For professional applications such as blenders or other CAD / rendering or video editing software, we have the Radeon Pro graphics cards."
Thats so funny. He proposed me to buy a Radeon Pro Card instead of just fixxing the amd drivers xD

Hey everyone! I wrote an email to the amd support and the guys who replied (amd customersupport) said: " The Rx 5700 XT is a gaming graphics card, are your games working properly? For professional applications such as blenders or other CAD / rendering or video editing software, we have the Radeon Pro graphics cards." Thats so funny. He proposed me to buy a Radeon Pro Card instead of just fixxing the amd drivers xD

Added subscriber: @abdysn

Added subscriber: @abdysn

Hi all,

everything was working with me on adrenalin 20.9.2, then i decided to upgrade to the newest 20.10.1. after which i started to encounter the same issue, reverting back to adrenalin 20.9.2 did not solve the issue. so i tried to install my device default drivers from the official site (https://www.msi.com/Laptop/support/Bravo-17-A4DDK#down-driver&Win10%2064 in my case) which installs 20.10.23. and everything started to work again.

EDIT1: actually the working version (20.10.23) is not the default version, but the recommended one from msi, since it is pretty new (was uploaded on October 6 or something), and have a higher version than the latest drivers from amd :).

Hi all, everything was working with me on adrenalin 20.9.2, then i decided to upgrade to the newest 20.10.1. after which i started to encounter the same issue, reverting back to adrenalin 20.9.2 did not solve the issue. so i tried to install my device default drivers from the official site (https://www.msi.com/Laptop/support/Bravo-17-A4DDK#down-driver&Win10%2064 in my case) which installs 20.10.23. and everything started to work again. EDIT1: actually the working version (20.10.23) is not the default version, but the recommended one from msi, since it is pretty new (was uploaded on October 6 or something), and have a higher version than the latest drivers from amd :).

Hey!
Just deinstall the radeon drivers!
It works for me now, i just have installed the newest chipset drivers for my motherboard

Hey! Just deinstall the radeon drivers! It works for me now, i just have installed the newest chipset drivers for my motherboard
Added subscribers: @turpentine, @Lafreyya, @Jasaj, @ChloeHase, @Alirion-2, @aviel, @AndyMachin, @raphaelfalc, @zonaweb, @xnonamex, @Diogo_Valadares, @SilentMrDave, @Travis.SPN, @mrguyorama

Added subscriber: @mikec

Added subscriber: @mikec

Added subscribers: @DreamOfHero, @ZaldronGG, @jpedulino, @mcolinp

Added subscribers: @DreamOfHero, @ZaldronGG, @jpedulino, @mcolinp

Added subscriber: @titanan

Added subscriber: @titanan

Hey everyone. I finally solved it for me and I'm hella happy rn. It turned out that the solution was inside the problem. Just delete the kernels folder from appdata. You need to press Windows + R key and write %appdata%, then open blender, 2.9 (or whatever version u use) then cache, kernels and delete the folder. (kernels folder, not cache) Now you are ready to go. It will take some time at your first render in either viewport and normal render mode. But be patient and you are golden.

Hey everyone. I finally solved it for me and I'm hella happy rn. It turned out that the solution was inside the problem. Just delete the kernels folder from appdata. You need to press Windows + R key and write %appdata%, then open blender, 2.9 (or whatever version u use) then cache, kernels and delete the folder. (kernels folder, not cache) Now you are ready to go. It will take some time at your first render in either viewport and normal render mode. But be patient and you are golden.

Added subscriber: @ThomasDinges

Added subscriber: @ThomasDinges

Changed status from 'Needs Developer To Reproduce' to: 'Archived'

Changed status from 'Needs Developer To Reproduce' to: 'Archived'

OpenCL has been removed in Blender 3.0 for AMD cards and replaced by HIP. If the issue still exists, please create a new report.

OpenCL has been removed in Blender 3.0 for AMD cards and replaced by HIP. If the issue still exists, please create a new 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
No Assignees
15 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#77858
No description provided.