Sequencer: Driver on any strip property does not invalidate its cache [prefetch frames] #82776

Open
opened 2020-11-17 10:37:19 +01:00 by Félix · 13 comments

System Information
Operating system: Darwin-18.6.0-x86_64-i386-64bit 64 Bits
Graphics card: Intel Iris OpenGL Engine Intel Inc. 4.1 INTEL-12.9.22

Blender Version
Broken: version: 2.83.9, branch: master, commit date: 2020-11-11 06:30, hash: 4abfc0bcd5
Worked: (newest version of Blender that worked as expected)

Short description of error
Sequencer: Driver on any strip property does not invalidate its cache [prefetch frames]
This can be any driver on any driven strip property:
Does not matter which property is the driving property (could be x Location of default cube as well)

Exact steps for others to reproduce the error

#82776.blend

  • Open file
  • driven strips opacity is driven by Cube 's X location
  • change Cube 's X location --> driven strips opacity value changes, but the cache is not invalidated

Original report:

Short description of error
Driver on wipe.effect_fader doesn't invalidate cache for driven wipe sequences. It's only invalidates the cache of the currently displayed wipe. This leads to display errors.

NB: The issue is the same for any other parameter (e.g angle, blur...)

Exact steps for others to reproduce the error

  • Open this file: Bug_Wipe_Driver.blend
  • There are two wipes, the first is the driver, the second one has the effect_fader value driven. Prefetch is enabled.
  • Move the effect_fader value of the driving wipe, its cache is reloaded, but not the cache of the driven one.
**System Information** Operating system: Darwin-18.6.0-x86_64-i386-64bit 64 Bits Graphics card: Intel Iris OpenGL Engine Intel Inc. 4.1 INTEL-12.9.22 **Blender Version** Broken: version: 2.83.9, branch: master, commit date: 2020-11-11 06:30, hash: `4abfc0bcd5` Worked: (newest version of Blender that worked as expected) **Short description of error** Sequencer: Driver on any strip property does not invalidate its cache [prefetch frames] This can be any driver on any driven strip property: Does not matter which property is the driving property (could be x Location of default cube as well) **Exact steps for others to reproduce the error** [#82776.blend](https://archive.blender.org/developer/F9326916/T82776.blend) - Open file - `driven` strips opacity is driven by Cube 's X location - change Cube 's X location --> driven strips opacity value changes, but the cache is not invalidated --- Original report: **Short description of error** Driver on `wipe.effect_fader` doesn't invalidate cache for driven wipe sequences. It's only invalidates the cache of the currently displayed wipe. This leads to display errors. NB: The issue is the same for any other parameter (e.g angle, blur...) **Exact steps for others to reproduce the error** - Open this file: [Bug_Wipe_Driver.blend](https://archive.blender.org/developer/F9309737/Bug_Wipe_Driver.blend) - There are two wipes, the first is the driver, the second one has the `effect_fader` value driven. Prefetch is enabled. - Move the `effect_fader` value of the driving wipe, its cache is reloaded, but not the cache of the driven one.
Author

Added subscriber: @Miadim

Added subscriber: @Miadim

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

This can be any driver on any driven strip property:

#82776.blend

Does not matter which property is the driving property (could be x Location of default cube as well)

This can be any driver on any driven strip property: [#82776.blend](https://archive.blender.org/developer/F9316311/T82776.blend) Does not matter which property is the driving property (could be x Location of default cube as well)
Philipp Oeser changed title from Sequencer: Driver on wipe.effect_fader doesn't invalidate cache for driven wipe sequences to Sequencer: Driver on any strip property does not invalidate its cache [prefetch frames] 2020-11-18 10:29:55 +01:00

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren

The example file has a dependency cycle, so it's not a situation that is supported at the moment:

Dependency cycle detected:
  SCScene/Sequencer Component/SEQUENCES_EVAL() depends on
  SCScene/Parameters Component/DRIVER(sequence_editor.sequences_all["Wipe"].effect_fader) via 'Driver -> Driven Property'
  SCScene/Sequencer Component/SEQUENCES_EVAL() via 'RNA Target -> Driver'
Detected 1 dependency cycles
Dependency cycle detected:
  SCScene/Sequencer Component/SEQUENCES_EVAL() depends on
  SCScene/Parameters Component/DRIVER(sequence_editor.sequences_all["Wipe"].effect_fader) via 'Driver -> Driven Property'
  SCScene/Sequencer Component/SEQUENCES_EVAL() via 'RNA Target -> Driver'
Detected 1 dependency cycles
Dependency cycle detected:
  SCScene/Sequencer Component/SEQUENCES_EVAL() depends on
  SCScene/Parameters Component/DRIVER(sequence_editor.sequences_all["Wipe"].effect_fader) via 'Driver -> Driven Property'
  SCScene/Sequencer Component/SEQUENCES_EVAL() via 'RNA Target -> Driver'
Detected 1 dependency cycles

@lichtwerk your file also has a dependency cycle:

Dependency cycle detected:
  SCScene/Sequencer Component/SEQUENCES_EVAL() depends on
  SCScene/Parameters Component/DRIVER(sequence_editor.sequences_all["driven"].blend_alpha) via 'Driver -> Driven Property'
  SCScene/Sequencer Component/SEQUENCES_EVAL() via 'RNA Target -> Driver'
Detected 1 dependency cycles
Dependency cycle detected:
  SCScene/Sequencer Component/SEQUENCES_EVAL() depends on
  SCScene/Parameters Component/DRIVER(sequence_editor.sequences_all["driven"].blend_alpha) via 'Driver -> Driven Property'
  SCScene/Sequencer Component/SEQUENCES_EVAL() via 'RNA Target -> Driver'
Detected 1 dependency cycles
Dependency cycle detected:
  SCScene/Sequencer Component/SEQUENCES_EVAL() depends on
  SCScene/Parameters Component/DRIVER(sequence_editor.sequences_all["driven"].blend_alpha) via 'Driver -> Driven Property'
  SCScene/Sequencer Component/SEQUENCES_EVAL() via 'RNA Target -> Driver'
Detected 1 dependency cycles
The example file has a dependency cycle, so it's not a situation that is supported at the moment: ``` Dependency cycle detected: SCScene/Sequencer Component/SEQUENCES_EVAL() depends on SCScene/Parameters Component/DRIVER(sequence_editor.sequences_all["Wipe"].effect_fader) via 'Driver -> Driven Property' SCScene/Sequencer Component/SEQUENCES_EVAL() via 'RNA Target -> Driver' Detected 1 dependency cycles Dependency cycle detected: SCScene/Sequencer Component/SEQUENCES_EVAL() depends on SCScene/Parameters Component/DRIVER(sequence_editor.sequences_all["Wipe"].effect_fader) via 'Driver -> Driven Property' SCScene/Sequencer Component/SEQUENCES_EVAL() via 'RNA Target -> Driver' Detected 1 dependency cycles Dependency cycle detected: SCScene/Sequencer Component/SEQUENCES_EVAL() depends on SCScene/Parameters Component/DRIVER(sequence_editor.sequences_all["Wipe"].effect_fader) via 'Driver -> Driven Property' SCScene/Sequencer Component/SEQUENCES_EVAL() via 'RNA Target -> Driver' Detected 1 dependency cycles ``` @lichtwerk your file also has a dependency cycle: ``` Dependency cycle detected: SCScene/Sequencer Component/SEQUENCES_EVAL() depends on SCScene/Parameters Component/DRIVER(sequence_editor.sequences_all["driven"].blend_alpha) via 'Driver -> Driven Property' SCScene/Sequencer Component/SEQUENCES_EVAL() via 'RNA Target -> Driver' Detected 1 dependency cycles Dependency cycle detected: SCScene/Sequencer Component/SEQUENCES_EVAL() depends on SCScene/Parameters Component/DRIVER(sequence_editor.sequences_all["driven"].blend_alpha) via 'Driver -> Driven Property' SCScene/Sequencer Component/SEQUENCES_EVAL() via 'RNA Target -> Driver' Detected 1 dependency cycles Dependency cycle detected: SCScene/Sequencer Component/SEQUENCES_EVAL() depends on SCScene/Parameters Component/DRIVER(sequence_editor.sequences_all["driven"].blend_alpha) via 'Driver -> Driven Property' SCScene/Sequencer Component/SEQUENCES_EVAL() via 'RNA Target -> Driver' Detected 1 dependency cycles ```
Member

In #82776#1057865, @dr.sybren wrote:
@lichtwerk your file also has a dependency cycle:

Oops, but like I said

Does not matter which property is the driving property (could be x Location of default cube as well)

So here is one that doesnt have a dependency cycle (but still has the bug)
#82776.blend

> In #82776#1057865, @dr.sybren wrote: > @lichtwerk your file also has a dependency cycle: Oops, but like I said > Does not matter which property is the driving property (could be x Location of default cube as well) So here is one that doesnt have a dependency cycle (but still has the bug) [#82776.blend](https://archive.blender.org/developer/F9326916/T82776.blend)
Member

If I get this right, this also means that you cannot drive a strip with another strip. ever. right?

Dependency cycle detected:
  SCScene/Sequencer Component/SEQUENCES_EVAL() depends on
  SCScene/Parameters Component/DRIVER(sequence_editor.sequences_all["driven"].blend_alpha) via 'Driver -> Driven Property'
  SCScene/Sequencer Component/SEQUENCES_EVAL() via 'RNA Target -> Driver'
Detected 1 dependency cycles
If I get this right, this also means that you cannot drive a strip with another strip. ever. right? ``` Dependency cycle detected: SCScene/Sequencer Component/SEQUENCES_EVAL() depends on SCScene/Parameters Component/DRIVER(sequence_editor.sequences_all["driven"].blend_alpha) via 'Driver -> Driven Property' SCScene/Sequencer Component/SEQUENCES_EVAL() via 'RNA Target -> Driver' Detected 1 dependency cycles ```
Author

@dr.sybren I made this first example as a POC, but the issue remains the same with a custom FloatProperty driving a value. I don't think the circular dependency is the issue here.

@dr.sybren I made this first example as a POC, but the issue remains the same with a custom FloatProperty driving a value. I don't think the circular dependency is the issue here.

Added subscriber: @Sergey

Added subscriber: @Sergey

@Miadim a file that has an unsupported situation can't really be used as an example for a bug report. @lichtwerk's new file works fine.

In #82776#1057874, @lichtwerk wrote:
If I get this right, this also means that you cannot drive a strip with another strip. ever. right?

There are no separate dependency graph nodes for each sequencer strip. It's also not desirable to create those, unless they're absolutely necessary, to keep the size of the depsgraph in check. This is something that could be looked at, at some point.

About the actual issue at hand (update of driver input value doesn't cause invalidation of sequencer cache), I think this is simply a known limitation, rather than a bug. @Sergey what do you think?

@Miadim a file that has an unsupported situation can't really be used as an example for a bug report. @lichtwerk's new file works fine. > In #82776#1057874, @lichtwerk wrote: > If I get this right, this also means that you cannot drive a strip with another strip. ever. right? There are no separate dependency graph nodes for each sequencer strip. It's also not desirable to create those, unless they're absolutely necessary, to keep the size of the depsgraph in check. This is something that could be looked at, at some point. About the actual issue at hand (update of driver input value doesn't cause invalidation of sequencer cache), I think this is simply a known limitation, rather than a bug. @Sergey what do you think?
Author

@dr.sybren I agree, I didn't notice this circular dependency when submitting, else I would have done it in another way. Sorry for that.

@dr.sybren I agree, I didn't notice this circular dependency when submitting, else I would have done it in another way. Sorry for that.

@dr.sybren I think there are two separate issues:

Issue #1: Dependency cycle caused by lack of granularity of strips. Solution which will keep the dependency graph size/complexity under control will be to treat such properties similar to ID property: for driven properties create corresponding node. This is more of an improvement than a bug.

Here is a quick demonstration of the idea (didn't have time to build it to scale or paint it though):

PXL_20201120_101134465.jpg

Issue #2: Lack of cache invalidation on driver changes. As Philipp mentioned, this happens in scenario without the dependency graph cycle as well. This is a bug. Although, can not give an immediate suggestion of a preferred fix for it at this time.

@dr.sybren I think there are two separate issues: Issue #1: Dependency cycle caused by lack of granularity of strips. Solution which will keep the dependency graph size/complexity under control will be to treat such properties similar to ID property: for driven properties create corresponding node. This is more of an improvement than a bug. Here is a quick demonstration of the idea (didn't have time to build it to scale or paint it though): ![PXL_20201120_101134465.jpg](https://archive.blender.org/developer/F9335412/PXL_20201120_101134465.jpg) Issue #2: Lack of cache invalidation on driver changes. As Philipp mentioned, this happens in scenario without the dependency graph cycle as well. This is a bug. Although, can not give an immediate suggestion of a preferred fix for it at this time.
Thomas Dinges added this to the 2.93 LTS milestone 2023-02-07 18:40:57 +01:00
Philipp Oeser removed the
Interest
Animation & Rigging
label 2023-02-09 14:35:58 +01:00
Pratik Borhade removed this from the 2.93 LTS milestone 2023-07-31 13:54:29 +02: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
5 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#82776
No description provided.