View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0004098||FreeCAD||Bug||public||2019-08-25 17:42||2019-08-26 12:51|
|Summary||0004098: FreeCAD should not exit if unable to rename backup file to project file while exiting|
Always when saving the attached file I get a warning in the report view:
When I open that folder I see multiple files in the form of GoProMount.FCStd.long-guid-sequence-of-letters-and-numbers. The project file: GoProMount.FCStd does not contain the latest changes, which instead are (presumably) in the latest guid file.
The workaround for this is to delete all of those files (or just the GoProMount.FCStd file) and try again. No warnings and the file gets updated that way (until I need to save it again). This is only an inconvenience for me because I understand the workaround and how to recover my data, but most users will not understand. Their data is there, but might as well not be there because they won't know.
There is something failing for some reason during this process of creating the temporary guid file and renaming it to the project file.
The worst part of this is if I exit FreeCAD with unsaved changes and elect to save the changes on exit the save fails and yet FreeCAD still exits without any warning message. FreeCAD should not exit. It should remain open so the user can save as the file to another location or at least be told his data is safe in this new guid file, which must be renamed manually.
|Steps To Reproduce||It is unlikely anyone can reproduce, but the file is attached. Open it, make some change to it, then click save. A warning will appear in the report view about being unable to rename the project file if you are able to reproduce. I am always 100% of the time able to reproduce with this file on my system if it is in the c:\users\mwganson\downloads folder, but if I move it from that folder, then I can no longer reproduce the issue.|
One thing to try, which I haven't tried, is to step through in debug mode with a breakpoint at the line where the file is about to be renamed. Open the folder containing the file and if GoProMount.FCStd does not exist, then add it there before allowing the code to proceed past the breakpoint. I suspect the reason the renaming fails is because the file of the same name still exists. If that is what is happening, then this should reproduce the warning message upon continuing past the breakpoint.
|Additional Information||This issue existed prior to the Link merge, and is unrelated to that. I believe the warning was added to code in a commit some 10 months ago.|
OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.17877 (Git)
Build type: Release
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United States (en_US)
|Tags||No tags attached.|