Assert when deleting duplicated collection (id->us == 0) #57288

Closed
opened 2018-10-18 01:29:56 +02:00 by Dalai Felinto · 8 comments

System Information
Operating system and graphics card

Blender Version
Broken: a2922f9840 (blender2.8 HEAD)
Worked: ?

Short description of error
Assert after removing duplicated collection.

Exact steps for others to reproduce the error

  • In the outliner duplicate the initial collection (i.e., Collection).
  • Now in the outliner still, select and delete this new collection.

BLI_assert failed: //source/blender/blenkernel/intern/library_remap.c:1010, BKE_libblock_delete(), at 'id->us == 0'

Full backtrace: P800

**System Information** Operating system and graphics card **Blender Version** Broken: a2922f98400c (blender2.8 HEAD) Worked: ? **Short description of error** Assert after removing duplicated collection. **Exact steps for others to reproduce the error** * In the outliner duplicate the initial collection (i.e., Collection). * Now in the outliner still, select and delete this new collection. `BLI_assert failed: //source/blender/blenkernel/intern/library_remap.c:1010, BKE_libblock_delete(), at 'id->us == 0'` Full backtrace: [P800](https://archive.blender.org/developer/P800.txt)
Author
Owner

Added subscriber: @dfelinto

Added subscriber: @dfelinto
Brecht Van Lommel was assigned by Dalai Felinto 2018-10-18 01:31:27 +02:00
Author
Owner

Added subscriber: @brecht

Added subscriber: @brecht
Author
Owner

@brecht I can look at it on Friday, if you don't tackle it by then.

@brecht I can look at it on Friday, if you don't tackle it by then.
Author
Owner

Added subscriber: @mont29

Added subscriber: @mont29
Author
Owner

Actually @mont29 what is the point of this assert? The if almost suggest we expect to get there. Unless it is there just for the convenience of the debug print:

if (id->us != 0) {
#ifdef DEBUG_PRINT
    printf("%s: deleting %s (%d)\n", __func__, id->name, id->us);
#endif
    BLI_assert(id->us == 0);
}
Actually @mont29 what is the point of this assert? The if almost suggest we expect to get there. Unless it is there just for the convenience of the debug print: ``` if (id->us != 0) { #ifdef DEBUG_PRINT printf("%s: deleting %s (%d)\n", __func__, id->name, id->us); #endif BLI_assert(id->us == 0); } ```
Brecht Van Lommel was unassigned by Bastien Montagne 2018-10-22 13:51:25 +02:00
Bastien Montagne self-assigned this 2018-10-22 13:51:25 +02:00

@dfelinto ideally this should never happen anymore… but currently 'just' asserting because it's not always critical issue and we can survive it (so not worth killing release Blender over it)

That’s most likely some missing ID pointer handling somewhere, will check.

@dfelinto ideally this should never happen anymore… but currently 'just' asserting because it's not always critical issue and we can survive it (so not worth killing release Blender over it) That’s most likely some missing ID pointer handling somewhere, will check.

This issue was referenced by f927f388f6

This issue was referenced by f927f388f6608cb802b489907ef0c280607d900c

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
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#57288
No description provided.