VSE seems to delete blend files after opening and sometimes after saving. #84341

Closed
opened 2021-01-03 08:29:10 +01:00 by Andrew Dobson · 23 comments

System Information
Operating system: Linux-5.4.0-58-generic-x86_64-with-debian-bullseye-sid 64 Bits
Graphics card: GeForce GTX 1650/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 450.80.02

Blender Version
Broken: version: 2.91.0, branch: master, commit date: 2020-11-25 08:34, hash: 0f45cab862
Worked: (newest version of Blender that worked as expected)

Short description of error
VSE seems to delete blend files after opening and sometimes after saving.

Exact steps for others to reproduce the error
After opening a VSE .blend file containing large (4 hr) video files the .blend file is removed from the working directory.
Sometimes these .blend files are also deleted sometime after saving
On save and exit from Blender via the File --> Exit the .blend file is missing and must be recovered on the next session start

All files are in the same directory Blender should have adequate permissions.

Errors reported:
On save:
Unable to make version backup
Version backup failed (file saved with @)

**System Information** Operating system: Linux-5.4.0-58-generic-x86_64-with-debian-bullseye-sid 64 Bits Graphics card: GeForce GTX 1650/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 450.80.02 **Blender Version** Broken: version: 2.91.0, branch: master, commit date: 2020-11-25 08:34, hash: `0f45cab862` Worked: (newest version of Blender that worked as expected) **Short description of error** VSE seems to delete blend files after opening and sometimes after saving. **Exact steps for others to reproduce the error** After opening a VSE .blend file containing large (4 hr) video files the .blend file is removed from the working directory. Sometimes these .blend files are also deleted sometime after saving On save and exit from Blender via the File --> Exit the .blend file is missing and must be recovered on the next session start All files are in the same directory Blender should have adequate permissions. Errors reported: On save: Unable to make version backup Version backup failed (file saved with @)
Author

Added subscriber: @Magdes

Added subscriber: @Magdes

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

Thanks for the report, but I fear this can't be triaged as a complete bug report :
For the development team to be able to help, there needs to be reproducible steps (start blender, press this, then that ...).
Reports without steps for others to reproduce the error take a long time to be investigated, so priority is given to other reports.

After each save, blender create a backup file .blend1 are you working on a backup file?

Thanks for the report, but I fear this can't be triaged as a complete bug report :\ For the development team to be able to help, there needs to be reproducible steps (start blender, press this, then that ...). Reports without steps for others to reproduce the error take a long time to be investigated, so priority is given to other reports. After each save, blender create a backup file `.blend1` are you working on a backup file?

Added subscriber: @iss

Added subscriber: @iss

I think I can reproduce this with disk cache enabled if .blend file is located in same path as disk cache is.

@Magdes Click on Edit > Preferences, then in preferences window go to System tab and expand Video Sequencer panel
Check if Use Disk Cache is enabled

If it is enabled check if Directory is same as path to .blend file

Disk cache subdir has same name as .blend file, if there is no versioning file in that directory doesn't have versioning file cache will try to remove it with BLI_delete(path, false, true).
Attempt to delete file with this function fails on Windows, because it expects directory, I will check on Linux as well.

Disk cache directory is meant to be system wide directory dedicated only for cache, and it shouldn't contain .blend files. So not sure if this would be bug or not strictly speaking.
I would say that it definitely shouldn't delete .blend files though.

I think I can reproduce this with disk cache enabled if .blend file is located in same path as disk cache is. @Magdes Click on Edit > Preferences, then in preferences window go to System tab and expand Video Sequencer panel Check if Use Disk Cache is enabled If it is enabled check if Directory is same as path to .blend file Disk cache subdir has same name as .blend file, if there is no versioning file in that directory doesn't have versioning file cache will try to remove it with `BLI_delete(path, false, true)`. Attempt to delete file with this function fails on Windows, because it expects directory, I will check on Linux as well. Disk cache directory is meant to be system wide directory dedicated only for cache, and it shouldn't contain .blend files. So not sure if this would be bug or not strictly speaking. I would say that it definitely shouldn't delete .blend files though.
Author

Added subscribers: @Germano, @richard-27

Added subscribers: @Germano, @richard-27
Author

I do have Use Disk Cache enabled and it was pointing at another directory. I've changed it to point to the same directory as the blend files.

The problem manifests slightly differently now.

Updated steps to reproduce the issue with the directory change mentioned above:

Starting condition: blend file in the same directory as the disk cache, no other files in the directory at blender start

  • Start blender
  • Click on blend file from the launch menu recent files list (my file is x008.blend)
  • In the file explorer x008.blend gets turned into a folder
  • Saving the file without changes (ctrl + s) results in the blend file being turned into a directory and renamed to x008.blend1 and a new regular blend file called x008.blend being created
  • Saving the file again creates another new file called x008.blend@ and an error: Version backup failed (file saved with @)
  • Quitting and clicking on x008.blend in the launch menu recent files list results in the following error: File format is not supported in file '/pathtofile/x008.blend'
  • File > recover last session doesn't work
  • File > recover > autosave > quit.blend does work

Launching by clicking on x008.blend@ in the file explorer does work, but now I'm in a loop that will append @ to my file extension after my second save attempt (x008.blend@@, x008.blend@@@ etc...)

Thanks again for your help @Germano Cavalcante (mano-wii) and @richard-27 Antalik (ISS)

I do have Use Disk Cache enabled and it was pointing at another directory. I've changed it to point to the same directory as the blend files. The problem manifests slightly differently now. Updated steps to reproduce the issue with the directory change mentioned above: Starting condition: blend file in the same directory as the disk cache, no other files in the directory at blender start - Start blender - Click on blend file from the launch menu recent files list (my file is x008.blend) - In the file explorer x008.blend gets turned into a folder - Saving the file without changes (ctrl + s) results in the blend file being turned into a directory and renamed to x008.blend1 and a new regular blend file called x008.blend being created - Saving the file again creates another new file called x008.blend@ and an error: Version backup failed (file saved with @) - Quitting and clicking on x008.blend in the launch menu recent files list results in the following error: File format is not supported in file '/pathtofile/x008.blend' - File > recover last session doesn't work - File > recover > autosave > quit.blend does work # Launching by clicking on x008.blend@ in the file explorer does work, but now I'm in a loop that will append @ to my file extension after my second save attempt (x008.blend@@, x008.blend@@@ etc...) Thanks again for your help @Germano Cavalcante (mano-wii) and @richard-27 Antalik (ISS)

Removed subscriber: @richard-27

Removed subscriber: @richard-27

@Magdes Thanks for information.

Turning file into folder is not very good either, and I will make fix for that.

Now I would like to check your original problem again, when disk cache directory was not same as path to .blend file.

Can you check if .blend file will get deleted if you disable disk cache?

@Magdes Thanks for information. Turning file into folder is not very good either, and I will make fix for that. Now I would like to check your original problem again, when disk cache directory was **not same** as path to .blend file. Can you check if .blend file will get deleted if you disable disk cache?
Author

I've tried a few different directories on different physical disks, but I am unable to reproduce the original behaviour. I am still seeing the .blend file to directory and blend file to blend file@ problems though.

I've tried a few different directories on different physical disks, but I am unable to reproduce the original behaviour. I am still seeing the .blend file to directory and blend file to blend file@ problems though.

I think this is problem unrelated to sequencer. I thought about disk cache, only because it uses .blend file name in it's path and it does delete files, but issue there is different.

In #84341#1098483, @Magdes wrote:
I've tried a few different directories on different physical disks, but I am unable to reproduce the original behaviour. I am still seeing the .blend file to directory and blend file to blend file@ problems though.

Provide as much information as you can, that is provide .blend file you have problems with, go to directory of .blend file in console and run pwd; echo test > test.txt; mv test.txt test.txt1; ls -al; rm test.txt1 and paste output here.
Do you have this problem with all .blend files in all locations?
Do you have problems whe you create new .blend file? Or does Blender behave normally in some case?

Also check if this is regression in 2.91 - try checking older releases down to 2.79 from https://download.blender.org/release/
And check latest alpha as well https://builder.blender.org/download/

I think this is problem unrelated to sequencer. I thought about disk cache, only because it uses .blend file name in it's path and it does delete files, but issue there is different. > In #84341#1098483, @Magdes wrote: > I've tried a few different directories on different physical disks, but I am unable to reproduce the original behaviour. I am still seeing the .blend file to directory and blend file to blend file@ problems though. Provide as much information as you can, that is provide .blend file you have problems with, go to directory of .blend file in console and run `pwd; echo test > test.txt; mv test.txt test.txt1; ls -al; rm test.txt1` and paste output here. Do you have this problem with all .blend files in all locations? Do you have problems whe you create new .blend file? Or does Blender behave normally in some case? Also check if this is regression in 2.91 - try checking older releases down to 2.79 from https://download.blender.org/release/ And check latest alpha as well https://builder.blender.org/download/

Added subscriber: @Sergey

Added subscriber: @Sergey

Is this issue still happening? Anyone managed to reproduce?

Is this issue still happening? Anyone managed to reproduce?

In #84341#1158465, @Sergey wrote:
Is this issue still happening? Anyone managed to reproduce?

I wasn't able to reproduce issue as described, but there is issue when you can set disk cache path to // and it would turn .blend file into directory. I forgot to fix this issue. I should have made new report for that, so I won't forget as that is quite serious bug.

> In #84341#1158465, @Sergey wrote: > Is this issue still happening? Anyone managed to reproduce? I wasn't able to reproduce issue as described, but there is issue when you can set disk cache path to `//` and it would turn .blend file into directory. I forgot to fix this issue. I should have made new report for that, so I won't forget as that is quite serious bug.

Can you handle this now? :)

Can you handle this now? :)
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'

Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'
Member

What is the status of this @iss?

What is the status of this @iss?

Changed status from 'Needs Developer To Reproduce' to: 'Needs User Info'

Changed status from 'Needs Developer To Reproduce' to: 'Needs User Info'

Disk cache issue has been resolved, Looking through messages and original report ,I think that this could be cause of original issue (file saved with @ due to folder with same name created). But also it has been said, that different cache directory was used when issue has been reported.

@Magdes Can you download latest 2.93 or 3.0 build from https://builder.blender.org/download/daily/ and check if issue has been resolved?

If there are no issues anymore this could be closed and 5368859a66 could be considered as fix.

Disk cache issue has been resolved, Looking through messages and original report ,I think that this could be cause of original issue (file saved with `@` due to folder with same name created). But also it has been said, that different cache directory was used when issue has been reported. @Magdes Can you download latest 2.93 or 3.0 build from https://builder.blender.org/download/daily/ and check if issue has been resolved? If there are no issues anymore this could be closed and 5368859a66 could be considered as fix.

Changed status from 'Needs User Info' to: 'Archived'

Changed status from 'Needs User Info' to: 'Archived'

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.

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.
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
5 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#84341
No description provided.