Render crash when an object is updated with a frame_change_post handler while another object's Show in Render property is keyframed #76422
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
FBX
Interest
Freestyle
Interest
Geometry Nodes
Interest
glTF
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 & 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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
Asset System
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#76422
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: Windows 10 Home
Graphics card: GTX 1070 8GB
Blender Version
Broken: Blender 2.90 Alpha,
fdebdfa320
Short description of error
This bug was reported to us while developing the FLIP Fluids addon. I have reduced the bug to a simple .blend file and script that can reproduce the issue.
I have an object in my scene that is procedurally updated using the frame_change_post handler with the following script:
I have another object in my scene that is a regular Cube object. This object has the Show in Renders property keyframed from Enabled to Disabled.
When I run the script and render an image or animation, Blender crashes with the following crash report:
bug_report.crash.txt
Additional notes:
Exact steps for others to reproduce the error
Attached is a .blend file that can reproduce the issue:
bug_report.blend
Blender crashes
Added subscriber: @rlguy
Added subscriber: @EAW
Trying to render in a debug build leads to:
Lines 349-353
Just before that:
Lines 442-453
Added subscriber: @mano-wii
Seems to be related to #71908
Added subscriber: @dr.sybren
Changed status from 'Needs Triage' to: 'Archived'
@mano-wii is right, it's exactly the same script as in #71908, but with a different issue.
The crash is avoided when you remove the
depsgraph.update()
call. This call is also not necessary, which can be actually seen when you add a face to the mesh so that it can be rendered:As changing the frame is done in a way that requires a certain state of the depsgraph, and forcing an update from Python like this disregards that, I don't see how calling
depsgraph.update()
here could be supported.