Depsgraph does not update #54002

Closed
opened 2018-02-05 17:31:10 +01:00 by MWire · 9 comments

System Information
Windows 8.1, nvidia Geforce 920M

Blender Version
Broken: (2.79, 5bd8ac9)

Short description of error
This is a follow-up for bug ##53991
The driver for "ScaleX" does not update when "Driver Source" is altered
As stated by Sergey, it has something to do with "Depsgraph missing updates"

Exact steps for others to reproduce the error
Add a cycles material, create a driver in the node editor that takes input from any node variable within that material that uses the new dependency graph.
Nodebug_working.blend
Attached example is attempting to control ScaleX using the variable input node, using the dependency graph.

**System Information** Windows 8.1, nvidia Geforce 920M **Blender Version** Broken: (2.79, 5bd8ac9) **Short description of error** This is a follow-up for bug [##53991 ](https://developer.blender.org/T53991) The driver for "ScaleX" does not update when "Driver Source" is altered As stated by Sergey, it has something to do with "Depsgraph missing updates" **Exact steps for others to reproduce the error** Add a cycles material, create a driver in the node editor that takes input from any node variable within that material that uses the new dependency graph. [Nodebug_working.blend](https://archive.blender.org/developer/F2131742/Nodebug_working.blend) Attached example is attempting to control ScaleX using the variable input node, using the dependency graph.
Author

Added subscriber: @MWire

Added subscriber: @MWire

Added subscriber: @Sergey

Added subscriber: @Sergey

You have to run Blender with new dependency graph (--enable-new-depsgraph) command line argument. With new dependency graph the attached file works fine to me.

This is not possible to make this file to work in old dependency graph. In fact, we got rid of old dependency graph in blender2.8 branch already.

What i meant by "missing depsgraph updates" was more like "missing relations in dependency graph update". What that means in practice, is that due to more granular nature of new dependency graph, more edits in interface requires relations to be updated. Rarely, but this is still happening. In order to catch this class of errors you need to save file and re-load it. If that makes tihngs to work, this will indicate that some edit did not tell depsgraph that relations needs to be updated.

So, how do i make this file to fail with new dependency graph?

You have to run Blender with new dependency graph (`--enable-new-depsgraph`) command line argument. With new dependency graph the attached file works fine to me. This is not possible to make this file to work in old dependency graph. In fact, we got rid of old dependency graph in blender2.8 branch already. What i meant by "missing depsgraph updates" was more like "missing relations in dependency graph update". What that means in practice, is that due to more granular nature of new dependency graph, more edits in interface requires relations to be updated. Rarely, but this is still happening. In order to catch this class of errors you need to save file and re-load it. If that makes tihngs to work, this will indicate that some edit did not tell depsgraph that relations needs to be updated. So, how do i make this file to fail with new dependency graph?
Author

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
MWire closed this issue 2018-02-07 16:12:02 +01:00
MWire self-assigned this 2018-02-07 16:12:02 +01:00
Author

I didn't know that, I assumed that it was already enabled by default.

I didn't know that, I assumed that it was already enabled by default.

Added subscriber: @Kirchesch

Added subscriber: @Kirchesch

Is the new Despgraph default in Blender 2.9? because i have to update 3 time to update all my drivers

Is the new Despgraph default in Blender 2.9? because i have to update 3 time to update all my drivers

@Kirchesch, the, what used to be called, "new" depsgraph is the only one in Blender since 2.80. If you have some issues with drivers, please submit a new report, with all the details provided.

@Kirchesch, the, what used to be called, "new" depsgraph is the only one in Blender since 2.80. If you have some issues with drivers, please submit a new report, with all the details provided.

In #54002#1089759, @Sergey wrote:
@Kirchesch, the, what used to be called, "new" depsgraph is the only one in Blender since 2.80. If you have some issues with drivers, please submit a new report, with all the details provided.

Yes, its a bug in Blender where you can't drive a value from a bone with another value from the same bone
I had to re-create the bone and the necessary hierarchy, and then copy the values from the re-created version

Thanks for the info anyway, i will submit it, even though its probably a known issue

> In #54002#1089759, @Sergey wrote: > @Kirchesch, the, what used to be called, "new" depsgraph is the only one in Blender since 2.80. If you have some issues with drivers, please submit a new report, with all the details provided. Yes, its a bug in Blender where you can't drive a value from a bone with another value from the same bone I had to re-create the bone and the necessary hierarchy, and then copy the values from the re-created version Thanks for the info anyway, i will submit it, even though its probably a known issue
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#54002
No description provided.