Page MenuHome

Crash after deleting mesh objects while in rendered viewport (Cycles GPU - OpenCL)
Closed, ArchivedPublicBUG

Description

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: Radeon RX Vega ATI Technologies Inc. 4.5.13586 Core Profile Context 19.12.2 26.20.15002.61

Blender Version
Broken: version: 2.82 (sub 6), branch: master, commit date: 2020-01-10 15:30, hash: rB1cb938ef2c92
Worked: same version on Eevee and Cycles set to render with CPU. Also works with Cycles GPU on version 2.81a

Short description of error
Blender crashes after deleting mesh objects. After further experimenting, seems to happen only if the object deleted is the last mesh object in the scene.

Exact steps for others to reproduce the error

  • Set renderer to Cycles GPU
  • Set viewport to rendered mode
  • Delete all mesh objects in the scene

Crash video default scene:

Crash video several objects:

Event Timeline

Claudio D. (claudio) updated the task description. (Show Details)
Jeroen Bakker (jbakker) changed the task status from Needs Triage to Needs Information from User.Jan 13 2020, 9:02 AM

Unable to reproduce in Linux with AMD Pro Drivers. I was able to reproduce it in Windows with an old build and 19.12.2 drivers. I rechecked with latest master and I wasn't able to reproduce it anymore. Can you recheck with the latest version?

Error   : EXCEPTION_ACCESS_VIOLATION
Address : 0x00007FF9E27C6CA9
Module  : C:\WINDOWS\System32\DriverStore\FileRepository\u0349464.inf_amd64_789f2a8b5b866ccf\B349558\amdocl64.dll

It crashes in the driver.

Can you recheck with the latest version?

Both scenarios mentioned still broken on latest version on builder at this point:
Broken: version: 2.82 (sub 6), branch: master, commit date: 2020-01-12 16:23, hash: rB0ef881cc5782

Not sure if useful, but tried it with latest 2.83 builder version and it is also broken:
Broken: version: 2.83 (sub 0), branch: master, commit date: 2020-01-14 06:12, hash: rB1bcb2bfd5724

Richard Antalik (ISS) changed the task status from Needs Information from User to Needs Information from Developers.Jan 26 2020, 2:23 AM

I have the same problem.
Fun fact, if I start with the rendered viewport (with GPU) without cubes, add one and delete it, I don't have this bug.

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: Radeon (TM) RX 480 Graphics ATI Technologies Inc. 4.5.13596 Core Profile Context 20.5.1 27.20.1017.1011

Blender Version
Broken: version: 2.83.0, branch: master, commit date: 2020-06-03 14:38, hash: rB211b6c29f771, type: Release
Broken: version: 2.90.0 Alpha, branch: master, commit date: 2020-06-19 23:28, hash: 874af5301cdf, type: Release
Worked: version: 2.82 (sub 7), branch: master, commit date: 2020-03-12 05:06, hash: 375c7dc4caf4, type: Release

In the debug I have this:

GL API deprecated behavior: glLineWidth uses wide lines (parameter <width> with value '0x0') which are deprecated and do not work outside of the compatibility context
OpenCL error: CL_INVALID_ARG_SIZE in clSetKernelArg( kernel, start_argument_index + current_arg_index, arg1.size, arg1.pointer) (c:\b\win64_cmake_vs2017\win64_cmake_vs2017\blender.git\intern\cycles\device\opencl\device_opencl_impl.cpp:2014)
OpenCL error (-52): CL_INVALID_KERNEL_ARGS in clEnqueueNDRangeKernel
OpenCL error: CL_INVALID_KERNEL_ARGS in clEnqueueNDRangeKernel()
Error   : EXCEPTION_ACCESS_VIOLATION
Bastien Montagne (mont29) changed the subtype of this task from "Report" to "Bug".Oct 15 2020, 4:01 PM
Thomas Dinges (dingto) closed this task as Archived.Nov 18 2021, 8:41 PM

OpenCL rendering support was removed in Blender 3.0.
The combination of the limited Cycles kernel implementation, driver bugs, and stalled OpenCL standard
has made maintenance too difficult. Thanks for your report, but it's unlikely that there will be further fixes for OpenCL.

For AMD GPUs, there is a new backend based on the HIP platform.
In Blender 3.0, this is supported on Windows with RDNA and RDNA2 generation discrete graphics cards.
It includes Radeon RX 5000 and RX 6000 series GPUs. Driver version Radeon Pro 21.Q4 or newer is required.

https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://code.blender.org/2021/11/next-level-support-for-amd-gpus/