CustomNodeTree throws constant warnings when socket is added #94990

Open
opened 2022-01-17 23:01:44 +01:00 by Zach Eastin · 16 comments

System Information
Operating system: Windows-10-10.0.19042-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 511.23

Blender Version
Broken: version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: f1cca30557
Worked: 2.93

Short description of error
With custom nodetrees if you add a single node into the node tree and the node tree is visible in an area a warning about the nodetree.type enum being set to something that doesn't exist constantly shows up in the system console.

WARN (bpy.rna): C:\Users\blender\git\blender-v300\blender.git\source\blender\python\intern\bpy_rna.c:1352 pyrna_enum_to_py: current value '-1' matches no enum in 'CustomTreeType', 'NodeTree', 'type'

Exact steps for others to reproduce the error

  • Open a new blend file in Blender 3.0
  • Run the 'Custom Nodes' template in the Text Editor
  • In sidebar, add socket in groups tab

I understand this might not be technically an error but it makes debugging custom nodetrees difficult as any errors are quickly whisked away up the terminal window by these warnings. As well as this is from a deprecated attribute.

**System Information** Operating system: Windows-10-10.0.19042-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 511.23 **Blender Version** Broken: version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: `f1cca30557` Worked: 2.93 **Short description of error** With custom nodetrees if you add a single node into the node tree and the node tree is visible in an area a warning about the nodetree.type enum being set to something that doesn't exist constantly shows up in the system console. ``` WARN (bpy.rna): C:\Users\blender\git\blender-v300\blender.git\source\blender\python\intern\bpy_rna.c:1352 pyrna_enum_to_py: current value '-1' matches no enum in 'CustomTreeType', 'NodeTree', 'type' ``` **Exact steps for others to reproduce the error** - Open a new blend file in Blender 3.0 - Run the 'Custom Nodes' template in the Text Editor - In sidebar, add socket in groups tab I understand this might not be technically an error but it makes debugging custom nodetrees difficult as any errors are quickly whisked away up the terminal window by these warnings. As well as this is from a deprecated attribute.
Author

Added subscriber: @Zeastin

Added subscriber: @Zeastin

#103807 was marked as duplicate of this issue

#103807 was marked as duplicate of this issue

#101336 was marked as duplicate of this issue

#101336 was marked as duplicate of this issue
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Thanks for the report. Warning did not appear until I add sockets in Groups tab (in sidebar). Probably that info is missing from reproducing steps? I will edit the report.

Thanks for the report. Warning did not appear until I add sockets in Groups tab (in sidebar). Probably that info is missing from reproducing steps? I will edit the report.
Author

Hmmmm I didn't have that problem. Just adding in a single node to the empty node tree was enough.

Hmmmm I didn't have that problem. Just adding in a single node to the empty node tree was enough.
Pratik Borhade changed title from Custom NodeTree throws constant warnings when node is added to CustomNodeTree throws constant warnings when socket is added 2022-01-18 07:29:16 +01:00
Member

@Blendify , are you able to get those warnings by simply adding a node?

Hmmmm I didn't have that problem. Just adding in a single node to the empty node tree was enough.

I think I was too quick to confirm the report. But just adding a node didn't show up any warning

@Blendify , are you able to get those warnings by simply adding a node? > Hmmmm I didn't have that problem. Just adding in a single node to the empty node tree was enough. I think I was too quick to confirm the report. But just adding a node didn't show up any warning
Author

Okay, you're right. Just checked it on my laptop in Blender 3.0 and adding nodes did not throw the error but adding sockets in the side panel did. Not sure why the same version acted differently on my desktop ¯_(ツ)_/¯

Okay, you're right. Just checked it on my laptop in Blender 3.0 and adding nodes did not throw the error but adding sockets in the side panel did. Not sure why the same version acted differently on my desktop ¯\_(ツ)_/¯

Added subscribers: @HooglyBoogly, @dfelinto

Added subscribers: @HooglyBoogly, @dfelinto

Indeed the warnings are rather annoying. But I think the real bug is that since 3.0 all the Node Editors show the "Group" tab. I don't think this option should be there. So there is no way to create the new sockets anyways. (what is the point of creating them even?)

As a matter of fact, the "Group" shouldn't show to any of the editors (besides Geometry Nodes). @HooglyBoogly is about to submit a fix for that (in 3.2).

I'm leaving this as a bug until Hans commit land.

Indeed the warnings are rather annoying. But I think the real bug is that since 3.0 all the Node Editors show the "Group" tab. I don't think this option should be there. So there is no way to create the new sockets anyways. (what is the point of creating them even?) As a matter of fact, the "Group" shouldn't show to any of the editors (besides Geometry Nodes). @HooglyBoogly is about to submit a fix for that (in 3.2). I'm leaving this as a bug until Hans commit land.
Member

Added subscriber: @Josephbburg

Added subscriber: @Josephbburg
Member

Added subscriber: @EAW

Added subscriber: @EAW
Member

@Josephbburg I wasn't able to get your file to crash. I tried both 3.3 and 3.4.

@Josephbburg I wasn't able to get your file to crash. I tried both 3.3 and 3.4.

Added subscriber: @QuantumCoderQC

Added subscriber: @QuantumCoderQC
Philipp Oeser removed the
Interest
Nodes & Physics
label 2023-02-10 08:44:17 +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
7 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#94990
No description provided.