Blender deleted my entire projects folder #112381

Closed
opened 2023-09-14 15:03:44 +02:00 by rlen · 3 comments

System Information
Operating system: Windows 11
Graphics card: Nvidia GTX 1080 TI

Blender Version
Broken: 3.6.2, e53e55951e, blender-v3.6-release, 2023-08-16
Worked: 3.5.1, e1ccd9d4a1, blender-v3.5-release, 2023-04-24

While working with a scene, I baked my simulation nodes. About a day and a few saves, I wanted to modify the nodes for a different look. I clicked the trash can next to "Bake" (in the physics tab, under "Simulation Nodes"), the program halted for a bit, then crashed. When I went to load the file back up, I discovered that not only the file was vaporized, but it's parent directory along with it, causing me to lose months of work.

Exact steps for others to reproduce the error
Based on the default startup or an attached .blend file (as simple as possible).

Since the evidence was destroyed, I cannot give complete details.

First, create a project in Blender 3.5.1. Create a scene with some meshes, shaders, add some textures, yadda yadda. Make sure the scene is about 4 minutes and 38 seconds long. Then, discover Simulation Nodes and install Blender 3.6.2. Open the original scene in the new Blender version. Do some stuff with SimNodes on a couple meshes. Bake them. Do some more tinkering with the nodes and then decide you want to re-bake to make your changes. Click the trash can next to "Bake" in the Physics tab for one of the meshes. Watch as all of your work is decimated by one programming error.

**System Information** Operating system: Windows 11 Graphics card: Nvidia GTX 1080 TI **Blender Version** Broken: 3.6.2, e53e55951e7a, blender-v3.6-release, 2023-08-16 Worked: 3.5.1, e1ccd9d4a1d3, blender-v3.5-release, 2023-04-24 While working with a scene, I baked my simulation nodes. About a day and a few saves, I wanted to modify the nodes for a different look. I clicked the trash can next to "Bake" (in the physics tab, under "Simulation Nodes"), the program halted for a bit, then crashed. When I went to load the file back up, I discovered that not only the file was vaporized, but it's parent directory along with it, causing me to lose months of work. **Exact steps for others to reproduce the error** Based on the default startup or an attached .blend file (as simple as possible). Since the evidence was destroyed, I cannot give complete details. First, create a project in Blender 3.5.1. Create a scene with some meshes, shaders, add some textures, yadda yadda. Make sure the scene is about 4 minutes and 38 seconds long. Then, discover Simulation Nodes and install Blender 3.6.2. Open the original scene in the new Blender version. Do some stuff with SimNodes on a couple meshes. Bake them. Do some more tinkering with the nodes and then decide you want to re-bake to make your changes. Click the trash can next to "Bake" in the Physics tab for one of the meshes. Watch as all of your work is decimated by one programming error.
rlen added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-09-14 15:03:45 +02:00

Thanks for the report, @rlen. Losing months of work can be incredibly frustrating.

From what I could observe of the "Delete Cached Simulation" operator, it only deletes the directories related to the specified in the modifier.

I tested one of the examples at https://www.blender.org/download/demo-files/#simulation. And the deleted directories were:
C:\Users\Germano Cavalcante\Downloads\blendcache_recording_01\sim_Cube_GeometryNodes\920782997\meta
C:\Users\Germano Cavalcante\Downloads\blendcache_recording_01\sim_Cube_GeometryNodes\920782997\blobs
C:\Users\Germano Cavalcante\Downloads\blendcache_recording_01\sim_Cube_GeometryNodes\920782997
C:\Users\Germano Cavalcante\Downloads\blendcache_recording_01\sim_Cube_GeometryNodes

Note that for sim_Cube_GeometryNodes, it still checks if the directory is empty first.

(Strange that even though BLI_delete was called, I still see those files here).

Could it be that this function is unsafe in some way?

I feel like we need information from the developers...

The code for the "Delete Cached Simulation" operator was added in 0de54b84c6 by @JacquesLucke

Thanks for the report, @rlen. Losing months of work can be incredibly frustrating. From what I could observe of the "Delete Cached Simulation" operator, it only deletes the directories related to the specified in the modifier. I tested one of the examples at https://www.blender.org/download/demo-files/#simulation. And the deleted directories were: `C:\Users\Germano Cavalcante\Downloads\blendcache_recording_01\sim_Cube_GeometryNodes\920782997\meta` `C:\Users\Germano Cavalcante\Downloads\blendcache_recording_01\sim_Cube_GeometryNodes\920782997\blobs` `C:\Users\Germano Cavalcante\Downloads\blendcache_recording_01\sim_Cube_GeometryNodes\920782997` `C:\Users\Germano Cavalcante\Downloads\blendcache_recording_01\sim_Cube_GeometryNodes` Note that for `sim_Cube_GeometryNodes`, it still checks if the directory is empty first. (Strange that even though `BLI_delete` was called, I still see those files here). Could it be that this function is unsafe in some way? I feel like we need information from the developers... The code for the "Delete Cached Simulation" operator was added in 0de54b84c6 by @JacquesLucke
Member

I think what is reported here was fixed in 101abc6f6c. I thought it was backported already, but looks like it wasn't... I added the commit to #109399.

Afaik, the issue can only happen when you set a custom bake directory and make it the root folder of your project instead of sum subfolder.

I'm sorry for the loss of your work...

I think what is reported here was fixed in 101abc6f6cfc49eb239e2536d25f32eb1ceab492. I thought it was backported already, but looks like it wasn't... I added the commit to #109399. Afaik, the issue can only happen when you set a custom bake directory and make it the root folder of your project instead of sum subfolder. I'm sorry for the loss of your work...

Thanks for the info. In fact it seems to be related to the problem described here.
Maybe it would be a good idea to have greater transparency on what is to be deleted.
But that would be an improvement and not a bug fix.
Closing then.

Thanks for the info. In fact it seems to be related to the problem described here. Maybe it would be a good idea to have greater transparency on what is to be deleted. But that would be an improvement and not a bug fix. Closing then.
Blender Bot added
Status
Archived
and removed
Status
Needs Info from Developers
labels 2023-09-14 21:50:03 +02:00
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
3 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#112381
No description provided.