Afforess / Big_Brother

Factorio Mod - Big Brother
ISC License
10 stars 12 forks source link

Server crash on start with Error while running event Big_Brother::on_tick #3

Closed Fank closed 6 years ago

Fank commented 7 years ago

Original post: https://mods.factorio.com/mods/Afforess/Big_Brother/discussion/15488

Server logs:

  13.826 Hosting game at 0.0.0.0:34197
  13.826 Info ServerMultiplayerManager.cpp:670: mapTick(15437989) changing state from(CreatingGame) to(InGame)
  13.846 Info RemoteCommandProcessor.cpp:122: Starting RCON interface at port 27015
  13.846 Error InterruptibleStdioStream.cpp:53: Reading stdin failed
  24.073 ConnectionRequestReplyConfirm (type(ConnectionRequestReplyConfirm) ) from(10.255.0.4:41215)
  24.073 Info ServerRouter.cpp:389: Replying to connectionRequest for address(10.255.0.4:41215).
  24.074 Info ServerSynchronizer.cpp:551: nextHeartbeatSequenceNumber(303) adding peer(1)
  24.091 Info ServerMultiplayerManager.cpp:670: mapTick(15437989) changing state from(InGame) to(InGameSavingMap)
  24.159 Info ServerMultiplayerManager.cpp:754: mapTick(15437989) received stateChanged peerID(1) oldState(Ready) newState(ConnectedWaitingForMap)
  25.865 Info ServerMultiplayerManager.cpp:814: MapTick(15437989) Serving map(/opt/factorio/temp/mp-save-0.zip) for peer(1) size(11892476) crc(1161137593)
  25.865 Info ServerMultiplayerManager.cpp:670: mapTick(15437989) changing state from(InGameSavingMap) to(InGame)
  25.983 Info ServerMultiplayerManager.cpp:754: mapTick(15437989) received stateChanged peerID(1) oldState(ConnectedWaitingForMap) newState(ConnectedDownloadingMap)
  28.406 Info ServerMultiplayerManager.cpp:754: mapTick(15437989) received stateChanged peerID(1) oldState(ConnectedDownloadingMap) newState(ConnectedLoadingMap)
  28.424 Error MainLoop.cpp:943: Exception at tick 15437989: Error while running event Big_Brother::on_tick (ID 0)
__Big_Brother__/stdlib/event/event.lua:77: __Big_Brother__/control.lua:91: attempt to index upvalue '_ENV' (a nil value)
  28.424 Error ServerMultiplayerManager.cpp:94: MultiplayerManager failed: "Error while running event Big_Brother::on_tick (ID 0)
__Big_Brother__/stdlib/event/event.lua:77: __Big_Brother__/control.lua:91: attempt to index upvalue '_ENV' (a nil value)"
  28.424 Info ServerMultiplayerManager.cpp:670: mapTick(15437989) changing state from(InGame) to(Failed)
  28.798 Info ServerMultiplayerManager.cpp:140: Quitting multiplayer connection.
  28.798 Info ServerMultiplayerManager.cpp:670: mapTick(-1) changing state from(Failed) to(Closed)
  28.843 Info UDPSocket.cpp:234: Socket closed
  28.843 Goodbye

mod list:

# ls
aai-industry_0.1.9.zip                 alien-biomes_0.2.7.zip                angelsrefining_0.7.14.zip  boblogistics_0.15.6.zip         bullet-trails_0.2.4.zip         mod-settings.json
aai-programmable-structures_0.3.8.zip  angelsaddons-oresilos_0.3.1.zip       angelssmelting_0.3.3.zip   bobmining_0.15.2.zip            data-raw-prototypes_0.3.1.zip   off-grid-effects_0.2.2.zip
aai-programmable-vehicles_0.3.23.zip   angelsaddons-petrotrain_0.2.0.zip     AutoDeconstruct_0.1.8.zip  bobmodules_0.15.3.zip           detached-gun-sounds_0.2.1.zip   rso-mod_3.3.9.zip
aai-signals_0.2.4.zip                  angelsaddons-pressuretanks_0.2.0.zip  auto-research_3.3.1.zip    bobores_0.15.6.zip              Electric Furnaces_2.3.0.zip     Single-Splitter_0.0.12.zip
aai-vehicles-chaingunner_0.2.4.zip     angelsaddons-warehouses_0.2.1.zip     Big_Brother_0.4.3.zip      bobplates_0.15.11.zip           EquipmentHotkeys_0.0.2.zip      Squeak Through_1.1.7.zip
aai-vehicles-flame-tumbler_0.2.3.zip   angelsbioprocessing_0.4.0.zip         bobassembly_0.15.6.zip     bobpower_0.15.3.zip             Expanded_Robot_Tech_0.5.2.zip   Swarm_1.1.0.zip
aai-vehicles-hauler_0.2.3.zip          angelscomponents_0.2.0.zip            bobelectronics_0.15.2.zip  bobrevamp_0.15.4.zip            Factorissimo2_2.1.7.zip         upgrade-planner_1.2.18.zip
aai-vehicles-laser-tank_0.2.1.zip      angelsexploration_0.2.0.zip           bobenemies_0.15.2.zip      bobtech_0.15.3.zip              Flow Control_3.0.2.zip          walls-block-spitters_0.2.3.zip
aai-vehicles-miner_0.2.10.zip          angelsinfiniteores_0.6.11.zip         bobgreenhouse_0.15.2.zip   bobvehicleequipment_0.15.2.zip  Honk_2.1.3.zip                  WaterWell_1.0.18.zip
aai-vehicles-warden_0.1.2.zip          angelslogistics_0.2.0.zip             bobinserters_0.15.1.zip    bobwarfare_0.15.3.zip           LogisticTrainNetwork_1.3.2.zip
aai-zones_0.2.2.zip                    angelspetrochem_0.5.9.zip             boblibrary_0.15.8.zip      Bottleneck_0.8.5.zip            mod-list.json

can bundle mods & savegame if requested

Fank commented 7 years ago

I did happend after a server update from 0.15.20 -> 0.15.21, will try a downgrade and look if it works. And nope still the same problem, but on client side instead of server.

Sleeeper commented 6 years ago

same problem here, though my other save with different map doesn't have the error. And multiplayer game with separate player forces has the error (when loaded locally - too).

Afforess commented 6 years ago

@Sleeeper post a full log like @Fank did above, please. The latest release of Big Brother no longer uses on_tick and should not be causing the crash that @Fank reported. I just forgot to close the ticket.

Sleeeper commented 6 years ago

Well yeah i'm having similar error with latest (0.4.3 ?) version: https://github.com/Afforess/Big_Brother/issues/5