[0.13][Oxyd] Headless server crash on startup

This subforum contains all the issues which we already resolved.
Post Reply
Jerub
Burner Inserter
Burner Inserter
Posts: 7
Joined: Mon Jun 27, 2016 8:19 pm
Contact:

[0.13][Oxyd] Headless server crash on startup

Post by Jerub »

I'm attempting to run the headless server, and this is the crash I get:

Code: Select all

   0.000 2016-06-27 20:17:33; Factorio 0.13.0 (Build 22782, linux64, headless)
   0.000 Operating system: Linux
   0.000 Not rotating logs.
   0.000 Program arguments: "/opt/factorio/bin/x64/factorio" "--create" "/opt/factorio/saves/save.zip" 
   0.000 Read data path: /opt/factorio/data
   0.000 Write data path: /opt/factorio
   0.000 Binaries path: /opt/factorio/bin
   0.013 Running in headless mode
   0.020 Loading mod core 0.0.0 (data.lua)
   0.027 Loading mod base 0.13.0 (data.lua)
   0.154 Checksum for core: 1399339455
   0.154 Checksum for mod base: 2039900801
   0.541 Custom inputs active: 0
   0.541 Factorio initialised
   0.541 Info Main.cpp:557: Creating new map /opt/factorio/saves/save.zip
   4.480 Info Scenario.cpp:129: Map version 0.13.0-93
   4.555 Checksum for script /opt/factorio/temp/currently-playing/control.lua: 900459546
Done.

   0.000 2016-06-27 20:17:38; Factorio 0.13.0 (Build 22782, linux64, headless)
   0.000 Operating system: Linux
   0.000 Program arguments: "/opt/factorio/bin/x64/factorio" "--latency-ms" "100" "--autosave-interval" "2" "--autosave-slots" "100" "--start-server" "/opt/factorio/saves/save.zip" 
   0.000 Read data path: /opt/factorio/data
   0.000 Write data path: /opt/factorio
   0.000 Binaries path: /opt/factorio/bin
   0.009 Running in headless mode
   0.011 Loading mod core 0.0.0 (data.lua)
   0.014 Loading mod base 0.13.0 (data.lua)
   0.099 Checksum for core: 1399339455
   0.100 Checksum for mod base: 2039900801
   0.443 Custom inputs active: 0
   0.444 Factorio initialised
   0.444 Info Router.cpp:563: Router peerID(65535) shutting down.
   0.444 Info Router.cpp:594: Router state -> Disconnected
   0.460 Info MultiplayerManager.cpp:999: networkTick(0) mapTick(-1) changing state from(Ready) to(PreparedToHostGame)
   0.460 Info MultiplayerManager.cpp:999: networkTick(0) mapTick(-1) changing state from(PreparedToHostGame) to(CreatingGame)
   0.461 Loading map /opt/factorio/saves/save.zip
   0.481 Info Scenario.cpp:129: Map version 0.13.0-93
   0.549 Checksum for script /opt/factorio/temp/currently-playing/control.lua: 900459546
   0.565 Info PosixUDPSocket.cpp:50: Opening socket at port 34197
   0.565 Info Router.cpp:594: Router state -> Connected
   0.565 Info Synchronizer.cpp:56: NetworkTick(0) initialized Synchronizer local peer(0) latency(6).
   0.565 Hosting game at port 34197, peerID 0, session magic 2755
   0.565 Info MultiplayerManager.cpp:999: networkTick(0) mapTick(0) changing state from(CreatingGame) to(InGame)
   0.565 Info NetworkInputHandler.cpp:45: mapTick(0) networkTick(0) initialized NetworkInputHandler local peer(0).
sh: 1: addr2line: not found
   0.569 Warning Logger.cpp:356: Couldn't symbolize stacktrace: (resolving symbol failed: fread)

Factorio crashed. Generating symbolized stacktrace, please wait ...
sh: 1: addr2line: not found
   0.570 Warning Logger.cpp:356: Couldn't symbolize stacktrace: (resolving symbol failed: fread)

#0  0x8fc84c
#1  0x8fc9df
#2  0xf33bdf
#3  0x7f2c381b80a4
#4  0x7f2c377ce87d
   0.570 Error InterruptibleStdioStream.cpp:51: read failed
sh: 1: addr2line: not found
   0.571 Warning Logger.cpp:356: Couldn't symbolize stacktrace: (resolving symbol failed: fread)

Factorio crashed. Generating symbolized stacktrace, please wait ...
sh: 1: addr2line: not found
   0.573 Warning Logger.cpp:356: Couldn't symbolize stacktrace: (resolving symbol failed: fread)

#0  0x805a7b
#1  0x805cf4
#2  0x7f2c3771b0e0
#3  0x7f2c3771b067
#4  0x7f2c3771c448
#5  0x8fc89c
#6  0x8fc9df
#7  0xf33bdf
#8  0x7f2c381b80a4
#9  0x7f2c377ce87d
   0.573 Error CrashHandler.cpp:85: Map tick at moment of crash: 0
   0.573 Error Util.cpp:77: Unexpected error occurred. You can help us to solve the problem by posting the contents of the log file on the Factorio forums.
I'm running this in a docker container, if you want, I can provide the dockerfile.

Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: [0.13] Headless server crash on startup

Post by Oxyd »

From our discussion on IRC: This seems to be caused by stdin being closed when Factorio is started.

Jerub
Burner Inserter
Burner Inserter
Posts: 7
Joined: Mon Jun 27, 2016 8:19 pm
Contact:

Re: [0.13] Headless server crash on startup

Post by Jerub »

Yep, I had to change my launch script to be:

Code: Select all

cat /dev/zero | factorio
in order to start the process.

Now it's started and everything's working.

Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: [0.13][Oxyd] Headless server crash on startup

Post by Oxyd »

Fixed in 0.13.1.

Xolkiyr
Burner Inserter
Burner Inserter
Posts: 5
Joined: Tue Jun 28, 2016 4:30 am
Contact:

Re: [0.13][Oxyd] Headless server crash on startup

Post by Xolkiyr »

Maybe not entirely fixed. Doesn't crash on startup, but somewhere along the lines it does.

Code: Select all

   0.000 2016-06-30 00:52:40; Factorio 0.13.1 (Build 22864, linux64, headless)
   0.025 Operating system: Linux (Debian 8.4)
   0.025 Program arguments: "/opt/factorio/bin/x64/factorio" "--start-server-load-latest" 
   0.026 Read data path: /opt/factorio/data
   0.026 Write data path: /opt/factorio
   0.026 Binaries path: /opt/factorio/bin
   0.036 Running in headless mode
   0.049 Loading mod core 0.0.0 (data.lua)
   0.053 Loading mod base 0.13.1 (data.lua)
   0.158 Loading mod corpse-chest 1.0.2 (data.lua)
   0.212 Loading mod fluid-barrel 1.0.0 (data.lua)
   0.270 Loading mod VanillaEx 0.0.8 (data.lua)
   0.335 Loading mod Warehousing 0.1.0 (data.lua)
   0.423 Loading mod rso-mod 2.0.1 (data-updates.lua)
   0.484 Checksum for core: 1399339455
   0.485 Checksum for mod base: 2679425721
   0.485 Checksum for mod corpse-chest: 1590726545
   0.485 Checksum for mod fluid-barrel: 3300501898
   0.485 Checksum for mod rso-mod: 2418469773
   0.485 Checksum for mod VanillaEx: 2258901511
   0.485 Checksum for mod Warehousing: 657637659
   0.846 Custom inputs active: 0
   0.846 Factorio initialised
   0.847 Info Router.cpp:563: Router peerID(65535) shutting down.
   0.847 Info Router.cpp:594: Router state -> Disconnected
   0.848 Info MultiplayerManager.cpp:996: networkTick(0) mapTick(-1) changing state from(Ready) to(PreparedToHostGame)
   0.849 Info MultiplayerManager.cpp:996: networkTick(0) mapTick(-1) changing state from(PreparedToHostGame) to(CreatingGame)
   0.849 Loading map /opt/factorio/saves/New-Asgard.zip
   0.869 Info Scenario.cpp:129: Map version 0.13.0-93
   1.492 Applying migration: Base Mod: 2016-06-28_Factorio_0.13.0.lua
   1.495 Checksum for script /opt/factorio/temp/currently-playing/control.lua: 900459546
   1.496 Checksum for script __corpse-chest__/control.lua: 2244303108
   1.505 Checksum for script __rso-mod__/control.lua: 169650318
   1.506 Checksum for script __Warehousing__/control.lua: 1922941238
   1.532 Info PosixUDPSocket.cpp:50: Opening socket at port 34197
   1.532 Info Router.cpp:594: Router state -> Connected
   1.532 Info Synchronizer.cpp:56: NetworkTick(0) initialized Synchronizer local peer(0) latency(6).
   1.532 Hosting game at port 34197, peerID 0, session magic 3475
   1.532 Info MultiplayerManager.cpp:996: networkTick(0) mapTick(1208823) changing state from(CreatingGame) to(InGame)
   1.532 Info NetworkInputHandler.cpp:45: mapTick(1208823) networkTick(0) initialized NetworkInputHandler local peer(0).
   1.649 Info MultiplayerManager.cpp:1527: Received peer info for peer(0) username(<server>).
   1.649 Info MultiplayerManager.cpp:1143: networkTick(6) mapTick(1208823) received stateChanged peerID(0) oldState(Ready) newState(CreatingGame)
   1.649 Info MultiplayerManager.cpp:1143: networkTick(6) mapTick(1208823) received stateChanged peerID(0) oldState(CreatingGame) newState(InGame)
  51.163 Connection request(type(ConnectionRequest) applicationVersion(0.13.1 (Build 22864, linux64, headless)) activeMods((VanillaEx 0.0.8) (Warehousing 0.1.0) (base 0.13.1) (corpse-chest 1.0.2) (fluid-barrel 1.0.0) (rso-mod 2.0.1) ) hasPassword(no) connectionRequestID(3609)) from(98.183.154.116:60791)
  51.164 Info Router.cpp:683: NetworkTick(2977) replying to connectionRequest for address(98.183.154.116:60791).
  51.263 Info Router.cpp:905: networkTick(2983) adding peer(1) address(98.183.154.116:60791) sending connectionAccept(true)
  51.264 Info Router.cpp:717: networkTick(2983) sending connectionAccept to address(98.183.154.116:60791) connectionRequestID(3609) newPeerID(1)
  51.264 Info Synchronizer.cpp:522: networkTick(2983) adding peer(1) success(true).
  51.430 Info MultiplayerManager.cpp:1527: Received peer info for peer(0) username(<server>).
  51.430 Info MultiplayerManager.cpp:1143: networkTick(2989) mapTick(1208833) received stateChanged peerID(0) oldState(InGame) newState(InGame)
  51.430 Info MultiplayerManager.cpp:1527: Received peer info for peer(1) username(Xolkiyr).
  51.430 Info MultiplayerManager.cpp:1143: networkTick(2989) mapTick(1208833) received stateChanged peerID(1) oldState(Ready) newState(Connecting)
  51.430 Info NetworkInputHandler.cpp:524: expectedMapTick(1208833) adding peer(1).
  51.431 Info MultiplayerManager.cpp:1527: Received peer info for peer(1) username(Xolkiyr).
  51.431 Info MultiplayerManager.cpp:1143: networkTick(2989) mapTick(1208833) received stateChanged peerID(1) oldState(Connecting) newState(Connecting)
  51.431 Info MultiplayerManager.cpp:1143: networkTick(2989) mapTick(1208833) received stateChanged peerID(1) oldState(Connecting) newState(VerifyingConnection)
  51.647 Info MultiplayerManager.cpp:1143: networkTick(3002) mapTick(1208834) received stateChanged peerID(1) oldState(VerifyingConnection) newState(ConnectedWaitingForMap)
  51.647 Info MultiplayerManager.cpp:996: networkTick(3002) mapTick(1208834) changing state from(InGame) to(InGameAligning)
  51.647 Info MultiplayerManager.cpp:1818: networkTick(3002) mapTick(1208834) starting mapAlign
  51.747 Info MultiplayerManager.cpp:1143: networkTick(3008) mapTick(1208834) received stateChanged peerID(0) oldState(InGame) newState(InGameAligning)
  51.747 Info MultiplayerManager.cpp:1752: networkTick(3008) mapTick(1208834) sending mapAlignAction
  51.847 Info MultiplayerManager.cpp:1390: networkTick(3014) mapTick(1208834) received MapAlignAction from peer(0), mapAlignTick(1208835) appliedTickClosuresCount(0)
  51.847 Info MultiplayerManager.cpp:1834: networkTick(3015) mapTick(1208834) mapAlign finished targetTick(1208835) updating map and running the tasks ...
  51.847 Info MultiplayerManager.cpp:1706: networkTick(3015) mapTick(1208834) peerID(0) fullStateLog: local state(InGameAligning) local peers(((peerID(0) state(InGameAligning) mapAlignTick(1208835))
((peerID(1) state(ConnectedWaitingForMap) mapAlignTick(-1))
)
  51.848 Info MultiplayerManager.cpp:1853: maptick(1208835) crc before applying all ticks: -1194918426
  51.848 Info NetworkInputHandler.cpp:670: applyAllTickClosures: expectedMapTick(1208835) lastTickApplied(1208826) referenceMapTick(1208835) networkTick(3015)
  51.848 Info NetworkInputHandler.cpp:694: applyAllTickClosures: applying tickClosure(tick(1208827) inputActions((CheckCRCHeuristic) ) ) for peer(0)
  51.848 Info NetworkInputHandler.cpp:694: applyAllTickClosures: applying tickClosure(tick(1208828) inputActions((CheckCRCHeuristic) ) ) for peer(0)
  51.848 Info NetworkInputHandler.cpp:694: applyAllTickClosures: applying tickClosure(tick(1208829) inputActions((CheckCRCHeuristic) ) ) for peer(0)
  51.848 Info NetworkInputHandler.cpp:694: applyAllTickClosures: applying tickClosure(tick(1208830) inputActions((CheckCRCHeuristic) ) ) for peer(0)
  51.848 Info NetworkInputHandler.cpp:694: applyAllTickClosures: applying tickClosure(tick(1208831) inputActions((CheckCRCHeuristic) ) ) for peer(0)
  51.848 Info NetworkInputHandler.cpp:694: applyAllTickClosures: applying tickClosure(tick(1208832) inputActions((CheckCRCHeuristic) ) ) for peer(0)
  51.848 Info NetworkInputHandler.cpp:694: applyAllTickClosures: applying tickClosure(tick(1208833) inputActions((CheckCRCHeuristic) ) ) for peer(0)
  51.848 Info MultiplayerManager.cpp:1861: maptick(1208835) crc after applying all ticks: -1194918426
  51.848 Info MultiplayerManager.cpp:996: networkTick(3015) mapTick(1208835) changing state from(InGameAligning) to(InGameAligned)
  51.848 Info MultiplayerManager.cpp:996: networkTick(3015) mapTick(1208835) changing state from(InGameAligned) to(InGameSavingMap)
  51.963 Info MultiplayerManager.cpp:1143: networkTick(3021) mapTick(1208835) received stateChanged peerID(0) oldState(InGameAligning) newState(InGameAligned)
  51.963 Info MultiplayerManager.cpp:1143: networkTick(3021) mapTick(1208835) received stateChanged peerID(0) oldState(InGameAligned) newState(InGameSavingMap)
  52.663 Info MultiplayerManager.cpp:996: networkTick(3064) mapTick(1208835) changing state from(InGameSavingMap) to(InGameSendingMap)
  52.684 Info MultiplayerManager.cpp:1260: MapTick(1208835) Serving map(/opt/factorio/temp/mp-download.zip) for peer(1) size(5979435) crc(-1394659909)
  52.780 Info MultiplayerManager.cpp:1143: networkTick(3070) mapTick(1208835) received stateChanged peerID(0) oldState(InGameSavingMap) newState(InGameSendingMap)
  52.880 Info MultiplayerManager.cpp:1143: networkTick(3076) mapTick(1208835) received stateChanged peerID(1) oldState(ConnectedWaitingForMap) newState(ConnectedDownloadingMap)
  56.247 Info MultiplayerManager.cpp:1143: networkTick(3278) mapTick(1208835) received stateChanged peerID(1) oldState(ConnectedDownloadingMap) newState(ConnectedLoadingMap)
  56.247 Canceling serving for peer 1
  56.247 Info MultiplayerManager.cpp:996: networkTick(3278) mapTick(1208835) changing state from(InGameSendingMap) to(InGameWaitingForOthers)
  56.347 Info MultiplayerManager.cpp:1143: networkTick(3284) mapTick(1208835) received stateChanged peerID(0) oldState(InGameSendingMap) newState(InGameWaitingForOthers)
  59.430 Info MultiplayerManager.cpp:1143: networkTick(3469) mapTick(1208835) received stateChanged peerID(1) oldState(ConnectedLoadingMap) newState(InGameWaitingForOthers)
  59.430 Info MultiplayerManager.cpp:1342: networkTick(3469) mapTick(1208835) stopping mapAlign
  59.430 Info MultiplayerManager.cpp:996: networkTick(3469) mapTick(1208835) changing state from(InGameWaitingForOthers) to(InGame)
  59.430 Info MultiplayerManager.cpp:1706: networkTick(3469) mapTick(1208835) peerID(0) fullStateLog: local state(InGame) local peers(((peerID(0) state(InGameWaitingForOthers) mapAlignTick(-1))
((peerID(1) state(InGameWaitingForOthers) mapAlignTick(-1))
)
  59.530 Info MultiplayerManager.cpp:1143: networkTick(3475) mapTick(1208841) received stateChanged peerID(0) oldState(InGameWaitingForOthers) newState(InGame)
  59.530 Info MultiplayerManager.cpp:1143: networkTick(3475) mapTick(1208841) received stateChanged peerID(1) oldState(InGameWaitingForOthers) newState(InGame)
  59.565 Info NetworkInputHandler.cpp:608: assigning playerIndex(0) to peer(1)
  59.565 Info GameActionHandler.cpp:2611: MapTick(1208844) processed PlayerJoinGame peerID(1) playerIndex(0) mode(connect)
7937.352 Error InterruptibleStdioStream.cpp:51: Reading stdin failed
Not sure whats causing it, did a safety save after it told me I'd gone local. But same cause. stdin failed to be read.

Post Reply

Return to “Resolved Problems and Bugs”