Dragging image input from Image Texture node with already specified image datablock into Group Input will create unremovable image datablock user #102325

Closed
opened 2022-11-07 11:49:50 +01:00 by Ludvik Koutny · 10 comments
Contributor

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

Blender Version
Broken: version: 3.3.1, branch: master, commit date: 2022-10-04 18:35, hash: b292cfe5a9
Worked: probably never

Short description of error
image.png
When you create image texture node, select the image datablock and then drag the image input socket into an empty group input socket, a new image datablock user will be created (probably due to the image data type group input default value being hidden from the UI). Every copied instances of the group input node then counts as another user of this image datablock. Even if the image datablock is cleared from the image texture, the group inputs are still its user, so even when the image datablock has no real users in the file, it can not be purged

Exact steps for others to reproduce the error

  • Open attached file or:
    1. Select the default cube, create a new GN node network, and drop in image texture node
    2. Open any image file from the Image Texture node
    3. Once image is opened and used by Image Texture node, drag the image input socket into empty socket of the Group Input node
    4. Duplicate the group input node couple of times
    5. Disconnect the Image Texture connection from the Group Input node
    6. Click the X button on the Image Texture node to unlink the image from the node
    7. Go to File->Clean Up->Recursive Unused Datablocks
  • Set outliner to Blend file view, and notice the image is there
    Result: Image can't be purged from the blender file even if it has no real users, and user can not remove the references to the image from the group input nodes
    Expected: Either Group Input nodes should not hold references to image datablocks, or the Image data type sockets should have default value exposed, so user can clear it.
    non-removable_image_bug.blend
**System Information** Operating system: Windows-10-10.0.19045-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 522.25 **Blender Version** Broken: version: 3.3.1, branch: master, commit date: 2022-10-04 18:35, hash: `b292cfe5a9` Worked: probably never **Short description of error** ![image.png](https://archive.blender.org/developer/F13864132/image.png) When you create image texture node, select the image datablock and then drag the image input socket into an empty group input socket, a new image datablock user will be created (probably due to the image data type group input default value being hidden from the UI). Every copied instances of the group input node then counts as another user of this image datablock. Even if the image datablock is cleared from the image texture, the group inputs are still its user, so even when the image datablock has no real users in the file, it can not be purged **Exact steps for others to reproduce the error** - Open attached file or: 1. Select the default cube, create a new GN node network, and drop in image texture node 2. Open any image file from the Image Texture node 3. Once image is opened and used by Image Texture node, drag the image input socket into empty socket of the Group Input node 4. Duplicate the group input node couple of times 5. Disconnect the Image Texture connection from the Group Input node 6. Click the X button on the Image Texture node to unlink the image from the node 7. Go to File->Clean Up->Recursive Unused Datablocks - Set outliner to Blend file view, and notice the image is there Result: Image can't be purged from the blender file even if it has no real users, and user can not remove the references to the image from the group input nodes Expected: Either Group Input nodes should not hold references to image datablocks, or the Image data type sockets should have default value exposed, so user can clear it. [non-removable_image_bug.blend](https://archive.blender.org/developer/F13865393/non-removable_image_bug.blend)
Author
Contributor

Added subscriber: @Rawalanche

Added subscriber: @Rawalanche

Added subscriber: @mano-wii

Added subscriber: @mano-wii

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

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

Thank you for the report.
In fact the image is still referenced.
It seems related to #101615 (Geometry Nodes Object Group input does not remove dependencies). (possibly the same problem).

Thank you for the report. In fact the image is still referenced. It seems related to #101615 (Geometry Nodes Object Group input does not remove dependencies). (possibly the same problem).

Added subscriber: @mod_moder

Added subscriber: @mod_moder

The socket contains the image 3 times:
the value itself in the interface
default value within the group

  • perhaps a value from outside the group (not sure how it works and if I understood it correctly)
    So yes, it looks like a duplicate. If you delete the socket, the owner also disappears.
The socket contains the image 3 times: the value itself in the interface default value within the group + perhaps a value from outside the group (not sure how it works and if I understood it correctly) So yes, it looks like a duplicate. If you delete the socket, the owner also disappears.
Philipp Oeser removed the
Interest
Nodes & Physics
label 2023-02-10 08:43:31 +01:00

Not sure, needs to be checked. But it looks like it might be closed? 0ea15a6fbb

Not sure, needs to be checked. But it looks like it might be closed? https://projects.blender.org/blender/blender/commit/0ea15a6fbb51004a2517ef3d29cb7d8a5a38771e

@mod_moder, still an issue.
No matter purge or recursive removal of unused, the Image data-block remains in the file.

@mod_moder, still an issue. No matter purge or recursive removal of unused, the Image data-block remains in the file.

The fix makes this data visible. Just delete them

The fix makes this data visible. Just delete them

Hm, I see the image specified in the modifier! So it's not really "unused" anymore.
So I believe it's resolved by 0ea15a6fbb

Hm, I see the image specified in the modifier! So it's not really "unused" anymore. So I believe it's resolved by 0ea15a6fbb
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2023-02-13 19:16:20 +01:00
Germano Cavalcante added
Status
Resolved
and removed
Status
Archived
labels 2023-02-13 19:16:30 +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#102325
No description provided.