Page 1 of 1
[0.18.1] Error FileUtil.cpp:403: Can't remove ...
Posted: Sat Jan 25, 2020 3:56 pm
by steinio
Hi,
i get this errors in the log:
Code: Select all
28.046 Error FileUtil.cpp:403: Can't remove D:\SteamLibrary\steamapps\common\Factorio\temp: Falscher Parameter.
134.898 Error FileUtil.cpp:403: Can't remove D:\SteamLibrary\steamapps\common\Factorio\temp\currently-playing: Falscher Parameter.
Falscher Parameter = wrong parameter
Cu, steinio
Re: [0.18.1] Error FileUtil.cpp:403: Can't remove ...
Posted: Sat Jan 25, 2020 5:22 pm
by Loewchen
The exact localization origin is "Incorrect parameter" fyi.
Re: [0.18.1] Error FileUtil.cpp:403: Can't remove ...
Posted: Sun Jan 26, 2020 2:48 am
by Rseding91
Thanks for the report. Do you have any way to reproduce the error? All the code does is tell the operating system to delete the file and the operating system is saying "no". Not much else we can do.
Re: [0.18.1] Error FileUtil.cpp:403: Can't remove ...
Posted: Sun Jan 26, 2020 12:21 pm
by steinio
To reproduce it, i just need to start the game.
Tried even as elevated user and the error persists.
Shouldn't the error message be something like "No privileges to change file" or similar instead of wrong parameter.
I deleted temp manually and now there's no error anymore.
Re: [0.18.1] Error FileUtil.cpp:403: Can't remove ...
Posted: Sun Jan 26, 2020 5:04 pm
by Rseding91
I don't know. You'd have to contact Microsoft and ask them to make a better error. All we do is ask the OS to delete the file and check the error code it gives us. If it's not "OK" we then ask the OS to translate the error code into an error string and that's what shows up in the log file.
Re: [0.18.1] Error FileUtil.cpp:403: Can't remove ...
Posted: Sun Mar 29, 2020 5:37 pm
by steinio
The temp folder error is back also with the duplicate mods behaviour.
Even running as administrator it can't delete temp.
What does the function do at 403?
Addedthe whole SteamLibrary folder to the exclusion list in WinDefender... no change.
The drive is encrypted with VeraCrypt but deleting files in explorer is no problem.
Re: [0.18.1] Error FileUtil.cpp:403: Can't remove ...
Posted: Sun Mar 29, 2020 9:05 pm
by Rseding91
steinio wrote: Sun Mar 29, 2020 5:37 pm
The temp folder error is back also with the duplicate mods behaviour.
Even running as administrator it can't delete temp.
What does the function do at 403?
Addedthe whole SteamLibrary folder to the exclusion list in WinDefender... no change.
The drive is encrypted with VeraCrypt but deleting files in explorer is no problem.
It calls std::filesystem::symlink_status:
https://en.cppreference.com/w/cpp/filesystem/status