Geo Node - Creating input socket via script crashes Blender #101590

Closed
opened 2022-10-04 13:36:27 +02:00 by Shrinivas · 7 comments
Member

System Information
Operating system: Linux-5.19.12-arch1-1-x86_64-with-glibc2.36 64 Bits
Graphics card: NVIDIA GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 515.76

Blender Version
Broken: version: 3.3.0, branch: makepkg (modified), commit date: 2022-09-06 15:39, hash: 0759f671ce
Worked: -

Short description of error
Creating input socket of a group output geometry node from python console makes Blender crash

Exact steps for others to reproduce the error

  • Open Blender and switch to Geometry Nodes workspace
  • Click new to create a new geometry node modifier for the default cube
  • Switch to 'Scripting' workspace and in the python console type following:
C.object.modifiers[0].node_group.nodes['Group Output'].inputs.new('VALUE', 'test')
  • Blender crashes with the following message on console

Attempt to free NULL pointer

Also tried first setting the type of the empty custom socket (which is created by default in the output node) and then adding another input socket:

C.object.modifiers[0].node_group.nodes['Group Output'].inputs[1].type = 'VALUE'
C.object.modifiers[0].node_group.nodes['Group Output'].inputs.new('VALUE', 'test2')

In this case there is no crash but the newly created socket is displayed with the following message on the node:

Undefined Socket Type

Explicitly setting the type of the newly created node once again, gives the correct result but there is still the nagging Attempt to free NULL pointer message on the console.

**System Information** Operating system: Linux-5.19.12-arch1-1-x86_64-with-glibc2.36 64 Bits Graphics card: NVIDIA GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 515.76 **Blender Version** Broken: version: 3.3.0, branch: makepkg (modified), commit date: 2022-09-06 15:39, hash: `0759f671ce` Worked: - **Short description of error** Creating input socket of a group output geometry node from python console makes Blender crash **Exact steps for others to reproduce the error** - Open Blender and switch to Geometry Nodes workspace - Click new to create a new geometry node modifier for the default cube - Switch to 'Scripting' workspace and in the python console type following: ``` C.object.modifiers[0].node_group.nodes['Group Output'].inputs.new('VALUE', 'test') ``` - Blender crashes with the following message on console > Attempt to free NULL pointer Also tried first setting the type of the empty custom socket (which is created by default in the output node) and then adding another input socket: ``` C.object.modifiers[0].node_group.nodes['Group Output'].inputs[1].type = 'VALUE' C.object.modifiers[0].node_group.nodes['Group Output'].inputs.new('VALUE', 'test2') ``` In this case there is no crash but the newly created socket is displayed with the following message on the node: > Undefined Socket Type Explicitly setting the type of the newly created node once again, gives the correct result but there is still the nagging **Attempt to free NULL pointer** message on the console.
Author
Member

Added subscriber: @Khemadeva

Added subscriber: @Khemadeva

Added subscriber: @mod_moder

Added subscriber: @mod_moder

Duplicate?
#100770

Duplicate? #100770

Added subscriber: @mano-wii

Added subscriber: @mano-wii

In fact a duplicate of #100770 as the same error message appears (Attempt to free NULL pointer)

The other problem, although apparently related, needs to be reported separately.

In the submission template and guidelines, it is informed:
If there are multiple bugs, make multiple bug reports.

In fact a duplicate of #100770 as the same error message appears (**Attempt to free NULL pointer**) The other problem, although apparently related, needs to be reported separately. > **In the [submission template and guidelines](https://developer.blender.org/maniphest/task/edit/form/1/), it is informed:** > If there are multiple bugs, make multiple bug reports.

Closed as duplicate of #100872

Closed as duplicate of #100872

Closed as duplicate of #100770

Closed as duplicate of #100770
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
3 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#101590
No description provided.