[0.17.74] Hang on SIGTERM during startup.

Place for things which are bugs but we have no idea how to solve them. Things related to hardware, libraries, strange setups, etc.
Post Reply
Hornwitser
Long Handed Inserter
Long Handed Inserter
Posts: 80
Joined: Fri Oct 05, 2018 4:34 pm
Contact:

[0.17.74] Hang on SIGTERM during startup.

Post by Hornwitser »

I have a unit test that send SIGTERM to the Linux headless server upon receiving the following message on stdout

Code: Select all

RemoteCommandProcessor.cpp:131: updateTick(0) changing state from(CreatingGame) to(InGame)
When running this test on Travis-CI it ocasionaly hangs instead of initiating the shutdown causing the test to fail.

The process is spawned with following parameters (where the ports and password are randomly generated)

Code: Select all

factorio/bin/x64/factorio --config test/temp/integration/config.ini --start-server-load-scenario test_scenario --port 64808 --rcon-port 62353 --rcon-password <...>
test scenario_contains only a control.lua file with following code

Code: Select all

script.on_init(function() print('test_scenario init') end)
and config.ini contains read and write data directories:

Code: Select all

[path]
read-data=factorio/data
write-data=test/temp/integration
There's nothing printed out on stdout when the server hangs. I added code to send a second SIGTERM if the factorio server hangs like this and what happened then was that it printed "Received SIGTERM, shutting down" in response to it but still stayed hanged. You can see an example of this behavior in this test result. At the very bottom is the output from the test that failed (apologies for it being difficult to read, it's parsed.)

movax20h
Fast Inserter
Fast Inserter
Posts: 110
Joined: Fri Mar 08, 2019 7:07 pm
Contact:

Re: [0.17.74] Hang on SIGTERM during startup.

Post by movax20h »

Do this happen with 0.17.73 or 0.17.72 too?

Hornwitser
Long Handed Inserter
Long Handed Inserter
Posts: 80
Joined: Fri Oct 05, 2018 4:34 pm
Contact:

Re: [0.17.74] Hang on SIGTERM during startup.

Post by Hornwitser »

I have seen this happen on 0.17.73.

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 4128
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [0.17.74] Hang on SIGTERM during startup.

Post by Klonan »

Can you provide a log file?

Does it happen on 0.17.74?

Hornwitser
Long Handed Inserter
Long Handed Inserter
Posts: 80
Joined: Fri Oct 05, 2018 4:34 pm
Contact:

Re: [0.17.74] Hang on SIGTERM during startup.

Post by Hornwitser »

The linked test log shows the log outputted on stdout, though in a somewhat unreadable form. If there's something else outputed to factorio-current.log then that has been lost (do tell me if there's anything of interest there and I'll dump it too for the next time it happens.) It also shows it's running on Factorio 0.17.74 (build 47523, linux64, headless).

I saw a simmilar issue occur on a modded server running in a virtual machine. But there it didn't even print out the "Received SIGINT, shutting down" message, I've attached the log for it, but it just ends, systemd killed it after a timeout.
Attachments
factorio-1572535996.log
(61.39 KiB) Downloaded 23 times

Rseding91
Factorio Staff
Factorio Staff
Posts: 10323
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.17.74] Hang on SIGTERM during startup.

Post by Rseding91 »

Thanks for the report however without a way to reproduce this there's nothing we can do.

My best guess is it's some issue specific to your system otherwise we would have more people here complaining that there's an issue with the game crashing.

Sorry.
If you want to get ahold of me I'm almost always on Discord.

Hornwitser
Long Handed Inserter
Long Handed Inserter
Posts: 80
Joined: Fri Oct 05, 2018 4:34 pm
Contact:

Re: [0.17.74] Hang on SIGTERM during startup.

Post by Hornwitser »

Still happens on a semi regular basis on 0.17.79. It would be easy to add code that for example dumps a back trace of all threads when this is detected to happen.

Post Reply

Return to “1 / 0 magic”

Who is online

Users browsing this forum: No registered users