Deleting keyframe in node group makes a zombie action data block when the node had an action #47428

Closed
opened 2016-02-16 05:39:50 +01:00 by Satoshi Yamasaki · 9 comments

System Information
Windows 8.1 Pro 64bit, GeForce GTX660

Blender Version
Broken: 2.76, 2.77Testbuild1

Short description of error
Deleting keyframe in node group makes a zombie action data block when the node had an action.

Exact steps for others to reproduce the error

  1. Add a node (e.g. Material node)
  2. Insert a keyframe for a parameter of the node
    (In this operation, "Shader NodetreeAction" is added)
  3. Make a group include the node
    (In this operation, "Shader NodetreeAction.001" is added)
  4. Delete the keyframe in the group

Then go Outliner and select Datablock view, you will see two action datablocks, "Shader NodetreeAction" and "Shader NodetreeAction.001". Latter has no users (so it will be deleted when save the file), but former has one user that can't be delete.
Why the original action remains and can we delete it?

Thanks,

**System Information** Windows 8.1 Pro 64bit, GeForce GTX660 **Blender Version** Broken: 2.76, 2.77Testbuild1 **Short description of error** Deleting keyframe in node group makes a zombie action data block when the node had an action. **Exact steps for others to reproduce the error** 1) Add a node (e.g. Material node) 2) Insert a keyframe for a parameter of the node (In this operation, "Shader NodetreeAction" is added) 3) Make a group include the node (In this operation, "Shader NodetreeAction.001" is added) 4) Delete the keyframe in the group Then go Outliner and select Datablock view, you will see two action datablocks, "Shader NodetreeAction" and "Shader NodetreeAction.001". Latter has no users (so it will be deleted when save the file), but former has one user that can't be delete. Why the original action remains and can we delete it? Thanks,
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

Added subscriber: @SatoshiYamasaki

Added subscriber: @SatoshiYamasaki

Added subscribers: @JoshuaLeung, @mont29

Added subscribers: @JoshuaLeung, @mont29

This is kinda corner case… What happens is that when you group, you create a new NodeTree ID, which gets a new action. Old action remains attached to original NodeTree, so it technically still has one user. I guess we could (should) check whether original action is empty after grouping, and detach it in this case?

Actually, even worse, in debug build we get a nice crash when ungrouping some animated nodes… yuck.

@JoshuaLeung you may be interested by that one too?

This is kinda corner case… What happens is that when you group, you create a new NodeTree ID, which gets a new action. Old action remains attached to original NodeTree, so it technically still has one user. I guess we could (should) check whether original action is empty after grouping, and detach it in this case? Actually, even worse, in debug build we get a nice crash when ungrouping some animated nodes… yuck. @JoshuaLeung you may be interested by that one too?

Ok, fixed hard crash in 8132553553.

This still leaves a mess in usercount, but would be tempted to consider this a TODO for now - and check in id-remap how it works, this branch is supposed to have much better ID handling than our current master (which fails in many corner cases on this topic).

Ok, fixed hard crash in 8132553553. This still leaves a mess in usercount, but would be tempted to consider this a TODO for now - and check in id-remap how it works, this branch is supposed to have much better ID handling than our current master (which fails in many corner cases on this topic).
Author
Member

Thank you Bastien for your hard work. :)
I think it would be nice that Outliner has the ability to delete such zombie datablocks like orphans too.

Thank you Bastien for your hard work. :) I think it would be nice that Outliner has the ability to delete such zombie datablocks like orphans too.

Added subscriber: @Sergey

Added subscriber: @Sergey

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Sergey Sharybin self-assigned this 2016-05-03 11:16:29 +02:00

Would really consider it a TODO since it's something what never worked really correct and there's ongoing project on improving related areas.

Thanks for the report anyway!

Would really consider it a TODO since it's something what never worked really correct and there's ongoing project on improving related areas. Thanks for the report anyway!
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#47428
No description provided.