Page 1 of 1

[0.13] Linux headless crashes, logs included

Posted: Mon Jun 27, 2016 8:24 pm
by Killkrog
Scenario:

Vanilla 0.13 Client (Windows) and Vanilla 0.13 Headless (Linux obviously) installed.

Created game on windows, saved, uploaded save file.

Started server with the new --start-server-load-latest parameter. Server starts, but crashes once first client connects.
Permissions are all well set.

Here the log file:

Code: Select all

   0.000 2016-06-27 22:27:14; Factorio 0.13.0 (Build 22782, linux64, headless)
   0.000 Operating system: Linux
   0.000 Not rotating logs.
   0.000 Program arguments: "/etc/factorio/bin/x64/factorio" "--start-server-load-latest" "--latency-ms" "100" "--autosave-slots" "3" "--autosave-interval" "15" "--port" "12345" 
   0.000 Read data path: /etc/factorio/data
   0.000 Write data path: /etc/factorio
   0.000 Binaries path: /etc/factorio/bin
   0.011 Running in headless mode
   0.013 Loading mod core 0.0.0 (data.lua)
   0.017 Loading mod base 0.13.0 (data.lua)
   0.119 Checksum for core: 1399339455
   0.120 Checksum for mod base: 2039900801
   0.520 Custom inputs active: 0
   0.521 Factorio initialised
   0.522 Info Router.cpp:563: Router peerID(65535) shutting down.
   0.522 Info Router.cpp:594: Router state -> Disconnected
   0.524 Info MultiplayerManager.cpp:999: networkTick(0) mapTick(-1) changing state from(Ready) to(PreparedToHostGame)
   0.524 Info MultiplayerManager.cpp:999: networkTick(0) mapTick(-1) changing state from(PreparedToHostGame) to(CreatingGame)
   0.524 Loading map /etc/factorio/saves/Megabase.zip
   0.549 Info Scenario.cpp:129: Map version 0.13.0-93
   0.632 Checksum for script /etc/factorio/temp/currently-playing/control.lua: 900459546
   0.645 Info PosixUDPSocket.cpp:50: Opening socket at port 12345
   0.645 Info Router.cpp:594: Router state -> Connected
   0.645 Info Synchronizer.cpp:56: NetworkTick(0) initialized Synchronizer local peer(0) latency(6).
   0.645 Hosting game at port 12345, peerID 0, session magic 1731
   0.645 Info MultiplayerManager.cpp:999: networkTick(0) mapTick(28) changing state from(CreatingGame) to(InGame)
   0.645 Info NetworkInputHandler.cpp:45: mapTick(28) networkTick(0) initialized NetworkInputHandler local peer(0).
   0.763 Info MultiplayerManager.cpp:1530: Received peer info for peer(0) username(<server>).
   0.763 Info MultiplayerManager.cpp:1146: networkTick(6) mapTick(28) received stateChanged peerID(0) oldState(Ready) newState(CreatingGame)
   0.763 Info MultiplayerManager.cpp:1146: networkTick(6) mapTick(28) received stateChanged peerID(0) oldState(CreatingGame) newState(InGame)
  29.445 Connection request(type(ConnectionRequest) applicationVersion(0.13.0 (Build 22782, linux64, headless)) activeMods((base 0.13.0) ) hasPassword(no) connectionRequestID(65067)) from(188.174.191.241:50092)
  29.445 Info Router.cpp:676: NetworkTick(1727) replying to connectionRequest for address(188.174.191.241:50092).
  29.545 Info Router.cpp:898: networkTick(1733) adding peer(1) address(188.174.191.241:50092) sending connectionAccept(true)
  29.545 Info Router.cpp:710: networkTick(1733) sending connectionAccept to address(188.174.191.241:50092) connectionRequestID(65067) newPeerID(1)
  29.545 Info Synchronizer.cpp:522: networkTick(1733) adding peer(1) success(true).
  29.712 Info MultiplayerManager.cpp:1530: Received peer info for peer(0) username(<server>).
  29.712 Info MultiplayerManager.cpp:1146: networkTick(1739) mapTick(38) received stateChanged peerID(0) oldState(InGame) newState(InGame)
  29.712 Info MultiplayerManager.cpp:1530: Received peer info for peer(1) username(Killkrog).
  29.712 Info MultiplayerManager.cpp:1146: networkTick(1739) mapTick(38) received stateChanged peerID(1) oldState(Ready) newState(Connecting)
  29.712 Info NetworkInputHandler.cpp:524: expectedMapTick(38) adding peer(1).
  29.712 Info MultiplayerManager.cpp:1530: Received peer info for peer(1) username(Killkrog).
  29.712 Info MultiplayerManager.cpp:1146: networkTick(1739) mapTick(38) received stateChanged peerID(1) oldState(Connecting) newState(Connecting)
  29.712 Info MultiplayerManager.cpp:1146: networkTick(1739) mapTick(38) received stateChanged peerID(1) oldState(Connecting) newState(VerifyingConnection)
  29.928 Info MultiplayerManager.cpp:1146: networkTick(1752) mapTick(39) received stateChanged peerID(1) oldState(VerifyingConnection) newState(ConnectedWaitingForMap)
  29.928 Info MultiplayerManager.cpp:999: networkTick(1752) mapTick(39) changing state from(InGame) to(InGameAligning)
  29.929 Info MultiplayerManager.cpp:1821: networkTick(1752) mapTick(39) starting mapAlign
  30.028 Info MultiplayerManager.cpp:1146: networkTick(1758) mapTick(39) received stateChanged peerID(0) oldState(InGame) newState(InGameAligning)
  30.028 Info MultiplayerManager.cpp:1755: networkTick(1758) mapTick(39) sending mapAlignAction
  30.128 Info MultiplayerManager.cpp:1393: networkTick(1764) mapTick(39) received MapAlignAction from peer(0), mapAlignTick(40) appliedTickClosuresCount(0)
  30.128 Info MultiplayerManager.cpp:1837: networkTick(1765) mapTick(39) mapAlign finished targetTick(40) updating map and running the tasks ...
  30.129 Info MultiplayerManager.cpp:1709: networkTick(1765) mapTick(39) peerID(0) fullStateLog: local state(InGameAligning) local peers(((peerID(0) state(InGameAligning) mapAlignTick(40))
((peerID(1) state(ConnectedWaitingForMap) mapAlignTick(-1))
)
  30.130 Info MultiplayerManager.cpp:1856: maptick(40) crc before applying all ticks: -972143329
  30.130 Info NetworkInputHandler.cpp:670: applyAllTickClosures: expectedMapTick(40) lastTickApplied(31) referenceMapTick(40) networkTick(1765)
  30.130 Info NetworkInputHandler.cpp:694: applyAllTickClosures: applying tickClosure(tick(32) inputActions((CheckCRCHeuristic) ) ) for peer(0)
  30.130 Info NetworkInputHandler.cpp:694: applyAllTickClosures: applying tickClosure(tick(33) inputActions((CheckCRCHeuristic) ) ) for peer(0)
  30.130 Info NetworkInputHandler.cpp:694: applyAllTickClosures: applying tickClosure(tick(34) inputActions((CheckCRCHeuristic) ) ) for peer(0)
  30.130 Info NetworkInputHandler.cpp:694: applyAllTickClosures: applying tickClosure(tick(35) inputActions((CheckCRCHeuristic) ) ) for peer(0)
  30.130 Info NetworkInputHandler.cpp:694: applyAllTickClosures: applying tickClosure(tick(36) inputActions((CheckCRCHeuristic) ) ) for peer(0)
  30.130 Info NetworkInputHandler.cpp:694: applyAllTickClosures: applying tickClosure(tick(37) inputActions((CheckCRCHeuristic) ) ) for peer(0)
  30.130 Info NetworkInputHandler.cpp:694: applyAllTickClosures: applying tickClosure(tick(38) inputActions((CheckCRCHeuristic) ) ) for peer(0)
  30.130 Info MultiplayerManager.cpp:1864: maptick(40) crc after applying all ticks: -972143329
  30.131 Info MultiplayerManager.cpp:999: networkTick(1765) mapTick(40) changing state from(InGameAligning) to(InGameAligned)
  30.131 Info MultiplayerManager.cpp:999: networkTick(1765) mapTick(40) changing state from(InGameAligned) to(InGameSavingMap)
  30.145 Error MultiplayerManager.cpp:129: MultiplayerManager failed: multiplayer.cannot-save-map("locale::facet::_S_create_c_locale name not valid")
  30.145 Info MultiplayerManager.cpp:999: networkTick(1766) mapTick(40) changing state from(InGameSavingMap) to(Failed)
  33.663 Received SIGINT, shutting down
  33.663 Info MainLoop.cpp:698: Saving map as /etc/factorio/saves/Megabase.zip
  33.664 Error Util.cpp:57: locale::facet::_S_create_c_locale name not valid
  33.664 Warning NetworkInputHandler.cpp:765: mapTick(40) networkTick(1766) disconnecting from player but already disconnected.
  33.713 Error GlobalContext.cpp:1023: Couldn't save config: locale::facet::_S_create_c_locale name not valid
  33.713 Info MultiplayerManager.cpp:180: NetworkTick(1766) quitting multiplayer connection.
  33.713 Info MultiplayerManager.cpp:999: networkTick(1766) mapTick(-1) changing state from(Failed) to(Disconnected)
Factorio crashed. Generating symbolized stacktrace, please wait ...
  33.719 Warning Logger.cpp:356: Couldn't symbolize stacktrace: (resolving symbol failed: fread)

#0  0x90352d
#1  0x805a7b
#2  0x805cf4
#3  0x7f6573a654e0
#4  0x7f6573a65458
#5  0x7f6573a668da
#6  0xf473bd
#7  0xf3bb66
#8  0xf9e719
#9  0xf3cd35
#10 0x7f6573de5d5b
#11 0x7f6573de61b8
#12 0x4ca709
#13 0x8d5ec4
#14 0xb7a86c
#15 0xc79f8a
#16 0x7f6573a525f0
#17 0x406329
  33.722 Warning Logger.cpp:356: Couldn't symbolize stacktrace: (resolving symbol failed: fread)

  33.722 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.
Help is appreciated! Perhaps I can play tomorrow :'(

Re: [0.13] Linux headless crashes, logs included

Posted: Mon Jun 27, 2016 8:28 pm
by Oxyd
Can you provide the output of the

Code: Select all

locale
command in your Linux shell?

Re: [0.13] Linux headless crashes, logs included

Posted: Mon Jun 27, 2016 8:49 pm
by Killkrog

Code: Select all

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=de_DE.UTF-8
LANGUAGE=
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=
Thanks btw for the late help!
Make sure to not stay too long at the office!

Re: [0.13] Linux headless crashes, logs included

Posted: Tue Jun 28, 2016 1:13 pm
by Killkrog
Ha, you are great ^^

Because you asked about the locales, I was like "wtf does it gimme errors?"
So i dug into debian (im very new to linux, really just rented the server to play around and get some knowledge in)
Back in the day I had to hacky install some experimental versions from GLIBC so that i could start the headless server. I was using wheezy and my lib version was too old, hence the experimental one.
I found some weird connections between GLIBC and locales, so I updated to 8.0 Jessie which had a higher lib version and no problems with locales. Now everything works!

Thanks again!