Nodes: Removing and freeing the next one during a linkbase iterating #104604

Closed
opened 2023-02-11 04:09:02 +01:00 by Iliya Katushenock · 3 comments

System Information
Operating system: Windows-10-10.0.19045-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 527.56

Blender Version
Broken: version: 3.5.0 Alpha, branch: main, commit date: 2023-02-10 20:06, hash: rBefabe81c916c (ninja lite)
Worked: version: 3.5.0 Alpha, branch: main, commit date: 2023-02-10 20:06, hash: rBefabe81c916c (ninja)

Caused by: a827864e6b

Short description of error
Blender crashed for lite build during nodeInternalRelink.
As i can see, crash happen during LISTBASE_FOREACH_MUTABLE iterate other links after delete some links (maybe due to another one nested LISTBASE_FOREACH_MUTABLE).

Exact steps for others to reproduce the error

  1. Reproduce example file:
    a. Create new geometry node tree. Group Input -> Group Output nodes.
    b. Create on Convex Hull node and past this on link. Call this node as Second
    c. Create Join Geometry and past this between Convex Hull and Group Output
    d. Put another one link from Group Input in to Join Geometry.
    e. Past another one Convex Hull node on second link. Call this node as First
  2. In this file:
    a. {key Alt LMB} on First node, move somether.
    b. {key Alt LMB} on Second node. Expect crash in lite build.
**System Information** Operating system: Windows-10-10.0.19045-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 527.56 **Blender Version** Broken: version: 3.5.0 Alpha, branch: main, commit date: 2023-02-10 20:06, hash: `rBefabe81c916c` (`ninja lite`) Worked: version: 3.5.0 Alpha, branch: main, commit date: 2023-02-10 20:06, hash: `rBefabe81c916c` (`ninja`) Caused by: a827864e6b1ee34af759dea61f832076c0e67c44 **Short description of error** Blender crashed for lite build during `nodeInternalRelink`. As i can see, crash happen during `LISTBASE_FOREACH_MUTABLE` iterate other links after delete some links (maybe due to another one nested `LISTBASE_FOREACH_MUTABLE`). **Exact steps for others to reproduce the error** 1. Reproduce example file: a. Create new geometry node tree. `Group Input` -> `Group Output` nodes. b. Create on `Convex Hull` node and past this on link. Call this node as `Second` c. Create `Join Geometry` and past this between `Convex Hull` and `Group Output` d. Put another one link from `Group Input` in to `Join Geometry`. e. Past another one `Convex Hull` node on second link. Call this node as `First` 2. In this file: a. {key Alt LMB} on `First` node, move somether. b. {key Alt LMB} on `Second` node. Expect crash in lite build.
Iliya Katushenock added the
Priority
Normal
Type
Report
Status
Confirmed
labels 2023-02-11 04:09:03 +01:00
Member

@mod_moder : please always set the Module tag when you confirm an issue (otherwise it is not a fully triaged bug)

@mod_moder : please always set the `Module` tag when you confirm an issue (otherwise it is not a [fully triaged bug](https://wiki.blender.org/wiki/Process/A_Bugs_Life))
Philipp Oeser added
Status
Needs Triage
and removed
Status
Confirmed
labels 2023-02-13 11:53:57 +01:00
Iliya Katushenock added
Module
Nodes & Physics
Status
Confirmed
and removed
Status
Needs Triage
labels 2023-02-13 19:29:01 +01:00
Author
Member

I found the culprit :)

I found the culprit :)
Iliya Katushenock changed title from Crash in Little Build. Correct in full build. Nodes and linked list. to Nodes: Removing and freeing the next one during a linkbase iterating 2023-02-13 19:31:06 +01:00
Author
Member

I can try to fix it, anyway I found it when cleaning. Now there's just one more reason

I can try to fix it, anyway I found it when cleaning. Now there's just one more reason
Iliya Katushenock self-assigned this 2023-02-13 20:16:15 +01:00
Iliya Katushenock added a new dependency 2023-02-13 20:29:50 +01:00
Iliya Katushenock removed a dependency 2023-02-13 20:30:12 +01:00
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2023-02-17 21:23:47 +01:00
Sign in to join this conversation.
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
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#104604
No description provided.