Dependency Cycle Detected when copying objects with cloth and collision modifier #69727

Open
opened 2019-09-10 19:11:14 +02:00 by Matthias Dorfelt · 13 comments

System Information
Operating system: Windows 10
Graphics card: Geforce GTX 1080 Ti

Blender Version
Broken: 2.80

Short Description
If you copy objects that have a collision and cloth modifier attached to them (or copy the modifiers to another object), a dependency cycle is detected. This is really frustrating once you work with 10+ objects because blender re-detects the circular dependencies on every redo/undo and project load, making you wait for a good 30 seconds to a minute depending on the complexity of the scene.

Exact steps for others to reproduce the error

  1. attach collision and cloth modifier to cube in startup project.
  2. Copy the cube.
  3. check console output.

The output should be something like this:

Dependency cycle detected:
  OBCube.001/Geometry Component/GEOMETRY_EVAL() depends on
  OBCube/Geometry Component/GEOMETRY_EVAL() via 'Cloth Collision'
  OBCube.001/Geometry Component/GEOMETRY_EVAL() via 'Cloth Collision'
Dependency cycle detected:
  OBCube.001/PointCache Component/POINT_CACHE_RESET() depends on
  OBCube/Geometry Component/GEOMETRY_EVAL() via 'Point Cache'
  OBCube.001/Geometry Component/GEOMETRY_EVAL() via 'Cloth Collision'
  OBCube.001/PointCache Component/POINT_CACHE_RESET() via 'Point Cache -> Geometry'
Detected 2 dependency cycles

Alternatively you can simply open the attached blend file and check the console output. For a simple test like this, it wont noticeably slow down the project but once you copy an object a couple of times the dependency circles appear to exponentially grow and slowing things down to a halt.

bug.blend

**System Information** Operating system: Windows 10 Graphics card: Geforce GTX 1080 Ti **Blender Version** Broken: 2.80 **Short Description** If you copy objects that have a collision and cloth modifier attached to them (or copy the modifiers to another object), a dependency cycle is detected. This is really frustrating once you work with 10+ objects because blender re-detects the circular dependencies on every redo/undo and project load, making you wait for a good 30 seconds to a minute depending on the complexity of the scene. **Exact steps for others to reproduce the error** 1. attach collision and cloth modifier to cube in startup project. 2. Copy the cube. 3. check console output. The output should be something like this: ``` Dependency cycle detected: OBCube.001/Geometry Component/GEOMETRY_EVAL() depends on OBCube/Geometry Component/GEOMETRY_EVAL() via 'Cloth Collision' OBCube.001/Geometry Component/GEOMETRY_EVAL() via 'Cloth Collision' Dependency cycle detected: OBCube.001/PointCache Component/POINT_CACHE_RESET() depends on OBCube/Geometry Component/GEOMETRY_EVAL() via 'Point Cache' OBCube.001/Geometry Component/GEOMETRY_EVAL() via 'Cloth Collision' OBCube.001/PointCache Component/POINT_CACHE_RESET() via 'Point Cache -> Geometry' Detected 2 dependency cycles ``` Alternatively you can simply open the attached blend file and check the console output. For a simple test like this, it wont noticeably slow down the project but once you copy an object a couple of times the dependency circles appear to exponentially grow and slowing things down to a halt. [bug.blend](https://archive.blender.org/developer/F7731789/bug.blend)

Added subscriber: @mokafolio

Added subscriber: @mokafolio
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

Did this work in older versions of Blender? I'm not entirely sure which kinds of interactions the current cloth system supports.

Did this work in older versions of Blender? I'm not entirely sure which kinds of interactions the current cloth system supports.

In #69727#780050, @JacquesLucke wrote:
Did this work in older versions of Blender? I'm not entirely sure which kinds of interactions the current cloth system supports.

I am a new user to blender, so I would not know. I'll try to test it.

For complex scenes with a lot of identical cloth objects this bug really bites you in the butt because you can neither copy the objects directly nor copy the physics modifiers from one object to another without running into this issue. It will essentially make the whole blender file unusable because the dependency cycles will exponentially grow and it will re-detect them on every action, undo, redo, project load.

> In #69727#780050, @JacquesLucke wrote: > Did this work in older versions of Blender? I'm not entirely sure which kinds of interactions the current cloth system supports. I am a new user to blender, so I would not know. I'll try to test it. For complex scenes with a lot of identical cloth objects this bug really bites you in the butt because you can neither copy the objects directly nor copy the physics modifiers from one object to another without running into this issue. It will essentially make the whole blender file unusable because the dependency cycles will exponentially grow and it will re-detect them on every action, undo, redo, project load.
Member

Added subscriber: @Sergey

Added subscriber: @Sergey
Member

@Sergey is this a limitation of the cloth simulation?

@Sergey is this a limitation of the cloth simulation?

This could very well be a limitation of cloth/physics.

Not really familiar with details of those areas, but same exact issue was happening for a long long time.

This could very well be a limitation of cloth/physics. Not really familiar with details of those areas, but same exact issue was happening for a long long time.

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

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

Added subscriber: @mont29

Added subscriber: @mont29

Note that copying is irrelevant here, you can just as well create two meshes, and enable those collision and cloth for both, and you'll get same dependency cycles errors in console. Would consider that as a known issue for now…

Note that copying is irrelevant here, you can just as well create two meshes, and enable those collision and cloth for both, and you'll get same dependency cycles errors in console. Would consider that as a known issue for now…

Added subscriber: @ComputerScientist

Added subscriber: @ComputerScientist

Hi all, just a quick comment here. I am using Blender 2.82a and posted an issue report on StackExchange. https://blender.stackexchange.com/questions/177962/understanding-what-dependency-cycle-means-why-it-happens-and-if-it-is-a-caus

I was then linked to this bug report. (Apologies for the semi-duplicate message on StackExchange, as I did not see the bug report in my investigation.) My message is mostly to confirm that this is still happening with Blender 2.82a, but it might also have a harmless effect in terms of physics. I can sometimes get cloth and collisions working reasonably well in my animations.

Anyway, hopefully my report is another useful data point. Thanks everyone for the great software! I'm still blown away by the quality.

Hi all, just a quick comment here. I am using Blender 2.82a and posted an issue report on StackExchange. https://blender.stackexchange.com/questions/177962/understanding-what-dependency-cycle-means-why-it-happens-and-if-it-is-a-caus I was then linked to this bug report. (Apologies for the semi-duplicate message on StackExchange, as I did not see the bug report in my investigation.) My message is mostly to confirm that this is still happening with Blender 2.82a, but it *might* also have a harmless effect in terms of physics. I can sometimes get cloth and collisions working reasonably well in my animations. Anyway, hopefully my report is another useful data point. Thanks everyone for the great software! I'm still blown away by the quality.

Hi Daniel,

Just to clarify, the problem does not break the physics simulation (that looks fine in all my tests) but rather causes everything (mainly the undo/reco action stack) to slow down to a crawl and make things pretty much unusable with a certain number of objects in the scene/simulation.

Best

Hi Daniel, Just to clarify, the problem does not break the physics simulation (that looks fine in all my tests) but rather causes everything (mainly the undo/reco action stack) to slow down to a crawl and make things pretty much unusable with a certain number of objects in the scene/simulation. Best
Philipp Oeser added the
Interest
Core
label 2023-02-10 11:09:56 +01:00
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#69727
No description provided.