WIP: Fix #103824: CompositorNodeOutputFile inputs.new() crash #118807
No reviewers
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
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#118807
Loading…
Reference in New Issue
No description provided.
Delete Branch "lichtwerk/blender:103824"
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?
Even though this has a more dedicated API in
file_slots.new()
thisshouldnt crash.
The crash is due to
NodeImageMultiFileSocket
not being initializedproperly,
ntreeBlendWrite
then crashes accessing garbage data.Note this is more of a bandaid, the proper way forward would be some
sort of dynamic declration such as
blender::nodes::node_group_declare_dynamic
as outlined in #108728, butsince this is a more involved change, this PR just fixes the crash with
what we have atm. (using
ntreeCompositOutputFileAddSocket
which takescare of
NodeImageMultiFileSocket
data for us).With a follow up PR it looks good to me.
What about changing
allow_changing_sockets
? That would be an API change technically, but if it's just not working to change the sockets directly, maybe it's better that people just use the dedicated API. Otherwise delaying that to 4.2 and following up with a change to use dynamic declarations would be fine.Possible of course (and I have advised reporters to use the dedicated API), but not sure breaking the API just for a release or two is worth it (if we can make the general API work as well)?
Not sure I understand correctly, you mean delaying this fix to 4.2? Why?
If the way this PR does the fix is a no-go, I would vote for the
allow_changing_sockets
solution, but still do it for 4.1 (unless having an API change like this is a no-go in bcon3?)I think
c0f33814c1
might have been the wrong fix for #102611. The bug report specifically asks forfile_output_node.file_slots.remove
and not to remove sockets directly. However, the fix allowed that.I think the fix here is to remove
CMP_NODE_OUTPUT_FILE
fromallow_changing_sockets
and to use more specific rna functions inrna_def_cmp_output_file_slots_api
. See for example howrna_Node_socket_remove
is reused.OK, will take that route.
@3di : that would work for you as well, right?
Fix #103824: CompositorNodeOutputFile inputs.new() crashto WIP: Fix #103824: CompositorNodeOutputFile inputs.new() crash@lichtwerk as long as the below code continues remove the actual socket I'm happy (or if there's an alternative way) 👍
Checkout
From your project repository, check out a new branch and test the changes.