Use after free when using an addon deriving from ShaderNodeCustomGroup #87271
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#87271
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: ALL
Graphics card: N/A
Blender Version (Bisected already)
Broken:
fa566157a5
Worked:
f40294b2d6
Short description of error
originally found in D10784: Fix: Misisng GeometryNodeCustomGroup but this appears to be a separate issue affecting all custom nodes.
When using an addon deriving from ShaderNodeCustomGroup there is a use after free during blender shutdown, @JacquesLucke has some preliminary findings here
Exact steps for others to reproduce the error
Based on the default startup or an attached .blend file (as simple as possible).
BrickTricks-master.zip
291.blend
Added subscribers: @JacquesLucke, @LazyDodo
Changed status from 'Needs Triage' to: 'Confirmed'
Added subscriber: @mano-wii
Added subscriber: @povmaniac
Hi..
After review the addon code and fix an small error with the node inputs..
This are the fix ( I think that we can remove the 'pass' sentence too..).
Now, the crash seems gone or, at least, I can't reproduce here under 2.93.1 official release. I added the fix code for the addon and maybe is a good idea if anyone can make a more test to confirm.
The steps are:
1: open Blender with the addon enabled. ( I used 2.93.1 here)
2: using the default startup scene, add a material with one of the Bricks pattern nodes
3: launch a render
4: close Blender after render finish to check for the crash
5: repeat the steps from 1 to 4 for each of the Bricks pattern. Confirm if the Blender crash happen or not.
This are the fixed code for the addon:
BrickTricks.7z
I think the explanation for why this crash occurred could be that errors in the addon code prevented it from unregistering correctly.
Cheers..
Checked also under Blender 3.0.0 master branch build from yesterday ( not asan build..): no crash.
Changed status from 'Confirmed' to: 'Resolved'
the "fixed" script above, still crashes the version this bug was reported on, however recent versions test ok even with the original scripts. so someone fixed it, but i don't have to time to bisect and see who it was, thank you @povmaniac for looking into it and Stanger for fixing it somewhere along the way! :)