Crash when moving, rotating an object with Soft Body physics enabled (not baked) #58050

Closed
opened 2018-11-25 13:58:23 +01:00 by Nicola De Mitri · 7 comments

System Information
Ubuntu 18.04
Intel® Core™ i5-6200U CPU @ 2.30GHz × 4 / Intel® HD Graphics 520 (Skylake GT2)

Blender Version
Broken: 2.80 2018-11-24 22:44, (a2e209f20a), also the previous day build

Short description of error
I have a simple file with 3 object, on which I have enabled (but not baked) Soft Body Physics.

Selecting one of these objects, and attempting a single operation (e.g. Move, Rotate, or change to Edit Mode) causes a creash

Exact steps for others to reproduce the error

  • Open attached .blend
  • Select the lowermost rounded cube
  • "G" or "R" then move the mouse, or just "Tab"
    soft_body_crash.blend
**System Information** Ubuntu 18.04 Intel® Core™ i5-6200U CPU @ 2.30GHz × 4 / Intel® HD Graphics 520 (Skylake GT2) **Blender Version** Broken: 2.80 2018-11-24 22:44, (a2e209f20a4), also the previous day build **Short description of error** I have a simple file with 3 object, on which I have enabled (but not baked) Soft Body Physics. Selecting one of these objects, and attempting a single operation (e.g. Move, Rotate, or change to Edit Mode) causes a creash **Exact steps for others to reproduce the error** - Open attached .blend - Select the lowermost rounded cube - "G" or "R" then move the mouse, or just "Tab" [soft_body_crash.blend](https://archive.blender.org/developer/F5714033/soft_body_crash.blend)

Added subscriber: @NicolaSap

Added subscriber: @NicolaSap
Nicola De Mitri changed title from Crash when moving to Crash when moving, rotating an object with Soft Body physics enabled (not baked) 2018-11-25 14:28:51 +01:00
Member

Added subscribers: @Sergey, @lichtwerk

Added subscribers: @Sergey, @lichtwerk
Sergey Sharybin was assigned by Philipp Oeser 2018-11-27 14:08:52 +01:00
Member

Crash confirmed.

Seems to be some race condition, because --threads 1 commandline option will prevent the crash.

getting this on file read

Dependency cycle detected:
  'OBCube.GEOMETRY_UBEREVAL()' depends on 'OBCube.001.GEOMETRY_UBEREVAL()' through 'Softbody Collision'
  'OBCube.001.GEOMETRY_UBEREVAL()' depends on 'OBCube.GEOMETRY_UBEREVAL()' through 'Softbody Collision'
Dependency cycle detected:
  'OBCube.GEOMETRY_UBEREVAL()' depends on 'OBCube.PLACEHOLDER(Eval Init)' through 'Object Geometry UberEval'
  'OBCube.PLACEHOLDER(Eval Init)' depends on 'OBCube.POINT_CACHE_RESET()' through 'Point Cache -> Geometry'
  'OBCube.POINT_CACHE_RESET()' depends on 'OBCube.001.GEOMETRY_UBEREVAL()' through 'Point Cache'
  'OBCube.001.GEOMETRY_UBEREVAL()' depends on 'OBCube.GEOMETRY_UBEREVAL()' through 'Softbody Collision'
Detected 2 dependency cycles

2.79 survived this btw, puts out a little less in this case:

Dependency cycle detected:
  'OBCube.GEOMETRY_UBEREVAL()' depends on 'OBCube.001.GEOMETRY_UBEREVAL()' through 'Softbody Collision'
  'OBCube.001.GEOMETRY_UBEREVAL()' depends on 'OBCube.GEOMETRY_UBEREVAL()' through 'Softbody Collision'
  • debug-depsgraph (right before crash):
deg_graph_id_tag_update: id=OBCube flags=TRANSFORM
deg_graph_id_tag_update: id=OBCube flags=TRANSFORM
[SCScene :: View Layer]: Operation is entry point for update: COPY_ON_WRITE()
[SCScene :: View Layer]: Operation is entry point for update: TRANSFORM_LOCAL()
[SCScene :: View Layer]: Operation is entry point for update: TRANSFORM_OBJECT_UBEREVAL()
[SCScene :: View Layer]: Operation is entry point for update: TRANSFORM_FINAL()
[SCScene :: View Layer]: Operation is entry point for update: POINT_CACHE_RESET()
[SCScene :: View Layer]: Accumulated recalc bits for OBCube: 113
[SCScene :: View Layer]: Accumulated recalc bits for OBCube.001: 16
[SCScene :: View Layer]: deg_evaluate_copy_on_write on OBCube (0x7f3fbb1be808)
[SCScene :: View Layer]: BKE_object_eval_uber_data on OBCube (0x7f3fbb1be808)
[SCScene :: View Layer]: BKE_object_handle_data_update on OBCube (0x7f3fbb1be808)
[SCScene :: View Layer]: BKE_object_eval_local_transform on OBCube (0x7f3fbb1be808)
[SCScene :: View Layer]: BKE_object_eval_transform_final on OBCube (0x7f3fbb1be808)
./bin/blender(BLI_system_backtrace+0x26) [0x2ee4e65]

crash

1   mesh_calc_modifiers			DerivedMesh.c     1167 0x2987b1c 
2   mesh_build_data			DerivedMesh.c     2010 0x298aac8 
3   makeDerivedMesh 			DerivedMesh.c     2120 0x298ade3 
4   BKE_object_handle_data_update	object_update.c   205  0x2b1b8b1 
5   BKE_object_eval_uber_data 		object_update.c   348  0x2b1bfae 

where ob->data is corrupted.

ASAN gives me nothing.

@Sergey: one for your desk?

Crash confirmed. Seems to be some race condition, because `--threads 1` commandline option will prevent the crash. getting this on file read ``` Dependency cycle detected: 'OBCube.GEOMETRY_UBEREVAL()' depends on 'OBCube.001.GEOMETRY_UBEREVAL()' through 'Softbody Collision' 'OBCube.001.GEOMETRY_UBEREVAL()' depends on 'OBCube.GEOMETRY_UBEREVAL()' through 'Softbody Collision' Dependency cycle detected: 'OBCube.GEOMETRY_UBEREVAL()' depends on 'OBCube.PLACEHOLDER(Eval Init)' through 'Object Geometry UberEval' 'OBCube.PLACEHOLDER(Eval Init)' depends on 'OBCube.POINT_CACHE_RESET()' through 'Point Cache -> Geometry' 'OBCube.POINT_CACHE_RESET()' depends on 'OBCube.001.GEOMETRY_UBEREVAL()' through 'Point Cache' 'OBCube.001.GEOMETRY_UBEREVAL()' depends on 'OBCube.GEOMETRY_UBEREVAL()' through 'Softbody Collision' Detected 2 dependency cycles ``` 2.79 survived this btw, puts out a little less in this case: ``` Dependency cycle detected: 'OBCube.GEOMETRY_UBEREVAL()' depends on 'OBCube.001.GEOMETRY_UBEREVAL()' through 'Softbody Collision' 'OBCube.001.GEOMETRY_UBEREVAL()' depends on 'OBCube.GEOMETRY_UBEREVAL()' through 'Softbody Collision' ``` - debug-depsgraph (right before crash): ``` deg_graph_id_tag_update: id=OBCube flags=TRANSFORM deg_graph_id_tag_update: id=OBCube flags=TRANSFORM [SCScene :: View Layer]: Operation is entry point for update: COPY_ON_WRITE() [SCScene :: View Layer]: Operation is entry point for update: TRANSFORM_LOCAL() [SCScene :: View Layer]: Operation is entry point for update: TRANSFORM_OBJECT_UBEREVAL() [SCScene :: View Layer]: Operation is entry point for update: TRANSFORM_FINAL() [SCScene :: View Layer]: Operation is entry point for update: POINT_CACHE_RESET() [SCScene :: View Layer]: Accumulated recalc bits for OBCube: 113 [SCScene :: View Layer]: Accumulated recalc bits for OBCube.001: 16 [SCScene :: View Layer]: deg_evaluate_copy_on_write on OBCube (0x7f3fbb1be808) [SCScene :: View Layer]: BKE_object_eval_uber_data on OBCube (0x7f3fbb1be808) [SCScene :: View Layer]: BKE_object_handle_data_update on OBCube (0x7f3fbb1be808) [SCScene :: View Layer]: BKE_object_eval_local_transform on OBCube (0x7f3fbb1be808) [SCScene :: View Layer]: BKE_object_eval_transform_final on OBCube (0x7f3fbb1be808) ./bin/blender(BLI_system_backtrace+0x26) [0x2ee4e65] ``` crash ``` 1 mesh_calc_modifiers DerivedMesh.c 1167 0x2987b1c 2 mesh_build_data DerivedMesh.c 2010 0x298aac8 3 makeDerivedMesh DerivedMesh.c 2120 0x298ade3 4 BKE_object_handle_data_update object_update.c 205 0x2b1b8b1 5 BKE_object_eval_uber_data object_update.c 348 0x2b1bfae ``` where `ob->data` is corrupted. ASAN gives me nothing. @Sergey: one for your desk?

This appears to be a more general issue with Soft Body than just the file provided.

Creating a scene with (collision-enabled) soft bodies, saving and reopening it, and attempting to edit some properties, very easily results in a crash.

Still happening with the Beta: 63ac7c799c

This appears to be a more general issue with Soft Body than just the file provided. Creating a scene with (collision-enabled) soft bodies, saving and reopening it, and attempting to edit some properties, very easily results in a crash. Still happening with the Beta: 63ac7c799c8

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

The crash has been resolved by b97cd0e690. The cycle is still there, but doesn't seem affecting stability and there is no clear way of solving it from the dependency graph side.

SO thanks for the report, considering it solved now! :)

The crash has been resolved by b97cd0e690. The cycle is still there, but doesn't seem affecting stability and there is no clear way of solving it from the dependency graph side. SO thanks for the report, considering it solved now! :)

Thanks! I haven't tried it yet but I trust you guys on the status change :)

As for the cycle: is it really an issue at present? The best way I know to make soft bodies interact with each other is to enable Soft Body and Collision (in that order) for each one of them, and every one seems to affect every other one correctly. I used to think that it works precisely because a cycle exists and is handled correctly.

Sorry for going off-topic, thanks again.

Thanks! I haven't tried it yet but I trust you guys on the status change :) As for the cycle: is it really an issue at present? The best way I know to make soft bodies interact with each other is to enable Soft Body and Collision (in that order) for each one of them, and every one seems to affect every other one correctly. I used to think that it works precisely *because* a cycle exists and is handled correctly. Sorry for going off-topic, thanks again.
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
3 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#58050
No description provided.