Page 1 of 1

[0.11.8] [slpwnd] Open/load game in background causes hang

Posted: Sun Dec 28, 2014 10:17 am
by BlaatMekker
[*]OS: OS X Yosemite
[*]VRAM: 1 GB
[*]RAM: 8 GB

If I CMD-Tab to another window while the game is loading, it will become unresponsive when the main menu is showing. I had the same issue with the login screen (when I hadn't provided the credentials yet).

I'm attaching sample output. I've also saved a trace (using Instruments), but I'm not sure if it can contain sensitive information.

Re: [0.11.8] Opening/loading game in background causes hang

Posted: Tue Dec 30, 2014 6:20 pm
by BlaatMekker
Added the file, I had somehow missed the message about blocked files. Why even block text files :o

Re: [0.11.8] [slpwnd] Open/load game in background causes hang

Posted: Fri Mar 06, 2015 8:41 am
by slpwnd
I tried to reproduce this on both the OS X Snow Leopard and OS X Yosemite but without success. Does anyone else experience this issue?

Re: [0.11.8] [slpwnd] Open/load game in background causes hang

Posted: Sat Mar 07, 2015 1:46 pm
by ssilk
Yes. In my opinion related to https://forums.factorio.com/forum/vie ... f=7&t=8446

Lately I had also the strange case, that when I restart the game then too fast (killing then restart after 1 second), this happens over and over. After waiting a while (5-10 secs) this suddenly works.
I watched it with top and saw, that the application takes so long to really be removed. Perhaps this is the reason, that there are still some background windows open or so, and factorio #1 tries to close them, while factorio #2 tries to open them with the same name? Just a stupid guess. ;)

Re: [0.11.8] [slpwnd] Open/load game in background causes hang

Posted: Sun Apr 05, 2015 10:04 am
by BlaatMekker
ssilk wrote:I watched it with top and saw, that the application takes so long to really be removed. Perhaps this is the reason, that there are still some background windows open or so, and factorio #1 tries to close them, while factorio #2 tries to open them with the same name? Just a stupid guess. ;)
Perhaps it's another sequence in which it can be triggered, but it could be something else entirely. It does not match my sequence though. I really just open Factorio after not having played for 24 hours, and then immediately cmd-tab out of it again. Well, perhaps not immediately. I've noticed recently that the game sometimes does load, but not the other time; could be timing related.

I got it reproduced again in 0.11.20, here's the debug log:
factorio-current.log

Re: [0.11.8] [slpwnd] Open/load game in background causes hang

Posted: Sun Apr 05, 2015 10:41 am
by BlaatMekker
I think that I just found another trigger. So the game had finished loading completely, and I'm in the main menu. I then first moved my mouse to the bottom of the screen, and then to the top, trying to get either the dock or menu bar to show up. It crashed as soon as the cursor hit the upper edge of the screen. I can't reproduce it, and it most likely isn't related to the issue at hand anyway.

Anyway, here's another log:
factorio-current.log

Re: [0.11.8] [slpwnd] Open/load game in background causes hang

Posted: Wed Apr 08, 2015 3:42 pm
by slpwnd
I have tried reproducing this issue by doing some crazy stuff during / after the loading of the game. However without any success. Can other Yosemite users reproduce this?

Re: [0.11.8] [slpwnd] Open/load game in background causes hang

Posted: Wed Apr 08, 2015 3:51 pm
by BlaatMekker
I'll PM you a link to the trace output, perhaps that helps.