Library Override: crash when adding a mesh to an overriden collection (after save/reload of the blend file) #71106

Closed
opened 2019-10-25 19:14:21 +02:00 by Luc Revardel · 5 comments

System Information
Operating system: Windows-10-10.0.17763 64 Bits
Graphics card: GeForce GTX 980/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 417.35

Blender Version
Broken: version: 2.81 (sub 15), branch: master, commit date: 2019-10-22 15:34, hash: ac18c3c28d
Worked: (optional)

Short description of error
When reloading a file containing a library override for a collection and when this collection is the "active" collection, any attempt to add a mesh to this colletion causes a crash.

Exact steps for others to reproduce the error
1- open blender
2- link collection "CollectionCube" from "overrideLib.blend"
overrideLib.blend
3- create an override for armature "ArmatureCube"
4- click on the collection "CollectionCube" (make it the active collection)
image.png
5- save the file
6- reopen the saved file
7- try to add a mesh (i.e. plane) => crash

Note: does not crash is file is not saved/reloaded (steps 5&6)

Crashes at:
blender.exe!BKE_view_layer_base_select_and_set_active(ViewLayer * view_layer, Base * selbase) Ligne 356 C
blender.exe!BKE_object_add(Main * bmain, Scene * UNUSED_scene, ViewLayer * view_layer, int type, const unsigned char * name) Ligne 887 C
blender.exe!ED_object_add_type(bContext * C, int type, const unsigned char * name, const float * loc, const float * rot, bool enter_editmode, unsigned short local_view_bits) Ligne 480 C

due to NULL selbase passed to BKE_view_layer_base_select_and_set_active()

**System Information** Operating system: Windows-10-10.0.17763 64 Bits Graphics card: GeForce GTX 980/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 417.35 **Blender Version** Broken: version: 2.81 (sub 15), branch: master, commit date: 2019-10-22 15:34, hash: `ac18c3c28d` Worked: (optional) **Short description of error** When reloading a file containing a library override for a collection and when this collection is the "active" collection, any attempt to add a mesh to this colletion causes a crash. **Exact steps for others to reproduce the error** 1- open blender 2- link collection "CollectionCube" from "overrideLib.blend" [overrideLib.blend](https://archive.blender.org/developer/F7856724/overrideLib.blend) 3- create an override for armature "ArmatureCube" 4- click on the collection "CollectionCube" (make it the active collection) ![image.png](https://archive.blender.org/developer/F7856720/image.png) 5- save the file 6- reopen the saved file 7- try to add a mesh (i.e. plane) => crash Note: does not crash is file is not saved/reloaded (steps 5&6) Crashes at: blender.exe!BKE_view_layer_base_select_and_set_active(ViewLayer * view_layer, Base * selbase) Ligne 356 C blender.exe!BKE_object_add(Main * bmain, Scene * UNUSED_scene, ViewLayer * view_layer, int type, const unsigned char * name) Ligne 887 C blender.exe!ED_object_add_type(bContext * C, int type, const unsigned char * name, const float * loc, const float * rot, bool enter_editmode, unsigned short local_view_bits) Ligne 480 C due to NULL selbase passed to BKE_view_layer_base_select_and_set_active()
Author

Added subscriber: @luc

Added subscriber: @luc
Author

Sorry, looks like a duplicate of #71030 (I didn't find it when I started to document the repro steps).
Looks also to be the explanation for #70949 (closed, Invalid)

Sorry, looks like a duplicate of #71030 (I didn't find it when I started to document the repro steps). Looks also to be the explanation for #70949 (closed, Invalid)
Member

Closed as duplicate of #71030

Closed as duplicate of #71030
Author

Removed subscriber: @luc

Removed subscriber: @luc

Added subscriber: @lrevardel

Added subscriber: @lrevardel
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#71106
No description provided.