Blender Version
Broken: 04b8b1a167c3
Worked: ?
Short description of error
Any file that has the active workspace with a linked scene leads to crash when opening the file.
Exact steps for others to reproduce the error
- Save default file as copy somewhere
- Link the scene from the saved file in the current file
- Change the workspace scene to the linked scene
- Save this file
- Re-open it - crash
SUMMARY: AddressSanitizer: heap-use-after-free /home/dfelinto/src/blender/blender/source/blender/editors/util/ed_util.c:113 in ED_editors_init
Full ASAN backtrace: P642
Developer notes
The crash happens here:
ViewLayer *view_layer = BKE_view_layer_from_workspace_get(scene, workspace); Object *obact = view_layer ? OBACT(view_layer) : NULL;
It seems view_layer is not NULL yet it is not a valid pointer either.