Evaluated_depsgraph_get() freeze when curve deform present #73516

Closed
opened 2020-01-30 22:06:00 +01:00 by Konstantins Visnevskis · 7 comments

System Information
Operating system: Windows-7-6.1.7601-SP1 64 Bits
Graphics card: GeForce GTX 580/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 391.35

Blender Version
Broken: version: 2.83 (sub 2), branch: master, commit date: 2020-01-30 11:04, hash: 2142288eae

Short description of error
Porting a rig script from 2.79.
AFAI understand, now to read the evaluated mesh data one has to pass Depsgraph to bm.From_object(), which seems to require Evaluated_depsgraph_get().
And that seems to freeze Blender when called from a driver on a scene containing a curve deform.
Tested with builds of 2.81, 2.83 alpha

Exact steps for others to reproduce the error
test.blend

  • Open the file allowing scripts -> Freeze
**System Information** Operating system: Windows-7-6.1.7601-SP1 64 Bits Graphics card: GeForce GTX 580/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 391.35 **Blender Version** Broken: version: 2.83 (sub 2), branch: master, commit date: 2020-01-30 11:04, hash: `2142288eae` **Short description of error** Porting a rig script from 2.79. AFAI understand, now to read the evaluated mesh data one has to pass Depsgraph to bm.From_object(), which seems to require Evaluated_depsgraph_get(). And that seems to freeze Blender when called from a driver on a scene containing a curve deform. Tested with builds of 2.81, 2.83 alpha **Exact steps for others to reproduce the error** [test.blend](https://archive.blender.org/developer/F8313914/test.blend) - Open the file allowing scripts -> Freeze

Added subscriber: @KonstantinsVisnevskis

Added subscriber: @KonstantinsVisnevskis

Added subscriber: @Josephbburg

Added subscriber: @Josephbburg

I can confirm the freeze. It seems reasonable that you wouldn't be able to update the depsgraph in the process of updating the depsgraph... seems like that should lead to an infinite recursion situation.

Using the current depsgraph: dg = bpy.context.view_layer.depsgraph doesn't freeze Blender. I think maybe using bpy.data.meshes.new_from_object() might be what you want, also. (https://docs.blender.org/api/current/bpy.types.BlendDataMeshes.html?highlight=new_from_object#bpy.types.BlendDataMeshes.new_from_object)

I don't think this is a bug.

I can confirm the freeze. It seems reasonable that you wouldn't be able to update the depsgraph in the process of updating the depsgraph... seems like that should lead to an infinite recursion situation. Using the current depsgraph: `dg = bpy.context.view_layer.depsgraph` doesn't freeze Blender. I think maybe using `bpy.data.meshes.new_from_object()` might be what you want, also. (https://docs.blender.org/api/current/bpy.types.BlendDataMeshes.html?highlight=new_from_object#bpy.types.BlendDataMeshes.new_from_object) I don't think this is a bug.

Added subscriber: @brecht

Added subscriber: @brecht

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

Changed status from 'Needs Triage' to: 'Archived'
Brecht Van Lommel self-assigned this 2020-02-03 12:09:24 +01:00

I agree this is not a bug, evaluating the depsgraph again in the middle of depsgraph evaluation will lead to infinite recursion.

I agree this is not a bug, evaluating the depsgraph again in the middle of depsgraph evaluation will lead to infinite recursion.

Thanks, will try to test, but: https://developer.blender.org/T73563

Thanks, will try to test, but: https://developer.blender.org/T73563
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#73516
No description provided.