Page MenuHome

Blender Safes corrupted files that won't open again
Closed, ArchivedPublic

Description

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce RTX 2070 with Max-Q Design/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.92

Blender Version
Broken: version: 2.92.0, branch: master, commit date: 2021-02-24 16:25, hash: rB02948a2cab44
Worked: (newest version of Blender that worked as expected)

Short description of error
I faced this problem on a mac and windows machine. I work on a file, save from time to time as usual and at some point the file gets corrupted. There is no crash while saving or something like that. The file on the disk just crashes Blender when I want to open it again in Blender.

After some investigation I found out that all data can be appended to a new file except the Scene file. When I Try to append this Blender crashes on the spot.
The same Blender scene got corrupted some hours ago- here I can append the included Scene, but the Objects Crash

Exact steps for others to reproduce the error
I attached a zip with two defect versions of the same scene (in different stages). One seems to be broken on one of the Objects the other on the Scene file.
I was able to open the file "Lego Based-Scene Crashes.blend" with old 2.90 and 2.91 versions (see below)

version: 2.90.1, branch: master, commit date: 2020-09-23 06:43, hash: 3e85bb34d0d7, type: Release
build date: 2020-09-23, 08:36:20
platform: Windows
version: 2.91.2, branch: master, commit date: 2021-01-19 16:15, hash: 5be9ef417703, type: Release
build date: 2021-01-19, 16:25:50
platform: Windows

cheers clemens

Update: I was able to finished the piece in V2.91

Event Timeline

I attached a zip with two defect versions of the same scene...

Cannot see the file, can you please repost them??

Cannot see the file, can you please repost them??

Sorry for that- I uploaded them again to the main post above.

Thank you. Please simplify the file as much as you can . As of now, file is a quite large. (File around ~100mb is fine)

Thank you. Please simplify the file as much as you can . As of now, file is a quite large. (File around ~100mb is fine)

Hi! Simplifying is easier said than done since i can not open the files to delete objects out. And I provided two versions since the error seems to be in different parts of the files.

I found one of the first files where this problem showed up. It was made on an iMac with some 2.9x version and crashes on 2.90, 2.91 and 2.92

Philipp Oeser (lichtwerk) changed the task status from Needs Triage to Needs Information from User.May 7 2021, 6:20 PM

Somehow a couple of meshes got corrupted

You can check by appending your scene into a blank file and run

import bpy
for obj in bpy.data.objects:
    if obj.type == "MESH" and obj.data is not None:
        if obj.data.validate():
            print(f"Error found: object {obj.name} had invalid mesh data!")
Error found: object Leek001 had invalid mesh data!
Error found: object Leek001 had invalid mesh data!

All other objects should append into a blank file without problems. (validating will also fix, so you can change to the fixed scene without crashes then)

Now the question is: how did we get here?
We recently had a couple of reports of mesh corruption, see T86518: collapse at the moment of opening the file or T82353: Blender crashes and destroys my scene

Please check the other reports and try to remember what operations might have caused this.
Unfortunately unless there are clear instructions on how to reproduce it from scratch we cannot debug this any further.
Things that may cause mesh corruption: Importers, development versions of Blender, modeling tools.

Philipp Oeser (lichtwerk) closed this task as Archived.May 21 2021, 1:56 PM

Thanks for the report. Unfortunately unless there are clear instructions on how to reproduce it from scratch we cannot debug this any further.

Things that may cause mesh corruption: Importers, development versions of Blender, modeling tools.