Page 1 of 1

[0.15.5] create_directories(p): invalid argument

Posted: Wed May 03, 2017 1:58 pm
by chronix
When I try to load my save that I was playing yesterday, I get this error in the log file (below). This also pops up as shown in the screenshot. Nevertheless, my save is not loaded and I am back at the load screen. I had this problem a few days ago (with 0.15.4, I believe) and my "solution" was to remove factorio and redownload it. I could do this again, but this will quickly get old :) Let me know if there is any other information required.

323.964 Error AppManagerStates.cpp:1111: create_directories(p): invalid argument: operation not permitted
factorio_create_directories.png
factorio_create_directories.png (1.4 MiB) Viewed 8119 times

Re: [0.15.5] create_directories(p): invalid argument

Posted: Wed May 03, 2017 2:09 pm
by steinio
Hi,

did you install it in c:\programs and run it as administrator occasionally?

Greetings, steinio.

Re: [0.15.5] create_directories(p): invalid argument

Posted: Wed May 03, 2017 2:13 pm
by hoho
Looks like for some reason the game can't write to some directories. Is your hard drive perhaps out of free space?

Not having permissions as stenio said is another possibility.

Re: [0.15.5] create_directories(p): invalid argument

Posted: Wed May 03, 2017 2:20 pm
by chronix
This was all installed via steam. I have 145 GB free.

Re: [0.15.5] create_directories(p): invalid argument

Posted: Wed May 03, 2017 2:21 pm
by chronix
Let me clarify, it was installed via Steam, and I always start it in Steam. I've never mucked with running it as an administrator.

Re: [0.15.5] create_directories(p): invalid argument

Posted: Wed May 03, 2017 2:29 pm
by hoho
Does it happen with just that one save game or with others as well?

Re: [0.15.5] create_directories(p): invalid argument

Posted: Wed May 03, 2017 2:31 pm
by chronix
I have cleared out my factorio directory recently (I was playing 0.14 modded, so I moved all the saves elsewhere and reinstalled factorio). It happens with the main save and all 3 auto-saves.

Re: [0.15.5] create_directories(p): invalid argument

Posted: Wed May 03, 2017 2:34 pm
by chronix
Reinstalling Factorio: I removed it in steam, and completely removed C:\Program Files (x86)\Steam\steamapps\common\Factorio then reinstalled it with steam.

Re: [0.15.5] create_directories(p): invalid argument

Posted: Wed May 03, 2017 2:38 pm
by chronix
When I was playing yesterday (0.15.5) I was able to save, restart factorio, and load the game. I did it several times that day. After it updated this morning, I got this error.

Re: [0.15.5] create_directories(p): invalid argument

Posted: Wed May 03, 2017 2:38 pm
by hoho
Wildly stabbing in the dark, is any of the files in factorio (saves) directory or the directory itself set as read-only?

Re: [0.15.5] create_directories(p): invalid argument

Posted: Wed May 03, 2017 3:12 pm
by chronix
None of them appear to be read-only. I can open them without any administrative privileges (though my user is an administrator). I can create a file in the save directory with no problems too.

I can't seem to create a new game regardless of settings. It gives me the same error anywhere. Is there anything else you want a screenshot of or me to do? I am a programmer by profession, so I can probably get you anything you may need.

Re: [0.15.5] create_directories(p): invalid argument

Posted: Wed May 03, 2017 3:16 pm
by posila
I think it tries to create folder "currently-playing" in C:\Program Files (x86)\Steam\steamapps\common\Factorio\temp\

Re: [0.15.5] create_directories(p): invalid argument

Posted: Wed May 03, 2017 3:24 pm
by chronix
I tried clicking on that temp folder in explorer. Access denied.
accessdenied.PNG
accessdenied.PNG (4.41 KiB) Viewed 8091 times

Re: [0.15.5] create_directories(p): invalid argument

Posted: Wed May 03, 2017 3:28 pm
by chronix
I restarted my machine, and it appears that file was actually removed (I've had this problem a couple times, unrelated to Factorio). It's a brand new laptop on Windows 10, so it's a bit surprising.

After a restart and the file is fully gone, I can load my saves. Strange.