Blender freezes on evaluated_depsgraph_get when Python API is used to add/remove modifiers on an object #64731
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
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#64731
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: Windows 10 Home
Graphics card: GTX 1070 8GB
Blender Version
Broken: 2.80, .3076544c8c52, 2019-05-16
Short description of error
This issue was encountered while updating the FLIP Fluids addon for the recent
e693918d40
API changes. I have reduced the issue to a simple script that causes Blender to freeze when calling the evaluated_depsgraph_get method.It seems that adding a modifier to an object and then removing the modifier via the Python API is related to the freezing issue. The first time evaluated_depsgraph_get is called, the method completes successfully. On the second time it is called on another object, the freeze will occur.
Here is a short script that reproduces the issue:
The console output after running this script is:
Exact steps for others to reproduce the error
I have attached a .blend file that includes the script to reproduce this issue.
To reproduce:
To reproduce from a new .blend file:
to_mesh_test.blend
Added subscriber: @rlguy
Added subscribers: @brecht, @Sergey
The issue here is that you're trying to remove mesh from
bpy.data.meshes
, but that mesh is owned by the object. It is to be cleared usingobject.to_mesh_clear()
. That should solve Blender locking.I think we should have something like this P976: (An Untitled Masterwork)
to prevent such mistakes. @brecht, any suggestions/objections?
Looks good to me.
Added subscriber: @MACHIN3
This issue was referenced by
f50cef95ef
Changed status from 'Open' to: 'Resolved'