Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible race condition #89

Closed
skairunner opened this issue Oct 10, 2020 · 14 comments
Closed

Possible race condition #89

skairunner opened this issue Oct 10, 2020 · 14 comments

Comments

@skairunner
Copy link

Using this save file and running python auto.py with no arguments, the conversion process stalls on this step:

image

Is this a hang or is it just taking a while to process? It worked on a previous version of the save.
neerskai v2.zip

@L0laapk3
Copy link
Owner

Thats strange. Can you run with --verbose and kill it (ctrl + c) to see where exactly it hangs?

@skairunner
Copy link
Author

skairunner commented Oct 11, 2020

This is the log.
factoriomapslog.txt

It's certainly getting interrupted in the middle of parallel code, but I don't think that's saying much :P There's also a whole host of "unidentified image error"s that interrupt the progress bar.

Edit: Also, the process refuses to die, no matter how many times i try to SIGINT.

@L0laapk3
Copy link
Owner

Is it possible your storage is temporarily full while it is running? It seems like factorio is struggling saving the images. --verbosegame will likely reveal why

@skairunner
Copy link
Author

skairunner commented Oct 11, 2020

It seems to work fine when --verbosegame is enabled. I have to say that it has got to be some kind of race condition or deadlock.

Edit: Perhaps I spoke too soon. I ran it with --verbosegame on a renamed copy of an older save, which worked fine, but running it on the actual save causes it to hang again, and there are no further messagse after "killed factorio".

Edit2: Okay, so I have to assume that saving to the same filename is not possible. What do I need to do to manually merge timelines that were created with different names?

Edit3: Here's a different error 🤔
image

@L0laapk3
Copy link
Owner

L0laapk3 commented Oct 11, 2020 via email

@skairunner
Copy link
Author

skairunner commented Oct 11, 2020 via email

@L0laapk3
Copy link
Owner

L0laapk3 commented Oct 11, 2020 via email

@skairunner
Copy link
Author

I also have 16 processors, maybe I could try re-running with just 1...

@L0laapk3
Copy link
Owner

Did you end up resolving this? Weird. I've had one or two similar issues made by people in the past, but I've never been able to reproduce it.

@skairunner
Copy link
Author

skairunner commented Oct 17, 2020 via email

@L0laapk3 L0laapk3 changed the title Hanging after running? Possible race condition Oct 18, 2020
@L0laapk3
Copy link
Owner

Thats unfortunate.
I've tried running it on your savefile just now and it worked for me.
I've had another look at your logs, and they indicate that it was ran on an already existing timeline. This means my test conditions are not the same as yours.
Just to be clear, if factoriomaps has already crashed or hung once, chances are the timeline ended up in a "bricked" state and factoriomaps couldn't build further on it anymore. While its possible to manually correct this, its usually simpler to just delete the respective output folder inside script-output and run the script again.

If you decide to give it another go, feel free to contact me. :P

@skairunner
Copy link
Author

skairunner commented Oct 18, 2020 via email

@L0laapk3
Copy link
Owner

Its not entirely clear to me what your intention is. Its possible to append savefiles to timelines already

@L0laapk3
Copy link
Owner

Closing. feel free to reopen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants