Crash on deleting driver #91912
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#91912
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?
System Information
Operating system: Linux neo 5.10.68-1-MANJARO #1 SMP PREEMPT Wed Sep 22 12:29:47 UTC 2021 x86_64 GNU/Linux
Graphics card: nvidia GTX 970
Blender Version
Broken: (
)
Worked: (?)
I duplicated a Text strip via . I don't know where that driver on Location X came from. The original didn't have one. I then wanted to delete that driver. After deleting it and moving the current frame blender crashed.
Exact steps for others to reproduce the error
crash.blend
Added subscriber: @Lexx
Added subscriber: @mano-wii
Changed status from 'Needs Triage' to: 'Confirmed'
Thanks for the report, I can confirm with either the latest stable or current development versions of Blender.
Perhaps the stack trace is not accurate due to a Release Bug, but the crash apparently happens in
BKE_animsys_eval_driver
due toFCurve
beingNULL
.Interestingly, I can't even open this file with a debug build of Blender:
It would seem there are two drivers with identical paths:
Furthermore, using {key Shift+D} to duplicate the strip doesn't duplicate the drivers, but moves them to the new duplicate.
Added subscriber: @iss
Added subscriber: @dr.sybren
Some technical info for when @iss has time to look into this:
This fixes the crash, but not the root cause:
This fixes the issue where duplication of a strip moves its drivers to the duplicate:
The actual root cause of the crash has something to do with the sequencer prefetching process. It may need to be restarted after a change to the drivers, as that triggers a rebuild of the main depsgraph (but not yet of the separate depsgraph used for prefetching).
The root issue is not exclusive to prefetching. Consider this VSE-free example:
T91912_no_VSE.blend
This causes same crash as prefetch does.
So far I can see that render pipeline depsgraph does not update relations when change to original ID is done
When driver is deleted during rendering I get following logs:
P2620: (An Untitled Masterwork)
It is evident, that
SCScene :: ViewLayer
was correctly updated, butRENDER PIPELINE
was not, andBKE_animsys_eval_driver
will cause crash.Both render pipeline and prefetch would crash if I try to call
DEG_graph_relations_update
which I assume would resolve this issue, but not sure if this is limitation of this type of dependency graph.As far as driver appearing "out of nowhere" - This may be issue with strip duplication code, but this should be reported as separate issue.
SEQ_DUPE_UNIQUE_NAME
is not used in current code, because it does copy animation data by design. This means that strips are duplicated with same name to detachedListBase
, then merge them one by one ensuring correct names, selection state and mapping animation data for duplicated strips.@Lexx can you create new report with example file demonstrating how driver appears while you don't expect that to happen?