Auto-save mechanism

Info about new community or project announcements, implemented features, classes, modules or APIs. Might get technical!
PLEASE DO NOT POST HELP REQUESTS OR OTHER DISCUSSIONS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
wmayer
Founder
Posts: 20242
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Auto-save mechanism

Post by wmayer »

NormandC wrote:This feature may be creating problems on Windows.

viewtopic.php?p=116675#p116646
The error message is definitely not related to the auto-save mechanism. The error "Failed to write all data to file ..." is only printed if the normal file save failed to write out all data. But this function that prints this error message is not used for the auto-save.
User avatar
NormandC
Veteran
Posts: 18587
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Auto-save mechanism

Post by NormandC »

Then how do you explain the appended hash to the filename? That's what the AutoRecovery does, doesn't it?
wmayer
Founder
Posts: 20242
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Auto-save mechanism

Post by wmayer »

viewtopic.php?f=3&t=14420&start=30#p116699

Just to point it out the creation of backup files and the auto-recovery are two different things. The former is the traditional way how we tried to reduce data loss but this always requires user interaction, i.e. to actively click on the Save file button. The latter works automatically and doesn't require any user interaction and becomes quite handy if the user didn't save his work for a longer time and then suddenly the app crashes.
Drederwisch
Posts: 262
Joined: Tue Dec 13, 2016 9:04 am

Re: Auto-save mechanism

Post by Drederwisch »

Is this „auto-save“ perhaps the reason for endless waiting-time when you click „cancel“ on certain buttons?
Imagine you are at the end of a construction and in the last sketch you will make a redundant constraint. Now you will get a hint to this mistake and you want to click "cancel"…
Coffee? Tea? Wainting for going on, only by clicking "cancel".
wmayer
Founder
Posts: 20242
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Auto-save mechanism

Post by wmayer »

Is this „auto-save“ perhaps the reason for endless waiting-time when you click „cancel“ on certain buttons?
The auto-save is actually very fast because it only writes out the stuff that has changed since the last run. And for shapes it uses a function to create binary data which is much faster then the standard BRep exporter.

For the next time you should activate the option "Log message" in the output window because the auto-save writes there out how long it took.
kisolre
Veteran
Posts: 4162
Joined: Wed Nov 21, 2018 1:13 pm

Re: Auto-save mechanism

Post by kisolre »

I found out that some folders are not removed. Those contain TechDraw SVG templates and ImageWB imported pictures... Which code should be responsible for removing those?
Post Reply