Page 1 of 1

[0.14.14][posila] Freeze on exit after long play sessions

Posted: Wed Oct 19, 2016 7:22 pm
by jonatkins
A couple of times now, since 0.14.14, I've had Factorio freeze when quitting to desktop. Once this happens, I need to kill the process to close the game.

In both cases, it's been after 2+ hours of play. I can't reproduce the issue just by loading the save game and quitting immediately.

When it freezes the 'Exit' button is left highlighted in orange. There's nothing in the log file to give any hints at all.

Running on windows 7, 64 bit version.


I know this bug report is pretty useless, but perhaps someone else has seen it too and can reproduce it?

Re: [0.14.14] Freeze on exit after long play sessions

Posted: Wed Oct 19, 2016 11:20 pm
by Fraiser
I have also encountered this problem once before. It was after a very long play session as well.
I am on Win8.1 x64

Re: [0.14.14] Freeze on exit after long play sessions

Posted: Wed Oct 19, 2016 11:36 pm
by fishycat
Happened to me several times after installing mods from ingame-modportal after clicking back. Then it freezes and I have to quit it manually via task manager. But then it restarts automatically as usual. Just now it happened after I was beginning a new map, saved it and clicked exit then freeze again.

I´m on factorio x64 0.14.14 and win10

Re: [0.14.14] Freeze on exit after long play sessions

Posted: Thu Oct 20, 2016 12:14 am
by Rseding91
Are you using the steam version of the standalone version?

Re: [0.14.14] Freeze on exit after long play sessions

Posted: Thu Oct 20, 2016 12:15 am
by jonatkins
Standalone - zip version in this case.

Hadn't seen this issue before 0.14.14 - seems to be something new.

Re: [0.14.14] Freeze on exit after long play sessions

Posted: Thu Oct 20, 2016 12:29 am
by fishycat
I´m also on zip-version.

Re: [0.14.14] Freeze on exit after long play sessions

Posted: Thu Oct 20, 2016 2:34 am
by Rythe
Win 7 64bit, and had the same issue. Long play session, and the game hanged on closing so I had to kill the process.

Standalone version too, but otherwise, just more of a pretty useless bug report.

Re: [0.14.14] Freeze on exit after long play sessions

Posted: Thu Oct 20, 2016 8:14 am
by posila
Hi, there was a similar bug report a couple of weeks ago: viewtopic.php?t=33639

If it freezes again, before you kill it, could you please download Process Explorer https://technet.microsoft.com/en-us/sys ... lorer.aspx and use it to create minidump of Factorio process when it is frozen?
Just find Factorio process in Process Explorer, right click it, select Create Dump and then Create minidump. Save the .dmp file, zip it and upload it here, please.

Re: [0.14.14] Freeze on exit after long play sessions

Posted: Thu Oct 20, 2016 12:45 pm
by jonatkins
Remember I said it couldn't be reproduced from a quick load save and immediately exit? Well, I just tried it again as I had a few minutes spare and this time it did freeze!

Minidump attached, as requested. Let me know if you'd like the save game + mods in use, and/or the full dump.

Re: [0.14.14] Freeze on exit after long play sessions

Posted: Thu Oct 20, 2016 9:54 pm
by fishycat
Just happened to freeze again. I attached my minidump, hope it helps.

Re: [0.14.14] Freeze on exit after long play sessions

Posted: Sat Oct 22, 2016 10:32 am
by posila
Thanks for the minidumps. It is definitely related to viewtopic.php?t=33639
I am not sure if it is caused by my attempt to fix the previous issue, or if it is the previous issue just few lines after my fix.

Re: [0.14.14][posila] Freeze on exit after long play sessions

Posted: Sun Oct 23, 2016 6:20 am
by jonatkins
FYI, I had a bit of a look at the dump in visual studio - and a bit of googling on the labels in the stack found this issue: https://github.com/liballeg/allegro5/issues/664 (Maybe you've already seen it, but just in case you hadn't...)

Re: [0.14.14][posila] Freeze on exit after long play sessions

Posted: Tue Oct 25, 2016 10:31 am
by posila
I added logging to DirectSound code. Please post new logs when it happens on 0.14.16.

Re: [0.14.14][posila] Freeze on exit after long play sessions

Posted: Thu Oct 27, 2016 10:49 pm
by fishycat
Quick feedback from me: since 0.14.16 no more problems. No matter what I tried that before would lead to a freeze, now just does what it should. Thanks for the quick fix!

Re: [0.14.14][posila] Freeze on exit after long play sessions

Posted: Thu Oct 27, 2016 10:58 pm
by posila
B... b... b... but we didn't fix anything. We just added some debug logs :(
Can you send me your factorio-current.log and factorio-previous.log? Thanks :)

Re: [0.14.14][posila] Freeze on exit after long play sessions

Posted: Thu Oct 27, 2016 11:11 pm
by fishycat
Then this must be a miracle. :D

ok, here are the logs...

Re: [0.14.14][posila] Freeze on exit after long play sessions

Posted: Fri Oct 28, 2016 12:18 am
by jonatkins
Ditto on not being able to reproduce the issue in 0.14.16/17, despite several attempts with repeated restarts and a few long play sessions.

Logs are the same as above when it comes to the ordering of the DSound log messages.

Re: [0.14.14][posila] Freeze on exit after long play sessions

Posted: Fri Oct 28, 2016 2:30 pm
by Smarty
fishycat wrote:Then this must be a miracle. :D

ok, here are the logs...
miracle?
No
Magic

1/0 magic

Re: [0.14.14][posila] Freeze on exit after long play sessions

Posted: Mon Nov 07, 2016 10:37 am
by posila
Thanks. It seems to be threading issue. Adding log ouputs changed timing of thing happening in threads so it works :/