Page 1 of 1

[0.15.37] Zombie process when started and immediatly closing

Posted: Wed Nov 01, 2017 6:36 am
by Jelmergu
What did you do?
  • - Start Factorio using steam
    - While the window is still black: press alt+f4 closing the window
    - Attempt to restart Factorio via steam
What happened?
  • - Steam reports Factorio already running
    -Taskmanager -> Details shows a factorio.exe process using about 41,700k memory usage
What did you expect to happen instead? It might be obvious to you, but do it anyway!
Factorio starts like normal

This seems to be a minor issue though, as you have to close factorio within ~5 seconds after starting.

Re: [0.15.37] Zombie process when started and immediatly closing

Posted: Wed Nov 01, 2017 10:38 am
by posila
Hi, thanks for the report.
Could you attach your log, please? (it doesn't need to be from the zombie process run, I just need to see how is your Factorio configured)

Re: [0.15.37] Zombie process when started and immediatly closing

Posted: Wed Nov 01, 2017 12:40 pm
by Jelmergu
In the zip file there are two logs. The previous is from the zombie process and the current is from a successfull start to the menu(and exiting the game using exit)

Re: [0.15.37] Zombie process when started and immediatly closing

Posted: Wed Nov 01, 2017 2:17 pm
by posila
Thanks for the report.
Fixed for 0.16

Re: [0.15.37] Zombie process when started and immediatly closing

Posted: Wed Nov 01, 2017 2:46 pm
by Jelmergu
Would like to know what the problem whas(aside from a dumbass closing the game in in a couple of seconds)

Re: [0.15.37] Zombie process when started and immediatly closing

Posted: Thu Nov 02, 2017 9:11 pm
by posila
Jelmergu wrote:Would like to know what the problem whas(aside from a dumbass closing the game in in a couple of seconds)
When the game is closing, main thread is waiting for windows message pump thread to end ... but for whatever reason, message loop wouldn't exit if the application window was closed before all the display initialization finished. I changed the closing logic to not wait for message pump to exit if its window handle is not valid.

Re: [0.15.37] Zombie process when started and immediatly closing

Posted: Fri Nov 03, 2017 9:53 pm
by Jon8RFC
Would this fix also apply to this bug report, or are they different?
viewtopic.php?f=58&t=50600

Re: [0.15.37] Zombie process when started and immediatly closing

Posted: Sat Nov 04, 2017 2:08 am
by Rseding91
Jon8RFC wrote:Would this fix also apply to this bug report, or are they different?
viewtopic.php?f=58&t=50600
They're different. But that one also happens to be fixed for 0.16 due to unrelated reasons.