calling evaluated_depsgraph_get() while active object in EDIT mode can crash Blender #75371
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#75371
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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:
Graphics card:
Blender Version
Broken: master
Worked: unknown
I was actually chasing a bug in an Addon. For this purpose i called evaluated_depsgraph_get() for testing. By this i found that calling that function repeatedly causes Blender to crash.
Exact steps for others to reproduce the error
I was able to create a small demo blend file depsgraph_crash.blend
This file contains 2 objects and a modifier.
Also a small script is attached:
When you cut/paste this script to the Python console, you see that blender crashes on the last line. I am not sure if the modifications in the modifier are important, but this way the crash is reproducible. It might be a timing thing.
Important notice: The Crash only happens when the active object is in edit mode. When the Object is in Object mode then all works as expected.
note: I found another issue yesterday which actually seems to have the exact same cause as what happens in the demo blendfile: When i call bpy.context.evaluated_depsgraph_get() within a handler then Blender also crashes when the handler is called while the active object is in Edit mode.
Added subscriber: @GaiaClary
Added subscribers: @Sergey, @mano-wii
Think I forgot to mention bugfix number in the commit.
The issue was actually fixed in blender/blender@9fca9b9953. Thanks fore the report, closing!
Changed status from 'Needs Triage' to: 'Resolved'