Depsgraph RIGIDBODY_REBUILD failure on rendering if a scene has a PointerProperty of type collection [which is set to a collection containing rigid bodies] #105954

Closed
opened 2023-03-21 14:55:02 +01:00 by zebus3d · 7 comments

System Information
Operating system: Linux-6.2.6-arch1-1-x86_64-with-glibc2.37 64 Bits
Graphics card: NVIDIA GeForce RTX 3070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 525.89.02

Blender Version
Broken: version: 3.4.1, branch: blender-v3.4-release, commit date: 2022-12-19 17:00, hash: rB55485cb379f7

Short description of error
Hi, I am the creator of one addon for break all kinds of objects in Blender (easily).
I am having problems with the following known issue or bug when rendering my scene:

find_node_operation: Failed for (RIGIDBODY_REBUILD, '')
--------------------------------------------------------------------
Failed to add relation "Rigid Body Rebuild -> Point Cache Reset"
Could not find op_from: OperationKey(type: TRANSFORM, component name: '', operation code: RIGIDBODY_REBUILD)

Trace:

Depth    Type                     Name
-----    ----                     ----
1        Collection               Cube_low
2        Object                   Cube_cell
3        Object                   Cube_cell.031
4        Object                   Cube_cell.035
5        Object                   Cube_cell.016
6        Object                   Cube_cell.033
7        Object                   Cube_cell.012
8        Object                   Cube_cell.001
9        Object                   Cube_cell.006
10       Object                   Cube_cell.022
11       Object                   Cube_cell.007
12       Object                   Cube_cell.011
13       Object                   Cube_cell.014
14       Object                   Cube_cell.008
15       Object                   Cube_cell.018
16       Object                   Cube_cell.020
17       Object                   Cube_cell.042
18       Object                   Cube_cell.037
19       Object                   Cube_cell.025
20       Object                   Cube_cell.046

etc...

This is a problem because when you have complex fractures you have a lot of chunks that are objects, maybe 1500 or more objects, and the rendering does not start until the Trace stops showing the error message. Some complex scenes become impossible to render with this problem. Baking the sim does not resolve this.

This seems to be caused by the fact that if we have a pointer property on scenes of type collection, once these are set to a collection that actually contains a rigidbody, we are getting the mentioned depsgraph failures.

Exact steps to reproduce

repro.blend

  • open .blend
  • F12 render (check console output to see all is fine without depsgraph failures)
  • run the simple script
  • F12 render again (check console output to see the depsgraph failures)
**System Information** Operating system: Linux-6.2.6-arch1-1-x86_64-with-glibc2.37 64 Bits Graphics card: NVIDIA GeForce RTX 3070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 525.89.02 **Blender Version** Broken: version: 3.4.1, branch: blender-v3.4-release, commit date: 2022-12-19 17:00, hash: `rB55485cb379f7` **Short description of error** Hi, I am the creator of one addon for break all kinds of objects in Blender (easily). I am having problems with the following known issue or bug when rendering my scene: ``` find_node_operation: Failed for (RIGIDBODY_REBUILD, '') -------------------------------------------------------------------- Failed to add relation "Rigid Body Rebuild -> Point Cache Reset" Could not find op_from: OperationKey(type: TRANSFORM, component name: '', operation code: RIGIDBODY_REBUILD) Trace: Depth Type Name ----- ---- ---- 1 Collection Cube_low 2 Object Cube_cell 3 Object Cube_cell.031 4 Object Cube_cell.035 5 Object Cube_cell.016 6 Object Cube_cell.033 7 Object Cube_cell.012 8 Object Cube_cell.001 9 Object Cube_cell.006 10 Object Cube_cell.022 11 Object Cube_cell.007 12 Object Cube_cell.011 13 Object Cube_cell.014 14 Object Cube_cell.008 15 Object Cube_cell.018 16 Object Cube_cell.020 17 Object Cube_cell.042 18 Object Cube_cell.037 19 Object Cube_cell.025 20 Object Cube_cell.046 etc... ``` This is a problem because when you have complex fractures you have a lot of chunks that are objects, maybe 1500 or more objects, and the rendering does not start until the Trace stops showing the error message. Some complex scenes become impossible to render with this problem. Baking the sim does not resolve this. This seems to be caused by the fact that if we have a pointer property on scenes of type collection, once these are set to a collection that actually contains a rigidbody, we are getting the mentioned depsgraph failures. **Exact steps to reproduce** [repro.blend](/attachments/aa032a89-9b93-41f9-a865-464793ae2e12) - open .blend - F12 render (check console output to see all is fine without depsgraph failures) - run the simple script - F12 render again (check console output to see the depsgraph failures)
zebus3d added the
Severity
Normal
Status
Needs Triage
Type
Report
labels 2023-03-21 14:55:02 +01:00
Member

I think you'll have to share the code that makes this fail (in a way that is easily reproducable by devs).

Can you share a blend file including the code and/or a minimal Addon that exposes this?

Also does this still occur if you bake the sim? Scene > Ridgid Body World > Cache > Bake?

I think you'll have to share the code that makes this fail (in a way that is easily reproducable by devs). Can you share a blend file including the code and/or a minimal Addon that exposes this? Also does this still occur if you bake the sim? `Scene` > `Ridgid Body World` > `Cache` > `Bake`?
Philipp Oeser added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-03-21 15:34:12 +01:00
Author

I think you'll have to share the code that makes this fail (in a way that is easily reproducable by devs).

Can you share a blend file including the code and/or a minimal Addon that exposes this?

Yes, I will work on a simple script to be able to share it. I will upload it as soon as I have it.

> I think you'll have to share the code that makes this fail (in a way that is easily reproducable by devs). > > Can you share a blend file including the code and/or a minimal Addon that exposes this? > Yes, I will work on a simple script to be able to share it. I will upload it as soon as I have it.
Author

Also does this still occur if you bake the sim? Scene > Ridgid Body World > Cache > Bake?

yes, even if it is baked the message is still displayed.

> Also does this still occur if you bake the sim? `Scene` > `Ridgid Body World` > `Cache` > `Bake`? yes, even if it is baked the message is still displayed.
Author

The .blend example scene with the script inside: https://mega.nz/file/KlgkiCbJ#SE7qTU2LyW8zcSo0zzAsD0BsgHj1ixoasdk5ucRczlM

And here the Youtube Video

The .blend example scene with the script inside: https://mega.nz/file/KlgkiCbJ#SE7qTU2LyW8zcSo0zzAsD0BsgHj1ixoasdk5ucRczlM And here the ![Youtube Video](https://youtu.be/CusVepUBoTc)
Philipp Oeser added
Status
Needs Triage
and removed
Status
Needs Information from User
labels 2023-03-21 18:59:37 +01:00
Member

Can confirm, only finding I have so far is that you dont even have to click the Add Collection button, it is enough to just choose a collection in the target_collections dropdown (namely either RigidBodyWorld , Zebus or Cube_low -- whereas Camera, Collection or Zebus_Originals seem to be fine)

Can confirm, only finding I have so far is that you dont even have to click the `Add Collection` button, it is enough to just choose a collection in the `target_collections` dropdown (namely either `RigidBodyWorld` , `Zebus` or `Cube_low` -- whereas `Camera`, `Collection` or `Zebus_Originals` seem to be fine)
Member

OK, I got a very simple repro case now.
This seems to be caused by the fact that we have a pointer property on scenes of type collection, once these are set to a collection that actually contains a rigidbody, we are getting the mentioned depsgraph failures

repro.blend

OK, I got a very simple repro case now. This seems to be caused by the fact that we have a pointer property on scenes of type collection, once these are set to a collection that actually contains a rigidbody, we are getting the mentioned depsgraph failures [repro.blend](/attachments/aa032a89-9b93-41f9-a865-464793ae2e12)
Philipp Oeser changed title from Depsgraph ptcache: Failed for RIGIDBODY_REBUILD TRANSFORM operation to Depsgraph RIGIDBODY_REBUILD failure if a scene has a PointerProperty of type collection [which is set to a collection containing rigid bodies] 2023-03-23 13:58:59 +01:00
Philipp Oeser changed title from Depsgraph RIGIDBODY_REBUILD failure if a scene has a PointerProperty of type collection [which is set to a collection containing rigid bodies] to Depsgraph RIGIDBODY_REBUILD failure on rendering if a scene has a PointerProperty of type collection [which is set to a collection containing rigid bodies] 2023-03-23 13:59:14 +01:00
Member

@Sergey or @ZedDB might be interested.

@Sergey or @ZedDB might be interested.
Sergey Sharybin self-assigned this 2023-03-23 14:43:50 +01:00
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2023-03-23 15:51:46 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
FBX
Interest
Freestyle
Interest
Geometry Nodes
Interest
glTF
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 & 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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
Asset System
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
2 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#105954
No description provided.