[0.18.1] Error FileUtil.cpp:403: Can't remove ...

Bugs that we were not able to reproduce, and/or are waiting for more detailed info.
Post Reply
User avatar
steinio
Smart Inserter
Smart Inserter
Posts: 2633
Joined: Sat Mar 12, 2016 4:19 pm
Contact:

[0.18.1] Error FileUtil.cpp:403: Can't remove ...

Post 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
Attachments
factorio-current.log
(6.42 KiB) Downloaded 91 times
Image

Transport Belt Repair Man

View unread Posts

Loewchen
Global Moderator
Global Moderator
Posts: 8320
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [0.18.1] Error FileUtil.cpp:403: Can't remove ...

Post by Loewchen »

The exact localization origin is "Incorrect parameter" fyi.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.18.1] Error FileUtil.cpp:403: Can't remove ...

Post 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.
If you want to get ahold of me I'm almost always on Discord.

User avatar
steinio
Smart Inserter
Smart Inserter
Posts: 2633
Joined: Sat Mar 12, 2016 4:19 pm
Contact:

Re: [0.18.1] Error FileUtil.cpp:403: Can't remove ...

Post 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.
Image

Transport Belt Repair Man

View unread Posts

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.18.1] Error FileUtil.cpp:403: Can't remove ...

Post 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.
If you want to get ahold of me I'm almost always on Discord.

User avatar
steinio
Smart Inserter
Smart Inserter
Posts: 2633
Joined: Sat Mar 12, 2016 4:19 pm
Contact:

Re: [0.18.1] Error FileUtil.cpp:403: Can't remove ...

Post 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.
Image

Transport Belt Repair Man

View unread Posts

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.18.1] Error FileUtil.cpp:403: Can't remove ...

Post 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
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Pending”