Hidden user for Geometry node group #86733

Open
opened 2021-03-19 11:08:51 +01:00 by Vyacheslav Kobozev · 7 comments

System Information
Operating system: Windows-8.1-6.3.9600-SP0 64 Bits
Graphics card: GeForce GTX 660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.40

Blender Version
Broken: version: 2.93.0 Alpha, branch: master, commit date: 2021-03-18 21:29, hash: 36deb8a48e

Short description of error
Node group after delete still have user and do not appear in Orphan Data outliner.

2021-03-19_13-02-52.mp4

Exact steps for others to reproduce the error

  • Open attached file or:
  • In the default Cube scene, open the Geometry Node editor
  • Press New and optionally rename to "1"
  • Duplicate the node tree and optionally rename "1.001" to "2"
  • In the node tree "2" add a group of the node tree "1" (If you switch to tree "1" you will see that tree "2" has 0 users)
  • Save the file with the tree "2" as the active
  • Reload the file saved
  • Switch to tree "1" (you will see that tree "2" still has users)
    GN HiddenUser.blend
**System Information** Operating system: Windows-8.1-6.3.9600-SP0 64 Bits Graphics card: GeForce GTX 660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.40 **Blender Version** Broken: version: 2.93.0 Alpha, branch: master, commit date: 2021-03-18 21:29, hash: `36deb8a48e` **Short description of error** Node group after delete still have user and do not appear in Orphan Data outliner. [2021-03-19_13-02-52.mp4](https://archive.blender.org/developer/F9899365/2021-03-19_13-02-52.mp4) **Exact steps for others to reproduce the error** - Open attached file or: - In the default Cube scene, open the Geometry Node editor - Press `New` and optionally rename to "1" - Duplicate the node tree and optionally rename "1.001" to "2" - In the node tree "2" add a group of the node tree "1" (If you switch to tree "1" you will see that tree "2" has 0 users) - Save the file with the tree "2" as the active - Reload the file saved - Switch to tree "1" (you will see that tree "2" still has users) [GN HiddenUser.blend](https://archive.blender.org/developer/F9899370/GN_HiddenUser.blend)

Added subscriber: @Vyach

Added subscriber: @Vyach

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

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

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Thanks for the report.
I can confirm and I found steps that tell us how to reproduce the problem from scratch.

Thanks for the report. I can confirm and I found steps that tell us how to reproduce the problem from scratch.

@mano-wii thanks for testing and addition!

@mano-wii thanks for testing and addition!
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

The reason is that the node editor has a reference to the visible node tree. This is a LIB_TAG_EXTRAUSER and is therefore for different from other "users". It is not removed automatically, probably because it is just a flag and it does not remember why the flag was set. The concept of an "extra user" seems a bit weak in this case, but changing that is outside of the scope of a bug report I think.
Note that when you save the file again when another node tree is shown in the node editor, the extra user is not there after another reload.

One related issue is that invisible node editors can also have references to node trees (they can be invisible when an area was changed from being a node editor to something else).

For reference, the extra user is set in BKE_screen_foreach_id_screen_area in the SPACE_NODE case.

The reason is that the node editor has a reference to the visible node tree. This is a `LIB_TAG_EXTRAUSER` and is therefore for different from other "users". It is not removed automatically, probably because it is just a flag and it does not remember why the flag was set. The concept of an "extra user" seems a bit weak in this case, but changing that is outside of the scope of a bug report I think. Note that when you save the file again when another node tree is shown in the node editor, the extra user is not there after another reload. One related issue is that invisible node editors can also have references to node trees (they can be invisible when an area was changed from being a node editor to something else). For reference, the extra user is set in `BKE_screen_foreach_id_screen_area` in the `SPACE_NODE` case.
Philipp Oeser removed the
Interest
Nodes & Physics
label 2023-02-10 08:45:01 +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
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#86733
No description provided.