Unable to rename rolling autosave
Bug #1746270 reported by
GunChleoc
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I am having some issues with the file system in Windows 7. I am in zip file mode.
Autosave: 300000 ms interval elapsed, current gametime: 14:01, saving...
Autosave: Rolling savefiles (count): 5
Autosave: Rolled save\wl_
Autosave: Rolled save\wl_
Fatal exception: [../src/
FATAL ERROR - game crashed. Attempting emergency save.
Related branches
lp:~widelands-dev/widelands/bug-1746270-rolling-autosave-file-permissions
- Klaus Halfmann: Approve (testplay on windows)
-
Diff: 66 lines (+37/-5)1 file modifiedsrc/logic/save_handler.cc (+37/-5)
Changed in widelands: | |
assignee: | Tino (tino79) → GunChleoc (gunchleoc) |
status: | New → In Progress |
Changed in widelands: | |
status: | In Progress → Fix Committed |
Changed in widelands: | |
assignee: | GunChleoc (gunchleoc) → nobody |
To post a comment you must log in.
Does this happen on every auto save?
I had a similar issue when working with the editor. No console output, only a window pops up. The last sentence says: "Could not write xy.tmp to xy, the directory is not empty".
This happened when i was working on a scenario and had a texteditor open with my used files. I opened the widelands editor with the scenario map and made some modifications. Also made some modifications to a file opened in my text editor. I never had a problem when working like this (simultaniously editing the map and scenario files). The difference when the crash happens: I did not saved the open (edited!) scenario file before saving the map. So my guess is, at least in my case, that an unsaved change in a file leaves an open file handle to the directory, or to a file in the directory, which prevent saving anything there.
Could an open file handle also be the reason for this bug?
If so, what about file indexers? E.g. an auto save try's to save but an file indexer just indexes the file?