Crash when Cycles rendering on Vega 64 (OpenCL) #60211

Closed
opened 2019-01-05 19:53:25 +01:00 by Stephen Caulfield · 17 comments

System Information
Operating system: Windows 10
Graphics card: AMD Vega 64

Blender Version
Broken: 2.80 Beta, 674d364af0, 2019-01-05
(example: 2.79b release)
(example: 2.80, edbf15d3c0, blender2.8, 2018-11-28, as found on the splash screen)
Worked: (optional)

Rendering animation of attached blend file in Cycles using AMD Vega 64. After a few minutes, Computer freezes, after a few seconds drops to black screen and then after a few more seconds the graphics card recovers but rendering stops. Running in Visual Studio 2017 cloned from github today (2018-01-05). Access violation exception occurs in amdocl64.dll (version 25.20.15002.58).

Steps to Recreate
Render animation of attached blend scene on AMD Vega 64.

Attached micblend.blend and screenshot of exception/stack trace in from Visual Studio 2017.

This is my first time reporting a bug, please let me know if I can supply any further information.

vs2017.PNG
micblend.blend

**System Information** Operating system: Windows 10 Graphics card: AMD Vega 64 **Blender Version** Broken: 2.80 Beta, 674d364af0b1, 2019-01-05 (example: 2.79b release) (example: 2.80, edbf15d3c044, blender2.8, 2018-11-28, as found on the splash screen) Worked: (optional) Rendering animation of attached blend file in Cycles using AMD Vega 64. After a few minutes, Computer freezes, after a few seconds drops to black screen and then after a few more seconds the graphics card recovers but rendering stops. Running in Visual Studio 2017 cloned from github today (2018-01-05). Access violation exception occurs in amdocl64.dll (version 25.20.15002.58). **Steps to Recreate** Render animation of attached blend scene on AMD Vega 64. Attached micblend.blend and screenshot of exception/stack trace in from Visual Studio 2017. This is my first time reporting a bug, please let me know if I can supply any further information. ![vs2017.PNG](https://archive.blender.org/developer/F6189084/vs2017.PNG) [micblend.blend](https://archive.blender.org/developer/F6189093/micblend.blend)

Added subscriber: @blenderscuba

Added subscriber: @blenderscuba

Added subscriber: @ZedDB

Added subscriber: @ZedDB

Do you have any issue if you run this GPU memtest program? https://simtk.org/projects/memtest

Additionally you can see if you GPU is stable with: http://geeks3d.com/furmark/kombustor/

Do you have any problems with http://www.luxmark.info/ ?

Do you have any issue if you run this GPU memtest program? https://simtk.org/projects/memtest Additionally you can see if you GPU is stable with: http://geeks3d.com/furmark/kombustor/ Do you have any problems with http://www.luxmark.info/ ?

Hi,

I have run the LuxMark stress test (hotel lobby) with no issues and the kombustor test also with no issues.

On running the memtest, I get issues with the Random blocks test and none of the other ones. However, having looked online it seems like there may be a bug in the Random Blocks test.

One thing I have noted is while using 2.8 is that blend files I create initially seem to work but then after saving them a few times, they seem to eventually fail. Is the file becoming corrupted in some way maybe?

I have another example file which is failing if it would be useful to upload it to you?

Hi, I have run the LuxMark stress test (hotel lobby) with no issues and the kombustor test also with no issues. On running the memtest, I get issues with the Random blocks test and none of the other ones. However, having looked online it seems like there may be a bug in the Random Blocks test. One thing I have noted is while using 2.8 is that blend files I create initially seem to work but then after saving them a few times, they seem to eventually fail. Is the file becoming corrupted in some way maybe? I have another example file which is failing if it would be useful to upload it to you?

Just to be sure, this is still a problem with the latest blender beta, right?

Just to be sure, this is still a problem with the latest blender beta, right?

Yes,

I have just downloaded the latest nightly build of 2.8 and it's still happening.

Yes, I have just downloaded the latest nightly build of 2.8 and it's still happening.

Added subscriber: @brecht

Added subscriber: @brecht

@brecht is there anyone at BI that could try to reproduce this?

@brecht is there anyone at BI that could try to reproduce this?

Added subscriber: @BlandSauce

Added subscriber: @BlandSauce

I have just noted something interesting.

If I disable Motion Blur it renders fine. Not sure if this might be related to the issue.

I have just noted something interesting. If I disable Motion Blur it renders fine. Not sure if this might be related to the issue.
Brecht Van Lommel was assigned by Sebastian Parborg 2019-02-01 13:57:58 +01:00

Added subscribers: @Jeroen-Bakker, @mont29

Added subscribers: @Jeroen-Bakker, @mont29
Brecht Van Lommel was unassigned by Bastien Montagne 2019-03-18 18:00:45 +01:00
Jeroen Bakker was assigned by Bastien Montagne 2019-03-18 18:00:45 +01:00

@Jeroen-Bakker I believe you are the current OpenCL guy? ;)

@Jeroen-Bakker I believe you are the current OpenCL guy? ;)
Member

@blenderscuba I have done a lot of changes to the OpenCL codebase since februari. I am trying to reproduce the issue, but could also be solved already. Would you mind to retest it with the latest blender build and latest AMD Drivers.

If it is still not working, could you add you systeminfo and clinfo to this bug report. That might help us to find out the issue.

This night I am rendering the scene on my system, to reproduce it.
Also can you run it with a memory monitor open. Could be related to memoryleak issue.

@blenderscuba I have done a lot of changes to the OpenCL codebase since februari. I am trying to reproduce the issue, but could also be solved already. Would you mind to retest it with the latest blender build and latest AMD Drivers. If it is still not working, could you add you systeminfo and clinfo to this bug report. That might help us to find out the issue. This night I am rendering the scene on my system, to reproduce it. Also can you run it with a memory monitor open. Could be related to memoryleak issue.

Hi, tried again with today's build (blender-2.80.0-git.d47f827019f2-windows64) and latest AMD recommended drivers (19.1.1).

Got quite far through and then crashed. I have attached clinfo and sysinfo. I have another blend file which consistently crashes when Motion Blur is switched on that I can upload if that helps?

clinfo.log

systeminfo.txt

Hi, tried again with today's build (blender-2.80.0-git.d47f827019f2-windows64) and latest AMD recommended drivers (19.1.1). Got quite far through and then crashed. I have attached clinfo and sysinfo. I have another blend file which consistently crashes when Motion Blur is switched on that I can upload if that helps? [clinfo.log](https://archive.blender.org/developer/F6851259/clinfo.log) [systeminfo.txt](https://archive.blender.org/developer/F6851260/systeminfo.txt)
Member

@blenderscuba Could you attach the systeminfo that is created by blender? You can find it in the Help -> Save System Info.
Also have you checked the memory usage when rendering? On my system it also crashed, but expected a high memory usage at the time it crashed.

image.png
Memory usage of the scene when rendering animation. This graph is when rendering with CPU. I suspect that this is not an OpenCL related problem, but a memory leak in cycles or blender somewhere.

for every frame rendered 280 MB of memory is leaked

Error: Not freed memory blocks: 32, total unfreed memory 281.802979 MB
Mesh len: 1552 0x7f666f9dc338
CDMVert len: 11590400 0x7f6667400038
CustomData->layers len: 520 0x7f667abb3038
CDOrigIndex len: 2318080 0x7f6665806038
CDMEdge len: 13866240 0x7f6668000038
CustomData->layers len: 520 0x7f667abb32b8
CDOrigIndex len: 4622080 0x7f665b800038
CDMLoop len: 18432000 0x7f665a400038
CustomData->layers len: 520 0x7f667abb3538
CDOrigIndex len: 2304000 0x7f6669006038
CustomData->layers len: 520 0x7f667abb37b8
CDMPoly len: 6912000 0x7f6659c00038
BKE_mesh_recalc_tessellation len: 11520000 0x7f6654c00038
BKE_mesh_recalc_tessellation len: 2304000 0x7f6659006038
CustomData->layers len: 520 0x7f667abb2b38
dupli_mapalloc len: 8 0x7f666f9809f8
Mesh len: 1552 0x7f666f9e1738
CDMVert len: 11590400 0x7f6655800038
CustomData->layers len: 520 0x7f667abb3cb8
CDOrigIndex len: 2318080 0x7f6659406038
CDMEdge len: 13866240 0x7f6656400038
CustomData->layers len: 520 0x7f667abb3f38
CDOrigIndex len: 4622080 0x7f6677800038
CDMLoop len: 18432000 0x7f6652400038
CustomData->layers len: 520 0x7f667abb41b8
CDOrigIndex len: 2304000 0x7f6659806038
CustomData->layers len: 520 0x7f667abb4438
CDMPoly len: 6912000 0x7f6653800038
BKE_mesh_recalc_tessellation len: 11520000 0x7f664ac00038
BKE_mesh_recalc_tessellation len: 2304000 0x7f6654806038
CustomData->layers len: 520 0x7f667abb23b8
dupli_mapalloc len: 8 0x7f667ab31b38

Does not seem to be related to Object motion, but Object motion might double the effect. Issue is related to the beveled curve objects modifier. Would say:

"Memory leak when rendering a beveled curve in Cycles (only Blender2.80)"
Same memory leak appears when converting a curve to a mesh.
Seems like data of the evaluated tmp curve is not freed correctly.

@blenderscuba Could you attach the systeminfo that is created by blender? You can find it in the `Help -> Save System Info`. Also have you checked the memory usage when rendering? On my system it also crashed, but expected a high memory usage at the time it crashed. ![image.png](https://archive.blender.org/developer/F6853709/image.png) Memory usage of the scene when rendering animation. This graph is when rendering with CPU. I suspect that this is not an OpenCL related problem, but a memory leak in cycles or blender somewhere. for every frame rendered 280 MB of memory is leaked ``` Error: Not freed memory blocks: 32, total unfreed memory 281.802979 MB Mesh len: 1552 0x7f666f9dc338 CDMVert len: 11590400 0x7f6667400038 CustomData->layers len: 520 0x7f667abb3038 CDOrigIndex len: 2318080 0x7f6665806038 CDMEdge len: 13866240 0x7f6668000038 CustomData->layers len: 520 0x7f667abb32b8 CDOrigIndex len: 4622080 0x7f665b800038 CDMLoop len: 18432000 0x7f665a400038 CustomData->layers len: 520 0x7f667abb3538 CDOrigIndex len: 2304000 0x7f6669006038 CustomData->layers len: 520 0x7f667abb37b8 CDMPoly len: 6912000 0x7f6659c00038 BKE_mesh_recalc_tessellation len: 11520000 0x7f6654c00038 BKE_mesh_recalc_tessellation len: 2304000 0x7f6659006038 CustomData->layers len: 520 0x7f667abb2b38 dupli_mapalloc len: 8 0x7f666f9809f8 Mesh len: 1552 0x7f666f9e1738 CDMVert len: 11590400 0x7f6655800038 CustomData->layers len: 520 0x7f667abb3cb8 CDOrigIndex len: 2318080 0x7f6659406038 CDMEdge len: 13866240 0x7f6656400038 CustomData->layers len: 520 0x7f667abb3f38 CDOrigIndex len: 4622080 0x7f6677800038 CDMLoop len: 18432000 0x7f6652400038 CustomData->layers len: 520 0x7f667abb41b8 CDOrigIndex len: 2304000 0x7f6659806038 CustomData->layers len: 520 0x7f667abb4438 CDMPoly len: 6912000 0x7f6653800038 BKE_mesh_recalc_tessellation len: 11520000 0x7f664ac00038 BKE_mesh_recalc_tessellation len: 2304000 0x7f6654806038 CustomData->layers len: 520 0x7f667abb23b8 dupli_mapalloc len: 8 0x7f667ab31b38 ``` Does not seem to be related to Object motion, but Object motion might double the effect. Issue is related to the beveled curve objects modifier. Would say: "Memory leak when rendering a beveled curve in Cycles (only Blender2.80)" Same memory leak appears when converting a curve to a mesh. Seems like data of the evaluated tmp curve is not freed correctly.

This issue was referenced by d6bf6744fc

This issue was referenced by d6bf6744fca0773ab074621271adc0c03cc0c0df
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
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#60211
No description provided.