Constraint missing after save and reopen the blend file (fixed in 2.90 - request to backport to LTS) #80125

Closed
opened 2020-08-26 08:45:21 +02:00 by Aditia A. Pratama · 14 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 965M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 452.06

Blender Version
Broken: version: 2.83.5, branch: master, commit date: 2020-08-19 06:07, hash: c2b144df39
Worked: I've tested on blender 2.82a it's working fine, and also blender 2.90 beta also working as expected

Short description of error
If we save the blend file and reopen, the constraint will be missing.
image.png image.png

Exact steps for others to reproduce the error
[Please describe the exact steps needed to reproduce the issue]
[Based on the default startup or an attached .blend file (as simple as possible)]
constraint-missing-after-save.zip

  • With the zip file above, extract it and you'll find EP25_SC01_SH056_v4-using-save-as-in.2.83.5.blend
  • Try open with blender 2.83.5 and try following :
    • [save as] another blend file -> [save] again just once -> reopen the blend file -> constraint will preserves
    • [Save as] another blend file -> reopen the blend file -> constraint will missing

    just [save] without [save as] -> reopen the blend file -> constraint will missing

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce GTX 965M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 452.06 **Blender Version** Broken: version: 2.83.5, branch: master, commit date: 2020-08-19 06:07, hash: `c2b144df39` Worked: I've tested on blender 2.82a it's working fine, and also blender 2.90 beta also working as expected **Short description of error** If we save the blend file and reopen, the constraint will be missing. ![image.png](https://archive.blender.org/developer/F8811604/image.png) ![image.png](https://archive.blender.org/developer/F8811608/image.png) **Exact steps for others to reproduce the error** [Please describe the exact steps needed to reproduce the issue] [Based on the default startup or an attached .blend file (as simple as possible)] [constraint-missing-after-save.zip](https://archive.blender.org/developer/F8811594/constraint-missing-after-save.zip) - With the zip file above, extract it and you'll find `EP25_SC01_SH056_v4-using-save-as-in.2.83.5.blend` - Try open with blender 2.83.5 and try following : - [save as] another blend file -> [save] again just once -> reopen the blend file -> constraint will preserves - [Save as] another blend file -> reopen the blend file -> constraint will missing # just [save] without [save as] -> reopen the blend file -> constraint will missing
Author
Member

Added subscriber: @AditiaA.Pratama

Added subscriber: @AditiaA.Pratama
Member

Added subscribers: @Jeroen-Bakker, @lichtwerk

Added subscribers: @Jeroen-Bakker, @lichtwerk
Member

Can confirm, will dig up the commit that might need to be backported here.

CC @Jeroen-Bakker

Can confirm, will dig up the commit that might need to be backported here. CC @Jeroen-Bakker
Philipp Oeser changed title from Constraint missing after save and reopen the blend file to Constraint missing after save and reopen the blend file (fixed in 2.90 - request to backport to LTS) 2020-08-26 13:48:57 +02:00
Member

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

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

Hi @AditiaA.Pratama

You mention that it is broken in 2.83.5, have you tested if it was also broken in other versions of 2.83? It narrows our search to know if it is a new regression or wasn't at all working in 2.83.

Hi @AditiaA.Pratama You mention that it is broken in 2.83.5, have you tested if it was also broken in other versions of 2.83? It narrows our search to know if it is a new regression or wasn't at all working in 2.83.
Author
Member

@Jeroen-Bakker We stumble this issue since we upgrade to 2.83 LTS, but I'll run a test on other 2.83 version as well and report here.

@Jeroen-Bakker We stumble this issue since we upgrade to 2.83 LTS, but I'll run a test on other 2.83 version as well and report here.
Member

For me, this is already broken in 2.83.0
In 2.90 this was fixed somewhere between 9f5cc128d9 and f2b5f731d5

For me, this is already broken in 2.83.0 In 2.90 this was fixed somewhere between 9f5cc128d9 and f2b5f731d5
Member

Looks like fd8d245e6a "fixed" the issue.

Looks like fd8d245e6a "fixed" the issue.
Member

Added subscriber: @mont29

Added subscriber: @mont29
Member

Note: looks like (as a workaround), you can call

D.objects['Roti_Doh_4_RIG'].override_library.auto_generate = True

then save and everything seems fine here then in 2.83.0 and 2.83.5.

maybe @mont29 can comment here if fd8d245e6a is suitable to backport or if other commits would be necessary to make this work reliably? (or if it is safe to just set auto_generate to True on everything in older versions?)

Note: looks like (as a workaround), you can call ``` D.objects['Roti_Doh_4_RIG'].override_library.auto_generate = True ``` then save and everything seems fine here then in 2.83.0 and 2.83.5. maybe @mont29 can comment here if fd8d245e6a is suitable to backport or if other commits would be necessary to make this work reliably? (or if it is safe to just set `auto_generate` to True on everything in older versions?)
Author
Member

ah noted @lichtwerk, let me check, maybe this is good as temporary solution

ah noted @lichtwerk, let me check, maybe this is good as temporary solution
Author
Member

so this is script that I've come up with

import bpy

def temp_fix_childof():
    objs = bpy.data.objects
    arms = [o for o in objs if o.type == 'ARMATURE' and o.override_library]
    for arm in arms:
        arm.override_library.auto_generate = True
        
temp_fix_childof()
so this is script that I've come up with ``` import bpy def temp_fix_childof(): objs = bpy.data.objects arms = [o for o in objs if o.type == 'ARMATURE' and o.override_library] for arm in arms: arm.override_library.auto_generate = True temp_fix_childof() ```

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Bastien Montagne self-assigned this 2020-08-27 17:20:12 +02:00

This specific commit will certainly never make it to 2.83, it´s a behavioral/feature change commit, not a fix at all. It might have hidden the issue somehow, but certainly not fixed it.

Unless someone can chase the actual fix in recent codebase, and that fix is safe enough for LTS (but there is very little chance for that, afaik all safe-enough fixes have already been backported to LTS in data/IO area of code), this will never be fixed in 2.83.

Since it is not a problem in current master, will consider this as fixed, thanks for the report anyway.

This specific commit will certainly never make it to 2.83, it´s a behavioral/feature change commit, not a fix at all. It might have hidden the issue somehow, but certainly not fixed it. Unless someone can chase the actual fix in recent codebase, and that fix is safe enough for LTS (but there is very little chance for that, afaik all safe-enough fixes have already been backported to LTS in data/IO area of code), this will never be fixed in 2.83. Since it is not a problem in current master, will consider this as fixed, thanks for the report anyway.
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#80125
No description provided.