Rigidbody crash undoing while animation plays (which was started at frame 1 or below) #92915

Open
opened 2021-11-08 04:26:26 +01:00 by Pea Bles · 18 comments

blender_system_info.txt

blender_debug_output.txt

animation_john2.blend

System Information
Operating system: Windows 10
Graphics card: Nvidia 2070 Super

Blender Version
Worked: -

Short description of error
Blender crashes when object is rotated to a steep vertical angle and animation player is run.

Exact steps for others to reproduce the error
For animation_john2.blend

  • Play Animation
  • Select a bone (could be any other operator as well I think)
  • Undo (this will also jump back to frame 0 -- where we started -- which is the important part, starting animation at frame 2 or higher does not result in the crash)
  • Redo

Repeat until crash. Occurs between 2-5 repeats.

Also occurs at other similar high angles.

[blender_system_info.txt](https://archive.blender.org/developer/F11763794/blender_system_info.txt) [blender_debug_output.txt](https://archive.blender.org/developer/F11763795/blender_debug_output.txt) [animation_john2.blend](https://archive.blender.org/developer/F11763886/animation_john2.blend) **System Information** Operating system: Windows 10 Graphics card: Nvidia 2070 Super **Blender Version** Worked: - **Short description of error** Blender crashes when object is rotated to a steep vertical angle and animation player is run. **Exact steps for others to reproduce the error** For animation_john2.blend - Play Animation - Select a bone (could be any other operator as well I think) - Undo (this will also jump back to frame 0 -- where we started -- which is the important part, starting animation at frame 2 or higher does not result in the crash) - Redo Repeat until crash. Occurs between 2-5 repeats. Also occurs at other similar high angles.
Author

Added subscriber: @Lagonazer

Added subscriber: @Lagonazer

#97404 was marked as duplicate of this issue

#97404 was marked as duplicate of this issue

#96418 was marked as duplicate of this issue

#96418 was marked as duplicate of this issue
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

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

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

Cannot reproduce here.

Maybe I am doing the reproduction steps wrong?
A screencast of the steps in action possibly helps understanding the issue.
Could also help to try this with Factory Defaults (File > Defaults > Load Factory Settings)
Additionally it would be good to check if this error also occurs for you in a fresh build from https://builder.blender.org/download/daily/

Cannot reproduce here. Maybe I am doing the reproduction steps wrong? A screencast of the steps in action possibly helps understanding the issue. Could also help to try this with Factory Defaults (`File` > `Defaults` > `Load Factory Settings`) Additionally it would be good to check if this error also occurs for you in a fresh build from https://builder.blender.org/download/daily/
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Hi, I can reproduce the crash on master.

Will clarify reproducing steps.

blender.exe         :0x00007FF62DBE03C0  btRigidBody::removeConstraintRef
blender.exe         :0x00007FF62DA90EF0  RB_body_delete
blender.exe         :0x00007FF62CC5F930  rigidbody_validate_sim_object
blender.exe         :0x00007FF62CC5F0E0  rigidbody_update_simulation
blender.exe         :0x00007FF62CC5DCB0  BKE_rigidbody_rebuild_sim
blender.exe         :0x00007FF62CE74040  blender::deg::`anonymous namespace'::evaluate_node
blender.exe         :0x00007FF62CE73FF0  blender::deg::`anonymous namespace'::deg_task_run_func
blender.exe         :0x00007FF631DBFF80  tbb::internal::function_task<Task>::execute
tbb.dll             :0x00007FF9B0CCF690  tbb::recursive_mutex::scoped_lock::internal_try_acquire
tbb.dll             :0x00007FF9B0CCF690  tbb::recursive_mutex::scoped_lock::internal_try_acquire
blender.exe         :0x00007FF62CFBE5D0  tbb::internal::task_group_base::wait
blender.exe         :0x00007FF62CE73B60  blender::deg::deg_evaluate_on_refresh
blender.exe         :0x00007FF62CB8AA50  BKE_scene_graph_update_for_newframe
blender.exe         :0x00007FF62D329480  screen_animation_step_invoke
blender.exe         :0x00007FF62CD87120  wm_operator_invoke
blender.exe         :0x00007FF62CD84D30  wm_handler_operator_call
blender.exe         :0x00007FF62CD86530  wm_handlers_do_keymap_with_keymap_handler
blender.exe         :0x00007FF62CD85D00  wm_handlers_do_intern
blender.exe         :0x00007FF62CD85350  wm_handlers_do
blender.exe         :0x00007FF62CD82420  wm_event_do_handlers
blender.exe         :0x00007FF62CD6C5F0  WM_main
blender.exe         :0x00007FF62C9EF170  main
blender.exe         :0x00007FF631EEDDF8  __scrt_common_main_seh
KERNEL32.DLL        :0x00007FF9C1337020  BaseThreadInitThunk
ntdll.dll           :0x00007FF9C18A2630  RtlUserThreadStart```
Hi, I can reproduce the crash on master. Will clarify reproducing steps. ```lines blender.exe :0x00007FF62DBE03C0 btRigidBody::removeConstraintRef blender.exe :0x00007FF62DA90EF0 RB_body_delete blender.exe :0x00007FF62CC5F930 rigidbody_validate_sim_object blender.exe :0x00007FF62CC5F0E0 rigidbody_update_simulation blender.exe :0x00007FF62CC5DCB0 BKE_rigidbody_rebuild_sim blender.exe :0x00007FF62CE74040 blender::deg::`anonymous namespace'::evaluate_node blender.exe :0x00007FF62CE73FF0 blender::deg::`anonymous namespace'::deg_task_run_func blender.exe :0x00007FF631DBFF80 tbb::internal::function_task<Task>::execute tbb.dll :0x00007FF9B0CCF690 tbb::recursive_mutex::scoped_lock::internal_try_acquire tbb.dll :0x00007FF9B0CCF690 tbb::recursive_mutex::scoped_lock::internal_try_acquire blender.exe :0x00007FF62CFBE5D0 tbb::internal::task_group_base::wait blender.exe :0x00007FF62CE73B60 blender::deg::deg_evaluate_on_refresh blender.exe :0x00007FF62CB8AA50 BKE_scene_graph_update_for_newframe blender.exe :0x00007FF62D329480 screen_animation_step_invoke blender.exe :0x00007FF62CD87120 wm_operator_invoke blender.exe :0x00007FF62CD84D30 wm_handler_operator_call blender.exe :0x00007FF62CD86530 wm_handlers_do_keymap_with_keymap_handler blender.exe :0x00007FF62CD85D00 wm_handlers_do_intern blender.exe :0x00007FF62CD85350 wm_handlers_do blender.exe :0x00007FF62CD82420 wm_event_do_handlers blender.exe :0x00007FF62CD6C5F0 WM_main blender.exe :0x00007FF62C9EF170 main blender.exe :0x00007FF631EEDDF8 __scrt_common_main_seh KERNEL32.DLL :0x00007FF9C1337020 BaseThreadInitThunk ntdll.dll :0x00007FF9C18A2630 RtlUserThreadStart```
Member

Hi @lichtwerk , are you able to reproduce crash with these steps?

  • Play Animation
  • Select Bone.001
  • Undo
  • Redo
    (Repeat last two steps until crash)
Hi @lichtwerk , are you able to reproduce crash with these steps? - Play Animation - Select Bone.001 - Undo - Redo (Repeat last two steps until crash)
Member

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

Changed status from 'Needs User Info' to: 'Confirmed'
Member

Yes, can repro now too.
(2.93 crashes for me as well though -- is this working fine for you in 2.93?)
Seems to only be the case if we are starting the animation from frame 1 (or below), if I start the animation at frame 2, the undo does not return to these critical frames and I can do these steps without crashing.
(Tbh, I dont even know why the undo jumps back in frames?)

Yes, can repro now too. (2.93 crashes for me as well though -- is this working fine for you in 2.93?) Seems to only be the case if we are starting the animation from frame 1 (or below), if I start the animation at frame 2, the undo does not return to these critical frames and I can do these steps without crashing. (Tbh, I dont even know why the undo jumps back in frames?)
Philipp Oeser changed title from Animation Player Crash during gravity simulation to Rigidbody crash undoing while animation plays (which was started at frame 1 or below) 2021-11-11 12:47:19 +01:00
Member

Added subscriber: @ZedDB

Added subscriber: @ZedDB
Member

@ZedDB might be interested?

@ZedDB might be interested?

This is a known issue with depsgraph and the rigidbody simulation system.
Undoing in certain cases will trigger a crash.

To solve this, we will new to rewrite the rigidbody code (and look into how to avoid this in depsgraph).

This is a known issue with depsgraph and the rigidbody simulation system. Undoing in certain cases will trigger a crash. To solve this, we will new to rewrite the rigidbody code (and look into how to avoid this in depsgraph).
Member

Added subscriber: @vinegarshots

Added subscriber: @vinegarshots
Member

Added subscriber: @Arthur54110

Added subscriber: @Arthur54110

Added subscriber: @dfelinto

Added subscriber: @dfelinto

Thanks for the report. Marking this as known issue since it depends on the rigid body system which at the moment has no active developer. I'm tagging Sergej here anyways in case he wants to tackle any of those. Anyone wlse interested on that can also join the geometry nodes meetings to get onboarded.

Thanks for the report. Marking this as known issue since it depends on the rigid body system which at the moment has no active developer. I'm tagging Sergej here anyways in case he wants to tackle any of those. Anyone wlse interested on that can also join the geometry nodes meetings to get onboarded.
Philipp Oeser removed the
Interest
Nodes & Physics
label 2023-02-10 08:44:29 +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#92915
No description provided.