[0.12.22] [kovarex] Crash when loading via LUA

This subforum contains all the issues which we already resolved.
ibsteveog
Burner Inserter
Burner Inserter
Posts: 14
Joined: Wed Dec 04, 2013 4:53 am
Contact:

[0.12.22] [kovarex] Crash when loading via LUA

Post by ibsteveog »

I was playing with the console in 0.12.22 to figure out how the LUA stuff worked.

I ran this in the console:

Code: Select all

/c game.save("test")
/c game.load("test")
Upon running the 2nd command, the game crashed.

OS: Mac OS X (latest El Capitan)
Mods: None
Game Setup: I started the game via command line script as follows:

Code: Select all

./factorio --create test
./factorio --mp-load-game test.zip
Log file:

Code: Select all

  ... snipping startup - it's in the code tag below this one if you really want to see it ... 
  12.626 Info GameActionHandler.cpp:1940: MapTick(9) processed PlayerJoinGame peerID(0) playerIndex(0) mode(create)
  58.119 Info NetworkInputHandler.cpp:729: mapTick(2736) networkTick(2736) disconnecting from player.
  58.126 Info MultiplayerManager.cpp:129: NetworkTick(2736) disconnecting multiplayer connection.
  58.126 Info NetworkInputHandler.cpp:59: expectedMapTick(2736) sending PlayerLeaveGame
  58.128 Info Scenario.cpp:68: Loading inner save test
  58.128 Info Scenario.cpp:123: Map version 0.12.22-0
  58.608 Info MultiplayerManager.cpp:1364: Disconnect notification for peer (0)
  58.608 Info MultiplayerManager.cpp:956: networkTick(2742) mapTick(-1) removing peer(0) dropout(false)
  58.608 Info MultiplayerManager.cpp:869: networkTick(2742) mapTick(-1) changing state from(InGame) to(InGameAligning)
  58.608 Info MultiplayerManager.cpp:1604: networkTick(2742) mapTick(-1) starting mapAlign
  58.608 Info MultiplayerManager.cpp:1518: networkTick(2742) mapTick(-1) adding mapAlignTask(RemovePlayerAlignTask)
  58.608 Info MultiplayerManager.cpp:1006: networkTick(2748) mapTick(-1) received stateChanged peerID(0) oldState(InGame) newState(InGameAligning)
  58.608 Info MultiplayerManager.cpp:1538: networkTick(2748) mapTick(-1) sending mapAlignAction
  58.608 Error MultiplayerManager.cpp:1542: Cannot run map align without a map.
Factorio crashed. Generating symbolized stacktrace, please wait ...
#0  0x7fff92441eaa in 0x7fff92441eaa
#1  0x7000001163a0 in 0x7000001163a0
#2  0x7fff8ef796e7 in 0x7fff8ef796e7
#3  0x10041fb14 in MultiplayerManager::trySendingMapAlign() (in factorio) + 964
#4  0x10041f57d in MultiplayerManager::performMapTransferLogic() (in factorio) + 109
#5  0x100424308 in MultiplayerManager::receivePeerStateChanged(unsigned short, unsigned char) (in factorio) + 1416
#6  0x10043db5b in Synchronizer::applySynchronizerActions(Heartbeat const&, unsigned short, bool&) (in factorio) + 411
#7  0x10043d205 in Synchronizer::tryToApplyHeartbeats() (in factorio) + 565
#8  0x10041f31a in Synchronizer::update() (in factorio) + 58
#9  0x10041e4fa in MultiplayerManager::updateInternal() (in factorio) + 266
#10 0x10032f334 in MultiplayerManager::update() (in factorio) + 212
#11 0x10032efac in MainLoop::updateLoop(ThreadBarrier*, boost::chrono::time_point<boost::chrono::steady_clock, boost::chrono::duration<long long, boost::ratio<1l, 1000000000l> > >*, boost::chrono::time_point<boost::chrono::steady_clock, boost::chrono::duration<long long, boost::ratio<1l, 1000000000l> > >*, bool*, bool) (in factorio) + 236
#12 0x10045732e in Thread::loop() (in factorio) + 254
#13 0x1009226a6 in boost::(anonymous namespace)::thread_proxy(void*) (in factorio) + 54
#14 0x7fff8f372c13 in 0x7fff8f372c13
#15 0x7fff8f372b90 in 0x7fff8f372b90
#16 0x7fff8f370375 in 0x7fff8f370375
  59.288 Error Util.cpp:63: Unexpected error occurred. You can help us to solve the problem by posting the contents of the log file on the Factorio forums.
The startup stuff before the error:

Code: Select all

   0.000 2016-01-24 00:52:09; Factorio 0.12.22 (Build 17589, mac)
   0.000 Operating system: Mac OS X 10.11.2
   0.000 Program arguments: "/Applications/factorio.app" "--mp-load-game" "test.zip" 
   0.000 Read data path: /Applications/factorio.app/Contents/data
   0.000 Write data path: /Users/[REDACTED]/Library/Application Support/factorio
   0.000 Binaries path: /
   0.011 Available display adapters: 1
   0.011  [0]: resolution 1440x900px at [0,0]
   0.011 Create display on adapter 0. Size 1280x720 at position [70, 72]. Monitor 0
   0.755 Initialised OpenGL:[0] NVIDIA GeForce GT 650M OpenGL Engine; driver: 2.1 NVIDIA-10.8.14 310.42.15f01
   0.819 Graphics options: [FullScreen: false] [VSync: true] [UIScale: 100%] [MultiSampling: OFF] [Graphics quality: low] [Video memory usage: all] [Light scale: 20%] [Screen: 255]
   0.863 Loading mod core 0.0.0 (data.lua)
   0.865 Loading mod base 0.12.22 (data.lua)
   1.284 Initial atlas bitmap size is 16384
   1.287 Created atlas bitmap 16384x3394
  11.812 Info Updater.cpp:752: Downloading https://www.factorio.com/updater/get-available-versions?username=[REDACTED]&token=<private>&apiVersion=2
  12.393 0 packages available to download (experimental updates enabled).
  12.446 Factorio initialised
  12.447 Info Router.cpp:556: Router peerID(65535) shutting down.
  12.447 Info Router.cpp:582: Router state -> Disconnected
  12.447 Info MultiplayerManager.cpp:869: networkTick(0) mapTick(-1) changing state from(Ready) to(PreparedToHostGame)
  12.447 Info MultiplayerManager.cpp:869: networkTick(0) mapTick(-1) changing state from(PreparedToHostGame) to(CreatingGame)
  12.447 Loading map /Users/[REDACTED]/Library/Application Support/factorio/saves/test.zip
  12.464 Info Scenario.cpp:123: Map version 0.12.22-0
  12.490 Info MultiplayerManager.cpp:277: 0x1482857a0, 0x0
  12.490 Info PosixUDPSocket.cpp:34: Opening socket at port 34197
  12.491 Info Router.cpp:582: Router state -> Connected
  12.491 Info Synchronizer.cpp:54: NetworkTick(0) initialized Synchronizer local peer(0) latency(6).
  12.491 Hosting game at port 34197, peerID 0, session magic 3523
  12.491 Info MultiplayerManager.cpp:299: 0x1482857a0, 0x1482857a0
  12.491 Info MultiplayerManager.cpp:869: networkTick(0) mapTick(0) changing state from(CreatingGame) to(InGame)
  12.491 Info NetworkInputHandler.cpp:40: mapTick(0) networkTick(0) initialized NetworkInputHandler local peer(0).
  12.612 Info MultiplayerManager.cpp:1331: Received peer info for peer(0) username([REDACTED]).
  12.612 Info MultiplayerManager.cpp:1006: networkTick(6) mapTick(7) received stateChanged peerID(0) oldState(Ready) newState(CreatingGame)
  12.612 Info MultiplayerManager.cpp:1006: networkTick(6) mapTick(7) received stateChanged peerID(0) oldState(CreatingGame) newState(InGame)
  12.626 Info NetworkInputHandler.cpp:712: mapTick(9) networkTick(8) connecting to player([REDACTED]).
  12.626 Info NetworkInputHandler.cpp:570: assigning playerIndex(0) to peer(0)
kovarex
Factorio Staff
Factorio Staff
Posts: 8207
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.12.22] [kovarex] Crash when loading via LUA

Post by kovarex »

Hello, I solved the crash itself, but it still makes the multiplayer game to be disconnected.
We might make this work in 0.13.
Post Reply

Return to “Resolved Problems and Bugs”