Crash When Undoing Library Override of Armature Data #78172

Closed
opened 2020-06-23 19:43:11 +02:00 by Daniel Houghton · 9 comments

System Information
Operating system: Darwin-19.5.0-x86_64-i386-64bit 64 Bits
Graphics card: AMD Radeon Pro 5500M OpenGL Engine ATI Technologies Inc. 4.1 ATI-3.9.15

Blender Version
Broken: version: 2.83.0, branch: master, commit date: 2020-06-03 14:38, hash: 211b6c29f7
Worked: (newest version of Blender that worked as expected)

Short description of error
I was trying out the Library Overrides system and realized that I couldn't turn on the "In Front" Viewport Display option after I linked in a character and started animating (by making a library override of the rig). Both the Object level "In Front" and the Armature level "In Front" are grayed out with the message "Disabled: Can't edit this property from an override data block"

At the Armature level I noticed that the rig was still "direct linked" (i.e. not using an override), so I thought I would try Shift-Clicking the chain-link icon next to the Armature name to add an override their too to see if that would let me make the rig draw "In Front" but the checkbox remained grayed out, so I hit Undo.

That's when Blender Crashed.

Exact steps for others to reproduce the error

  1. From the default scene, delete everything and add an Armature Object.
  2. Save the file as character.blend
  3. Make a new default scene, delete everything and link in the one and only Collection from test_character.blend
  4. Save this file as shot.blend
  5. Add a library override and choose the Armature as the thing to override.
  6. Go to the Armature tab in the Properties Editor
  7. Shift Click the chain-link icon to add a Library Override.
  8. Undo

I've tested this with a small team of 3, all on PCs and everyone experienced the same crash at the moment of undo.

**System Information** Operating system: Darwin-19.5.0-x86_64-i386-64bit 64 Bits Graphics card: AMD Radeon Pro 5500M OpenGL Engine ATI Technologies Inc. 4.1 ATI-3.9.15 **Blender Version** Broken: version: 2.83.0, branch: master, commit date: 2020-06-03 14:38, hash: `211b6c29f7` Worked: (newest version of Blender that worked as expected) **Short description of error** I was trying out the Library Overrides system and realized that I couldn't turn on the "In Front" Viewport Display option after I linked in a character and started animating (by making a library override of the rig). Both the Object level "In Front" and the Armature level "In Front" are grayed out with the message "Disabled: Can't edit this property from an override data block" At the Armature level I noticed that the rig was still "direct linked" (i.e. not using an override), so I thought I would try Shift-Clicking the chain-link icon next to the Armature name to add an override their too to see if that would let me make the rig draw "In Front" but the checkbox remained grayed out, so I hit Undo. That's when Blender Crashed. **Exact steps for others to reproduce the error** 1) From the default scene, delete everything and add an Armature Object. 2) Save the file as character.blend 3) Make a new default scene, delete everything and link in the one and only Collection from test_character.blend 4) Save this file as shot.blend 5) Add a library override and choose the Armature as the thing to override. 6) Go to the Armature tab in the Properties Editor 7) Shift Click the chain-link icon to add a Library Override. 8) Undo I've tested this with a small team of 3, all on PCs and everyone experienced the same crash at the moment of undo.
Author
Member

Added subscriber: @DanielHoughton

Added subscriber: @DanielHoughton
Member

Added subscribers: @mont29, @HooglyBoogly

Added subscribers: @mont29, @HooglyBoogly
Member

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

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

Hi Daniel! I hope it's going well.

Now I can triage your bug ; )

I can reproduce this in 2.90. I actually get the same crash if I click (no shift) on the button just to make the armature local.

Here's the call stack.

ED_editors_exit(Main * bmain, _Bool do_undo_system) (/home/hans/Documents/Blender-Git/blender/source/blender/editors/util/ed_util.c:221)
memfile_undosys_step_decode(struct bContext * C, struct Main * bmain, UndoStep * us_p, int undo_direction, _Bool UNUSED_is_final) (/home/hans/Documents/Blender-Git/blender/source/blender/editors/undo/memfile_undo.c:187)
undosys_step_decode(bContext * C, Main * bmain, UndoStack * ustack, UndoStep * us, int dir, _Bool is_final) (/home/hans/Documents/Blender-Git/blender/source/blender/blenkernel/intern/undo_system.c:210)
BKE_undosys_step_undo_with_data_ex(UndoStack * ustack, bContext * C, UndoStep * us, _Bool use_skip) (/home/hans/Documents/Blender-Git/blender/source/blender/blenkernel/intern/undo_system.c:714)
BKE_undosys_step_undo_with_data(UndoStack * ustack, bContext * C, UndoStep * us) (/home/hans/Documents/Blender-Git/blender/source/blender/blenkernel/intern/undo_system.c:725)
BKE_undosys_step_undo(UndoStack * ustack, bContext * C) (/home/hans/Documents/Blender-Git/blender/source/blender/blenkernel/intern/undo_system.c:730)
ed_undo_step_impl(bContext * C, int step, const char * undoname, int undo_index, ReportList * reports) (/home/hans/Documents/Blender-Git/blender/source/blender/editors/undo/ed_undo.c:199)
ed_undo_step_direction(bContext * C, int step, ReportList * reports) (/home/hans/Documents/Blender-Git/blender/source/blender/editors/undo/ed_undo.c:263)
ed_undo_exec(bContext * C, wmOperator * op) (/home/hans/Documents/Blender-Git/blender/source/blender/editors/undo/ed_undo.c:399)
wm_operator_invoke(bContext * C, wmOperatorType * ot, wmEvent * event, PointerRNA * properties, ReportList * reports, const _Bool poll_only, _Bool use_last_properties) (/home/hans/Documents/Blender-Git/blender/source/blender/windowmanager/intern/wm_event_system.c:1296)
wm_handler_operator_call(bContext * C, ListBase * handlers, wmEventHandler * handler_base, wmEvent * event, PointerRNA * properties, const char * kmi_idname) (/home/hans/Documents/Blender-Git/blender/source/blender/windowmanager/intern/wm_event_system.c:2116)
wm_handlers_do_keymap_with_keymap_handler(bContext * C, wmEvent * event, ListBase * handlers, wmEventHandler_Keymap * handler, wmKeyMap * keymap, const _Bool do_debug_handler) (/home/hans/Documents/Blender-Git/blender/source/blender/windowmanager/intern/wm_event_system.c:2426)
wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) (/home/hans/Documents/Blender-Git/blender/source/blender/windowmanager/intern/wm_event_system.c:2727)
wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) (/home/hans/Documents/Blender-Git/blender/source/blender/windowmanager/intern/wm_event_system.c:2854)
wm_event_do_handlers(bContext * C) (/home/hans/Documents/Blender-Git/blender/source/blender/windowmanager/intern/wm_event_system.c:3392)
WM_main(bContext * C) (/home/hans/Documents/Blender-Git/blender/source/blender/windowmanager/intern/wm.c:475)
main(int argc, const char ** argv) (/home/hans/Documents/Blender-Git/blender/source/creator/creator.c:532)
Hi Daniel! I hope it's going well. Now I can triage your bug ; ) I can reproduce this in 2.90. I actually get the same crash if I click (no shift) on the button just to make the armature local. Here's the call stack. ```lines=5 ED_editors_exit(Main * bmain, _Bool do_undo_system) (/home/hans/Documents/Blender-Git/blender/source/blender/editors/util/ed_util.c:221) memfile_undosys_step_decode(struct bContext * C, struct Main * bmain, UndoStep * us_p, int undo_direction, _Bool UNUSED_is_final) (/home/hans/Documents/Blender-Git/blender/source/blender/editors/undo/memfile_undo.c:187) undosys_step_decode(bContext * C, Main * bmain, UndoStack * ustack, UndoStep * us, int dir, _Bool is_final) (/home/hans/Documents/Blender-Git/blender/source/blender/blenkernel/intern/undo_system.c:210) BKE_undosys_step_undo_with_data_ex(UndoStack * ustack, bContext * C, UndoStep * us, _Bool use_skip) (/home/hans/Documents/Blender-Git/blender/source/blender/blenkernel/intern/undo_system.c:714) BKE_undosys_step_undo_with_data(UndoStack * ustack, bContext * C, UndoStep * us) (/home/hans/Documents/Blender-Git/blender/source/blender/blenkernel/intern/undo_system.c:725) BKE_undosys_step_undo(UndoStack * ustack, bContext * C) (/home/hans/Documents/Blender-Git/blender/source/blender/blenkernel/intern/undo_system.c:730) ed_undo_step_impl(bContext * C, int step, const char * undoname, int undo_index, ReportList * reports) (/home/hans/Documents/Blender-Git/blender/source/blender/editors/undo/ed_undo.c:199) ed_undo_step_direction(bContext * C, int step, ReportList * reports) (/home/hans/Documents/Blender-Git/blender/source/blender/editors/undo/ed_undo.c:263) ed_undo_exec(bContext * C, wmOperator * op) (/home/hans/Documents/Blender-Git/blender/source/blender/editors/undo/ed_undo.c:399) wm_operator_invoke(bContext * C, wmOperatorType * ot, wmEvent * event, PointerRNA * properties, ReportList * reports, const _Bool poll_only, _Bool use_last_properties) (/home/hans/Documents/Blender-Git/blender/source/blender/windowmanager/intern/wm_event_system.c:1296) wm_handler_operator_call(bContext * C, ListBase * handlers, wmEventHandler * handler_base, wmEvent * event, PointerRNA * properties, const char * kmi_idname) (/home/hans/Documents/Blender-Git/blender/source/blender/windowmanager/intern/wm_event_system.c:2116) wm_handlers_do_keymap_with_keymap_handler(bContext * C, wmEvent * event, ListBase * handlers, wmEventHandler_Keymap * handler, wmKeyMap * keymap, const _Bool do_debug_handler) (/home/hans/Documents/Blender-Git/blender/source/blender/windowmanager/intern/wm_event_system.c:2426) wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) (/home/hans/Documents/Blender-Git/blender/source/blender/windowmanager/intern/wm_event_system.c:2727) wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) (/home/hans/Documents/Blender-Git/blender/source/blender/windowmanager/intern/wm_event_system.c:2854) wm_event_do_handlers(bContext * C) (/home/hans/Documents/Blender-Git/blender/source/blender/windowmanager/intern/wm_event_system.c:3392) WM_main(bContext * C) (/home/hans/Documents/Blender-Git/blender/source/blender/windowmanager/intern/wm.c:475) main(int argc, const char ** argv) (/home/hans/Documents/Blender-Git/blender/source/creator/creator.c:532) ```
Author
Member

Hi Hans!

We're trying out Library Overrides!
I was about to ask Sabrina, our rigger, to just turn on "In Front" in each of the character files, but then I started wondering if any of this could be useful given all the work going into the Undo System overhaul, so the whole studio got together on Zoom and we all reproduced the crash and submitted the bug report together!

Hi from swelteringly hot Vermont!

Hi Hans! We're trying out Library Overrides! I was about to ask Sabrina, our rigger, to just turn on "In Front" in each of the character files, but then I started wondering if any of this could be useful given all the work going into the Undo System overhaul, so the whole studio got together on Zoom and we all reproduced the crash and submitted the bug report together! Hi from swelteringly hot Vermont!
Bastien Montagne self-assigned this 2020-06-24 12:29:42 +02:00

Those handlers from UI buttons just do not define any undo step... Bad in absolute, and critical with new undo system.

Those handlers from UI buttons just do not define any undo step... Bad in absolute, and critical with new undo system.

This issue was referenced by 3de9efdc9e

This issue was referenced by 3de9efdc9e1c2a04468cc36d575b83f882bce1a4

This issue was referenced by 6f5a9dd8de

This issue was referenced by 6f5a9dd8dea8a20e9ca298bb713786a247b9c9d3

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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 & 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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
Asset System
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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#78172
No description provided.