Render crashes when linked objects #80314

Closed
opened 2020-09-01 09:05:49 +02:00 by Joselu · 21 comments

Render crashes. Open file GARDEN Final Scene and press F12. Only when removing linked objects it works.

Zip file includes all files needed and System Info.GARDEN Final Scene Render CRASH.zip

Render crashes. Open file GARDEN Final Scene and press F12. Only when removing linked objects it works. Zip file includes all files needed and System Info.[GARDEN Final Scene Render CRASH.zip](https://archive.blender.org/developer/F8828842/GARDEN_Final_Scene_Render_CRASH.zip)
Author

Added subscriber: @Xeluaxeman

Added subscriber: @Xeluaxeman

Added subscriber: @mano-wii

Added subscriber: @mano-wii

It didn't crash here, but I also can't render with GPU because this OpenCL error:

OpenCL error: CL_INVALID_VALUE in clEnqueueCopyBuffer(device->cqCommandQueue, CL_MEM_PTR(buffer->device_pointer), CL_MEM_PTR(new_buffer->device_pointer), allocation->desc.offset, offset, allocation->mem->memory_size(), 0, NULL, NULL) (C:\Germano\Dev\BlenderDev\blender\intern\cycles\device\opencl\memory_manager.cpp:114)
OpenCL error: CL_INVALID_VALUE in clEnqueueCopyBuffer(device->cqCommandQueue, CL_MEM_PTR(buffer->device_pointer), CL_MEM_PTR(new_buffer->device_pointer), allocation->desc.offset, offset, allocation->mem->memory_size(), 0, NULL, NULL) (C:\Germano\Dev\BlenderDev\blender\intern\cycles\device\opencl\memory_manager.cpp:114)
OpenCL error: CL_INVALID_VALUE in clEnqueueCopyBuffer(device->cqCommandQueue, CL_MEM_PTR(buffer->device_pointer), CL_MEM_PTR(new_buffer->device_pointer), allocation->desc.offset, offset, allocation->mem->memory_size(), 0, NULL, NULL) (C:\Germano\Dev\BlenderDev\blender\intern\cycles\device\opencl\memory_manager.cpp:114)
OpenCL error: CL_INVALID_VALUE in clEnqueueCopyBuffer(device->cqCommandQueue, CL_MEM_PTR(buffer->device_pointer), CL_MEM_PTR(new_buffer->device_pointer), allocation->desc.offset, offset, allocation->mem->memory_size(), 0, NULL, NULL) (C:\Germano\Dev\BlenderDev\blender\intern\cycles\device\opencl\memory_manager.cpp:114)
OpenCL error: CL_INVALID_VALUE in clEnqueueWriteBuffer(device->cqCommandQueue, CL_MEM_PTR(new_buffer->device_pointer), CL_FALSE, offset, allocation->mem->memory_size(), allocation->mem->host_pointer, 0, NULL, NULL) (C:\Germano\Dev\BlenderDev\blender\intern\cycles\device\opencl\memory_manager.cpp:99)
OpenCL error: CL_INVALID_VALUE in clEnqueueWriteBuffer(device->cqCommandQueue, CL_MEM_PTR(new_buffer->device_pointer), CL_FALSE, offset, allocation->mem->memory_size(), allocation->mem->host_pointer, 0, NULL, NULL) (C:\Germano\Dev\BlenderDev\blender\intern\cycles\device\opencl\memory_manager.cpp:99)
Error: OpenCL error: CL_INVALID_VALUE in clEnqueueCopyBuffer(device->cqCommandQueue, CL_MEM_PTR(buffer->device_pointer), CL_MEM_PTR(new_buffer->device_pointer), allocation->desc.offset, offset, allocation->mem->memory_size(), 0, NULL, NULL) (C:\Germano\Dev\BlenderDev\blender\intern\cycles\device\opencl\memory_manager.cpp:114)

I don't know what can lead to this error, but apparently it is a memory problem, which is not surprising since this file is very complex.
For valid bug reports it is recommended that the file be simplified to the maximum. This makes it easy to identify the problem.

If an out-of-memory problem is confirmed, this is not considered a bug, but a hardware limitation.

It didn't crash here, but I also can't render with GPU because this OpenCL error: ``` OpenCL error: CL_INVALID_VALUE in clEnqueueCopyBuffer(device->cqCommandQueue, CL_MEM_PTR(buffer->device_pointer), CL_MEM_PTR(new_buffer->device_pointer), allocation->desc.offset, offset, allocation->mem->memory_size(), 0, NULL, NULL) (C:\Germano\Dev\BlenderDev\blender\intern\cycles\device\opencl\memory_manager.cpp:114) OpenCL error: CL_INVALID_VALUE in clEnqueueCopyBuffer(device->cqCommandQueue, CL_MEM_PTR(buffer->device_pointer), CL_MEM_PTR(new_buffer->device_pointer), allocation->desc.offset, offset, allocation->mem->memory_size(), 0, NULL, NULL) (C:\Germano\Dev\BlenderDev\blender\intern\cycles\device\opencl\memory_manager.cpp:114) OpenCL error: CL_INVALID_VALUE in clEnqueueCopyBuffer(device->cqCommandQueue, CL_MEM_PTR(buffer->device_pointer), CL_MEM_PTR(new_buffer->device_pointer), allocation->desc.offset, offset, allocation->mem->memory_size(), 0, NULL, NULL) (C:\Germano\Dev\BlenderDev\blender\intern\cycles\device\opencl\memory_manager.cpp:114) OpenCL error: CL_INVALID_VALUE in clEnqueueCopyBuffer(device->cqCommandQueue, CL_MEM_PTR(buffer->device_pointer), CL_MEM_PTR(new_buffer->device_pointer), allocation->desc.offset, offset, allocation->mem->memory_size(), 0, NULL, NULL) (C:\Germano\Dev\BlenderDev\blender\intern\cycles\device\opencl\memory_manager.cpp:114) OpenCL error: CL_INVALID_VALUE in clEnqueueWriteBuffer(device->cqCommandQueue, CL_MEM_PTR(new_buffer->device_pointer), CL_FALSE, offset, allocation->mem->memory_size(), allocation->mem->host_pointer, 0, NULL, NULL) (C:\Germano\Dev\BlenderDev\blender\intern\cycles\device\opencl\memory_manager.cpp:99) OpenCL error: CL_INVALID_VALUE in clEnqueueWriteBuffer(device->cqCommandQueue, CL_MEM_PTR(new_buffer->device_pointer), CL_FALSE, offset, allocation->mem->memory_size(), allocation->mem->host_pointer, 0, NULL, NULL) (C:\Germano\Dev\BlenderDev\blender\intern\cycles\device\opencl\memory_manager.cpp:99) Error: OpenCL error: CL_INVALID_VALUE in clEnqueueCopyBuffer(device->cqCommandQueue, CL_MEM_PTR(buffer->device_pointer), CL_MEM_PTR(new_buffer->device_pointer), allocation->desc.offset, offset, allocation->mem->memory_size(), 0, NULL, NULL) (C:\Germano\Dev\BlenderDev\blender\intern\cycles\device\opencl\memory_manager.cpp:114) ``` I don't know what can lead to this error, but apparently it is a memory problem, which is not surprising since this file is very complex. For valid bug reports it is recommended that the file be simplified to the maximum. This makes it easy to identify the problem. If an out-of-memory problem is confirmed, this is not considered a bug, but a hardware limitation.
Author

This scene rendered without problems in 2.8.
It is a project i left unfinished but had no problems until opened in 2.9 for testing pupouses.
All is optimized and i am sure it is not hardware limitation.
I think i could add more objects to the scene in 2.8 and will render.

This scene rendered without problems in 2.8. It is a project i left unfinished but had no problems until opened in 2.9 for testing pupouses. All is optimized and i am sure it is not hardware limitation. I think i could add more objects to the scene in 2.8 and will render.
Author

Confirmed. In 2.83.5 you can even add plenty of geometry and external objects and works fine.

Confirmed. In 2.83.5 you can even add plenty of geometry and external objects and works fine.

Added subscriber: @SteffenD

Added subscriber: @SteffenD

Just gave this scene a try and it renders without problems here:
image.png

Just gave this scene a try and it renders without problems here: ![image.png](https://archive.blender.org/developer/F8836048/image.png)

@Xeluaxeman, rendering with CPU or GPU?
Have you tried Optix, Cuda and OpenCL?

@Xeluaxeman, rendering with CPU or GPU? Have you tried Optix, Cuda and OpenCL?
Author

CUDA of course. I guess something went wrong from 2.8 to 2.9. I will make some more tests but 2.9 is unstable in my case and will only keep 2.8 files until the issue is fixed.

CUDA of course. I guess something went wrong from 2.8 to 2.9. I will make some more tests but 2.9 is unstable in my case and will only keep 2.8 files until the issue is fixed.

What caught my eye when giving this scene a try was that your hair rendering geometry was set to:image.png
which is a major difference to 2.83

Not sure if that's the culprit though.
Maybe you could give "Rounded Ribbons" with "Curve Subdivisions" of 2 a try?

What caught my eye when giving this scene a try was that your hair rendering geometry was set to:![image.png](https://archive.blender.org/developer/F8836503/image.png) which is a major difference to 2.83 Not sure if that's the culprit though. Maybe you could give "Rounded Ribbons" with "Curve Subdivisions" of 2 a try?

Added subscriber: @iss

Added subscriber: @iss

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

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

@Xeluaxeman what is your OS? Can you update GPU drivers?
Does this happen, when you click on File > Load Factory Settings, load your file and render?

Please update report description with OS and GPU info and worked/broken version. Click on Help > Report a Bug to auto fill in this info.

Finally your file is too big to really debug. You should remove as much objects as possible while making sure bug is still there. If this is not out-of-memory problem, crash is probably caused by one object.

@Xeluaxeman what is your OS? Can you update GPU drivers? Does this happen, when you click on File > Load Factory Settings, load your file and render? Please update report description with OS and GPU info and worked/broken version. Click on Help > Report a Bug to auto fill in this info. Finally your file is too big to really debug. You should remove as much objects as possible while making sure bug is still there. If this is not out-of-memory problem, crash is probably caused by one object.
Author

Sorry everybody. Linked file Candle Final that has pre cached fluids for the flame is the problem.
Thanks. I will keep testing 2.9.

Sorry everybody. Linked file Candle Final that has pre cached fluids for the flame is the problem. Thanks. I will keep testing 2.9.

Does that mean that you have resolved the problem by clearing caches?

Does that mean that you have resolved the problem by clearing caches?
Author

Yes. Linked objects have some limitations with fluids cache by now.
No problem since i only link unfinished objects as a preview for the whole scene. I would use imported objects for animation purpouses once all final setups are done.

Yes. Linked objects have some limitations with fluids cache by now. No problem since i only link unfinished objects as a preview for the whole scene. I would use imported objects for animation purpouses once all final setups are done.
Member

Added subscriber: @ankitm

Added subscriber: @ankitm
Member

Could you make a simple blend file from scratch that could help us test this issue with linked objects ?

Could you make a simple blend file from scratch that could help us test this issue with linked objects ?
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

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

Changed status from 'Needs User Info' to: 'Archived'
Philipp Oeser self-assigned this 2020-10-12 11:42:40 +02:00
Member

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed.

Thanks again for the report. If the problem persists please open a new report with the required information.

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed. Thanks again for the report. If the problem persists please open a new report with the required information.
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#80314
No description provided.