Crash when saving after user directory was moved via symlink

This subforum contains all the issues which we already resolved.
JackFlapper
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sat Mar 05, 2016 12:11 am
Contact:

Crash when saving after user directory was moved via symlink

Post 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
posila
Former Staff
Former Staff
Posts: 5448
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

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

Post 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"
Nioxic
Burner Inserter
Burner Inserter
Posts: 6
Joined: Sun Feb 28, 2016 6:18 pm
Contact:

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

Post 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
posila
Former Staff
Former Staff
Posts: 5448
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

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

Post by posila »

This should be resolved in 0.13.14
Post Reply

Return to “Resolved Problems and Bugs”