Crash with animated b-bone segments #61296
Labels
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
10 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#61296
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Blender Version
Broken: 2.79b
Short description of error
I'm trying to animate using a linked (proxy) rig, but it keeps crashing. It would crash as I'm working in the scene, but it would also crash when opening the scene.
The thing is, the crash seems to be a bit random.
Even if the scene crashes on start, if I keep opening the file, sometimes, it won't crash. It's like playing a crash lottery every time I open the scene.
I figured out that if I delete the character geometry, it doesn't crash. If I append the rig, it doesn't crash.
However, if I attach any geometry to the linked rig, it seems to crash.
Including an example file: X_LinkTest2.blend
To get it to crash:
If you're (un)lucky, you might find that the file crashes on open. In that case, just keep trying to open the file.
Note that if you delete the geometry, it doesn't crash.
Added subscriber: @0o00o0oo
#62022 was marked as duplicate of this issue
Added subscriber: @lichtwerk
Please also provide the library .blend (
//Exit_Rig/Exit_EXIT_06.blend
)Ah, that makes sense, sorry about that.
Here it is: Exit_EXIT_06.blend
Added subscriber: @ZedDB
Backtrace:
Added subscribers: @angavrilov, @Sergey, @JoshuaLeung, @brecht
I think this one is for @Sergey or @angavrilov, seems related to new b-bone caching.
If that's the case i'd like @angavrilov to have a look first. He knows the cache implementation details better.
This rig is using a driver on bbone_segments that depends on the deformation of the rig. Dependency graph doesn't handle this, and I doubt it can do it in a reasonable way, since the segment count affects the graph itself. I fixed this from crashing by adding some checks, but the actual problem is still there.
@angavrilov, hrm. Sounds like actual solution would be to forbid driving/animating the segment count. Not sure we can realistically do something better here?
It could be the safest solution. Driving the setting could be useful for something like controlling settings of multiple bones from one custom property, but it certainly mustn't be animated.
#62022 (bendy bones segments animation crash) is the same bug then.
Currently depsgraph doesn't seem to even be creating any dependencies from those drivers - that was probably somewhat ok when b-bone shape was evaluated from scratch every time it was used, but now that it is a proper depsgraph node, that definitely isn't right. The fact that those nodes in the graph are only created when the segment count is not 1 complicates things even more, so with this set up that property probably has to be blocked from being animated.
If the B-Bone/not B-Bone switch was a separate setting it can probably be animated if proper dependencies are added into depsgraph (and with some care to handle mismatched data without crashing in case of dependency loops).
Basically, the only ways to allow animating the segment count is to either split the B-Bone toggle into a separate non-animatable checkbox, or have the depsgraph build code somehow detect that the property is animated or has a driver, and treat it as a B-Bone even if the current value is 1.
Blender crashes when adding geometry to linked rig and animationto Crash with animated b-bone segmentsAdded subscribers: @DiegoSG, @kpavicic
Added subscriber: @JacquesLucke
What is the use case for animating the number of segments?
Sometimes it is useful when switching between curved and hard-shaped joints in a rig
@JacquesLucke In the file provided in #62364 (2.8 | Keyframes on BBones cause crash) I used segmentation animation in the foreArm and upperArm to go from a bendy effect to an angular one. I acknowledge that that's not a standardized way of rigging bendy joints. However, the ability to key the segments would imply that a user should be able to use it in such a case.
I see, are there other/better solutions for this in Blender?
Rigify super_finger uses keys on the ease in/out properties.
For some reason i can not reproduce the crash. Maybe i am just being lucky with threading?
Created D4739 which is supposed to fix the issue.
the error appears when a geometry is being affected by the bendy bone and you animate the segments of the bendy bone and it is quite random.
I have not been able to replicate it in a simple example but working with rigs I have had many crashes
Changed status from 'Open' to: 'Resolved'
After a recent series of changes from @angavrilov and me this issue is expected to be resolved.
Thanks for the report, closing now.