Crash changing any object property in depsgraph_update_post (with the viewport compositing enabled) #107235
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
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#107235
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-10.0.19044-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 680/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 466.27
Blender Version
Broken: version: 3.5.0, branch: blender-v3.5-release, commit date: 2023-03-29 02:56, hash:
1be25cfff18b
Worked: 3.4
Short description of error
This error occurs only if the viewport compositor is enabled - rendered mode of the viewport and Compositor = Always.
When trying to change the viewport color of the object by script on depsgraph update event, this error occurs.
The short script example:
After executing this script in the Text editor, switching to the "Rendered" mode of the 3D Viewport and enabling viewport compositing - when adding or copying the object - Blender throws an error.
This occurs only if the viewport compositing is enabled, if it is not used - code works as expected.
Error occurs on 3.5 and 3.6 alpha.
Exact steps for others to reproduce the error
In debug it also crashed at
get_input("Image");
inCompositeOperation::execute()
, likely to be a threading racing condition since it doesn't consistently crash at one place.return *results_mapped_to_inputs_.lookup(identifier);
throws an exception, so likely the.lookup("Deprecated_003")
returns 0, indicating the composition hasn't finished at the time this function is called. ("Deprecated" as in RE_PASSNAME_DEPRECATED).My guess is it might be duplication another DG update but current one is still being composited?
This happens with changing any object property (not only viewport color) -- possibly changing other stuff too, but havent checked further.
Will raise priority here (since it is a crasher that is not too uncommon to run into)
EXCEPTION_ACCESS_VIOLATION error when trying to change object viewport color with the viewport compositing enabled in depsgraph_update_postto Crash changing any object property in depsgraph_update_post (with the viewport compositing enabled)I'd suspect this to be a similar case as in #118223?
In general, changing data in depsgraph handlers has to be done carefully (see also https://docs.blender.org/api/master/bpy.app.handlers.html#note-on-altering-data ).
Here it looks like changing object data triggers another depsgraph update, while the drawing code is using older (freed) evaluated data?
Also not sure why this is assigned to #Core module, looks more like an issue in drawing code?