Blender 3.6 crashes when opening 3.5 files with library overrides / shape keys. #112623
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#112623
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows 10
Graphics card: RTX 3080Ti
Blender Version
Broken: 3.6.3 Release Candidate (
71b55b491e
)Worked: 3.5
Short description of error
I recently switched from 3.5 to 3.6 but I noticed that many of my Blender 3.5 .blend files make Blender 3.6 crash whenever I open them. The issue seems to be a null pointer reference in
shapekey_owner_pointer_get
in one of my mesh assets with shape keys. The debug build aborts with a failed assertion:All of my problematic .blend files use library overrides of mesh objects with shape keys. Additionally, some of the included assets were changed (in 3.5, maybe in 3.6).Blender 3.5 simply logs some missing meshes as usual but does not crash. Also these do not include the specific mesh that Blender 3.6 crashes on, that one was unchanged AFAIK. However, after opening and saving in 3.5, I can succesfully open them in 3.6 so the missing meshes may somehow play a role.
Exact steps for others to reproduce the error
I have not been able to reproduce this in a simple setup and I cannot share my production files. However I have bisected and the following commit introduced this behavior:
Edit: Changed
89bd7b64026
(which turned out to be fine) to5f67b25c28b6
.@mont29 So under some circumstances, this fix results in
key->from
beingNULL
inshapekey_owner_pointer_get()
(key.cc:98
). Hopefully this is enough information to solve that. Otherwise I will continue to try and reproduce this in a simple setup and post an example.blend
file.This crash occurs most of the time, but not always. This made bisecting difficult because commits looked
good
that were actuallybad
. Commit89bd7b64026
which was originally reported here turned out to be fine. The commit that introduced this behaviour seems to be5f67b25c28b6
. The issue was edited to reflect this.Thanks for the report, @MKRelax.
While I understand that you are unable to share your production files, it would be helpful if you could try to reproduce the issue in a simplified setup and provide an example .blend file that triggers the crash. This will allow us to investigate the issue more effectively.
@mano-wii I have spent a full day debugging and trying to create a simplified setup, but to no avail. It seems that library overrides are processed in some multitreaded way (or otherwise in a random order) and for some reason the
shapekey_owner_pointer_get()
gets called before the library override for that armature/mesh is processed (or: that processing is skipped for some reason, after whichshapekey_owner_pointer_get()
crashes). It only happens in large, complex files with many library overrides and drivers, shape keys. Whenever I create a simplified setup (or re-save the complex setup), the resulting file loads fine.I'm pretty sure that
5f67b25c28
is the firstbad
commit as I have loaded over 50 files with its previous commitb666d2d1bd
without any crashes and5f67b25c28
crashes about 50% of the time (and Blender 3.6.3 crashes 100% of the time).However I'm not sure why
5f67b25c28
would cause this, as the specific condition it targets (a missing root ID linked reference) is never triggered.Hopefully @mont29 can shine a light on why this might be happening.
For now, I have loaded all of my files in 3.5.1, saved them and I can now open them in 3.6.3 again. I have no more time to investigate this. Feel free to close this issue if the given information is insufficient.
Can't say for sure without checking (am on holidays currently), but pretty confident this is related to recent bug found, where deleting a mesh would not always delete its shapekey data. This was fixed in main a few weeks ago, together with some extra checks/sanitizing code about unowned shapekeys when opening a blendfile. Likely not back-ported to any LTS though.
Will check for a 'safe' fix in 3.6 once am back.
Not having reproducible case makes it fairly difficult to be sure what's happening here, but am going to bet that
eadc54bb5d
can fix the issue, so I will backport it to 3.6LTS, and you can test with the most recent 3.6 build if that works for you.No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed.
Thanks again for the report. If the problem persists please open a new report with the required information.