File corruption due to Electric shutdown #96296

Closed
opened 2022-03-10 14:24:49 +01:00 by Rajendra Meena · 7 comments

System Information
Operating system: Windows-10-10.0.17763-SP0 64 Bits
Graphics card: AMD Radeon(TM) Graphics ATI Technologies Inc. 4.5.14761 Core Profile Context 21.10.2 30.0.13025.5005

Blender Version
Broken: version: 3.0.1, branch: master, commit date: 2022-01-25 17:19, hash: dc2d180181
Worked: (newest version of Blender that worked as expected)

Short description of error
[Blend file get corrupted after electric shut down]

Exact steps for others to reproduce the error
[1. I saved my blender file succesfully after doing some work.
2. Next day, i reopen the file and start doing some work but dut to sudden power cut my pc turned off.
3. Now when i try to reopen the same file, it shows the error "missing block" (as shown in attached image)
4. I agree that my unsaved work will lost but the whole file get corrupted and i lost it completely.
5. even this resets the enabled addon and preference.
6. other software use diffetent file($file) for recent work and seperate file for saved work in. Now,when the user save again then the old saved file get replaced by the new file and another file ($file) created to hold the recent unsaved work. ]
Screenshot (22).png

B try.blend
[Based on the default startup or an attached .blend file (as simple as possible)]

**System Information** Operating system: Windows-10-10.0.17763-SP0 64 Bits Graphics card: AMD Radeon(TM) Graphics ATI Technologies Inc. 4.5.14761 Core Profile Context 21.10.2 30.0.13025.5005 **Blender Version** Broken: version: 3.0.1, branch: master, commit date: 2022-01-25 17:19, hash: `dc2d180181` Worked: (newest version of Blender that worked as expected) **Short description of error** [Blend file get corrupted after electric shut down] **Exact steps for others to reproduce the error** [1. I saved my blender file succesfully after doing some work. 2. Next day, i reopen the file and start doing some work but dut to sudden power cut my pc turned off. 3. Now when i try to reopen the same file, it shows the error "missing block" (as shown in attached image) 4. I agree that my unsaved work will lost but the whole file get corrupted and i lost it completely. 5. even this resets the enabled addon and preference. 6. other software use diffetent file($file) for recent work and seperate file for saved work in. Now,when the user save again then the old saved file get replaced by the new file and another file ($file) created to hold the recent unsaved work. ] ![Screenshot (22).png](https://archive.blender.org/developer/F12919740/Screenshot__22_.png) [B try.blend](https://archive.blender.org/developer/F12919742/B_try.blend) [Based on the default startup or an attached .blend file (as simple as possible)]
Author

Added subscriber: @rajq123

Added subscriber: @rajq123

Added subscriber: @Sergey

Added subscriber: @Sergey

Blender does write file to a temporary file next to the original file, and then removes the old file, renames the new file. This is how situations of running out of disk space during save are ensured to be less problematic. However, Blender if the power outage happens before OS flushed modifications to disk the content might be corrupted.

Once the file is corrupted, don't think it will be possible to recover it.
One thing you can try is to open one of the backup files (the ones with .blend1, .blend2 and so on extension).

Blender does write file to a temporary file next to the original file, and then removes the old file, renames the new file. This is how situations of running out of disk space during save are ensured to be less problematic. However, Blender if the power outage happens before OS flushed modifications to disk the content might be corrupted. Once the file is corrupted, don't think it will be possible to recover it. One thing you can try is to open one of the backup files (the ones with .blend1, .blend2 and so on extension).
Member

Added subscriber: @Imaginer

Added subscriber: @Imaginer

Added subscriber: @mano-wii

Added subscriber: @mano-wii

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

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

The temporary file generated with AutoSave is Blender's way of avoiding losing all your work due to these adverse conditions.
Perhaps this AutoSave feature can be improved for cases like "Electric shutdown".
But the corruption in this case is not really due to a bug in Blender.

So thanks for the report, but this doesn't seem like something we'll be trying to resolve. At least for now.

The temporary file generated with AutoSave is Blender's way of avoiding losing all your work due to these adverse conditions. Perhaps this AutoSave feature can be improved for cases like "Electric shutdown". But the corruption in this case is not really due to a bug in Blender. So thanks for the report, but this doesn't seem like something we'll be trying to resolve. At least for now.
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#96296
No description provided.