Page 1 of 1

Crash when saving after user directory was moved via symlink

Posted: Sat Mar 05, 2016 12:39 am
by JackFlapper
Steps for reproduction:
Open any save or create a new map
Save

Game freezes and finally displays the message:
---------------------------
Error
---------------------------
boost::filesystem::read_symlink: The process cannot access the file because it is being used by another process: "C:/Users
---------------------------
OK
---------------------------

Image of error: https://i.imgur.com/7bAmve4.png

Clicking OK causes the game to close

Log (Username removed)
Log
Extra Info
I've seen applications act like this before and I believe this is because I moved my user folder and symlinked the new location and the original location (I did this because I have a small ssd which I didn't wish to fill up with downloaded files, etc)

Here's another report of something I believe is caused by the same thing: https://github.com/openscad/openscad/issues/1073

As the user stated in the linked issue
Note that symlinked home directories are not officially supported by Microsoft...
So I understand if this is a wontfix

Thanks for making such a great game,

Jack

Re: Crash when saving after user directory was moved via symlink

Posted: Tue Mar 08, 2016 2:05 pm
by posila
I don't feel like messing with Users directory right now, so I tried path C:\Document and Settings (which is linked to C:\Users), manually created directory symlink (MKLINK /D) and junction (MKLINK /J) without any problems. Maybe only symlinked C:\Users causes trouble.

Anyway. You can move Factorio folder from %APPDATA% to anywhere, you just need to edit config.ini so that write-data points to correct path. Then use launch option --config to use config in non-default location

Code: Select all

 --config "D:\Somewhere\Else\Factorio\config\config.ini"

Re: Crash when saving after user directory was moved via symlink

Posted: Sun Mar 20, 2016 4:47 pm
by Nioxic
I'd like to add

that when the game crashes you get a copy of the folder adress where you can read the some info (i guess)

anyways

the problem is that it uses / instead of \

so you cant just win+ R and paste and go..

you gotta edit it.

http://i.imgur.com/y75qYkh.jpg

Re: Crash when saving after user directory was moved via symlink

Posted: Fri Aug 05, 2016 3:52 pm
by posila
This should be resolved in 0.13.14