Crash when animating cloth #42577

Closed
opened 2014-11-12 12:48:10 +01:00 by Jaggz H · 10 comments

System Information
Multiple systems (tested with other users).
w7x64 (nvidia geforce gtx 560 ti), windows tp 64,

Blender Version
Broken: 2.72b, and confirmed with 5c6e333
Worked: n/a

Short description of error
High cloth repel distance crashes blender upon animate.

Exact steps for others to reproduce the error
Load attached .blend. Hit Alt-a. That should do it.
Turn repel distance down low (eg. .01) will animate without crash on my system.crash3.blend

**System Information** Multiple systems (tested with other users). w7x64 (nvidia geforce gtx 560 ti), windows tp 64, **Blender Version** Broken: 2.72b, and confirmed with 5c6e333 Worked: n/a **Short description of error** High cloth repel distance crashes blender upon animate. **Exact steps for others to reproduce the error** Load attached .blend. Hit Alt-a. That should do it. Turn repel distance down low (eg. .01) will animate without crash on my system.[crash3.blend](https://archive.blender.org/developer/F123457/crash3.blend)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @jaggz

Added subscriber: @jaggz

#44736 was marked as duplicate of this issue

#44736 was marked as duplicate of this issue
Member

Added subscriber: @LukasTonne

Added subscriber: @LukasTonne
Member

With a large repel distance the amount of BVH tree overlap and subsequent CollPair allocation gets insanely high:

https://developer.blender.org/diffusion/B/browse/master/source/blender/blenkernel/intern/collision.c$651

I'm not sure what to do about this ... It could be a bvh tree bug, or maybe it needs some kind of limit check. We have a number of places where memory requirements can blow up (e.g. subdiv levels), but we currently just expect users to use sane values, which is not always easy because the relation of memory size to settings can be quite abstract, like in this case.

With a large repel distance the amount of BVH tree overlap and subsequent CollPair allocation gets insanely high: https://developer.blender.org/diffusion/B/browse/master/source/blender/blenkernel/intern/collision.c$651 I'm not sure what to do about this ... It could be a bvh tree bug, or maybe it needs some kind of limit check. We have a number of places where memory requirements can blow up (e.g. subdiv levels), but we currently just expect users to use sane values, which is not always easy because the relation of memory size to settings can be quite abstract, like in this case.
Member

Technically i would not even consider this a bug. The "repel distance" is a dangerously misguiding feature IMO, it's not clear to users that this can have a profound effect on how the simulation happens.

For an efficient solution it's necessary to limit the influence of geometry to it's actual extent in space, otherwise the BVH tree cannot optimize any intersection tests - cloth collision can only happen at the place where there actually is cloth, not at some imaginary extended boundary far away from discrete mesh elements. Modern cloth collision algorithms don't work with penalty forces in the first place, so there is much less need for such hacks to prevent (self-)intersections.

Technically i would not even consider this a bug. The "repel distance" is a dangerously misguiding feature IMO, it's not clear to users that this can have a profound effect on how the simulation happens. For an efficient solution it's necessary to limit the influence of geometry to it's actual extent in space, otherwise the BVH tree cannot optimize any intersection tests - cloth collision can only happen at the place where there actually is cloth, not at some imaginary extended boundary far away from discrete mesh elements. Modern cloth collision algorithms don't work with penalty forces in the first place, so there is much less need for such hacks to prevent (self-)intersections.
Lukas Tönne self-assigned this 2014-12-03 10:40:45 +01:00

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

Added subscriber: @Sergey

Added subscriber: @Sergey

Well, it is always possible to find a case when old algorithm will run out of memory. But technically speaking it is not a bug but an optimization TODO. Mentioned this report in cloth TODO list: http://wiki.blender.org/index.php/Dev:2.5/Source/Development/Todo/Tools#Cloth

Thanks for the report, but closing it now. The system currently works as it was designed to.

Well, it is always possible to find a case when old algorithm will run out of memory. But technically speaking it is not a bug but an optimization TODO. Mentioned this report in cloth TODO list: http://wiki.blender.org/index.php/Dev:2.5/Source/Development/Todo/Tools#Cloth Thanks for the report, but closing it now. The system currently works as it was designed to.
Member

Added subscribers: @megasoid, @brecht, @mont29

Added subscribers: @megasoid, @brecht, @mont29
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
4 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#42577
No description provided.