ID user decrement error for Collections with ID properties in ViewLayer #71250

Closed
opened 2019-10-31 19:18:58 +01:00 by Lukas Stockner · 8 comments
Member

System Information
Operating system: Arch Linux

Blender Version
Broken: Current master (eb95e28635)

Short description of error
When adding a CollectionProperty of Elements that each reference a Collection to ViewLayers, the ID user counter on the Collections will underflow.

This was discovered as part of D3607.

Exact steps for others to reproduce the error

  • Run the attached script in Blender:
    collection_idp_bug.py
  • Go into the View Layer panel
  • Add two Elements in the new subpanel
  • Set each one to point to some Collection
  • Switch between the two elements in the list
  • Observe errors in the console and/or triggered asserts in Debug mode
**System Information** Operating system: Arch Linux **Blender Version** Broken: Current master (eb95e28635) **Short description of error** When adding a CollectionProperty of Elements that each reference a Collection to ViewLayers, the ID user counter on the Collections will underflow. This was discovered as part of [D3607](https://archive.blender.org/developer/D3607). **Exact steps for others to reproduce the error** * Run the attached script in Blender: [collection_idp_bug.py](https://archive.blender.org/developer/F7881424/collection_idp_bug.py) * Go into the View Layer panel * Add two Elements in the new subpanel * Set each one to point to some Collection * Switch between the two elements in the list * Observe errors in the console and/or triggered asserts in Debug mode
Author
Member

Added subscriber: @LukasStockner

Added subscriber: @LukasStockner

Added subscribers: @scorpion81, @juang3d

Added subscribers: @scorpion81, @juang3d

(I will repeat the message here, but it's also in the light groups patch)

In our build the problem is not present, I tried the patch and I get not errors, I don't know if @scorpion81 did actually do a full patch or a workaround, but the problem is not present in our build, I'll leave here the links to the commits that solved the problem, if they are not the actual fix they may be a clue on where the problem is :)

ecf4d166da

64caa97f56

e32d31fbc2

(I will repeat the message here, but it's also in the light groups patch) In our build the problem is not present, I tried the patch and I get not errors, I don't know if @scorpion81 did actually do a full patch or a workaround, but the problem is not present in our build, I'll leave here the links to the commits that solved the problem, if they are not the actual fix they may be a clue on where the problem is :) https://github.com/juangea/boneMaster/commit/ecf4d166dad1bde1bfe67d861e7e17c4af21ec04 https://github.com/juangea/boneMaster/commit/64caa97f563aaf362af8387c8b544c2e6682d338 https://github.com/juangea/boneMaster/commit/e32d31fbc2bb83eb9eea6fd91d22d36b3d3803bf
Author
Member

I can confirm that the first patch fixes the bug.

@scorpion81, could you submit that fix as a patch (so that you get proper credit)?

I can confirm that the first patch fixes the bug. @scorpion81, could you submit that fix as a patch (so that you get proper credit)?
Member

@LukasStockner Hi, feel free to commit the patch :) I am busy with other work and a bit out of the loop atm.

@LukasStockner Hi, feel free to commit the patch :) I am busy with other work and a bit out of the loop atm.

This issue was referenced by 0a554f940308849760f1c8c56c869193f5b6867a

This issue was referenced by 0a554f940308849760f1c8c56c869193f5b6867a

This issue was referenced by ece4515fc8

This issue was referenced by ece4515fc8aadfcb7d18079e40862df38dda44cb
Author
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Lukas Stockner self-assigned this 2019-11-04 15:05:23 +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
4 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#71250
No description provided.