[0.14.20] crash local LAN on one PC

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
matjojo
Filter Inserter
Filter Inserter
Posts: 337
Joined: Wed Jun 17, 2015 6:08 pm
Contact:

[0.14.20] crash local LAN on one PC

Post by matjojo »

Tried to test my mod for multiplayer, could not join LAN game created on same pc, it did show up on the matching server.

To recreate:
  • open two games on the same pc
  • create lan game on instance 'one' (both where on the same name for this attempt, although the game did not say that.)
  • try to join via LAN menu (instance 'two')
  • does not show up (NOTE: public was checked in the multiplayer map creation, as well as LAN)
  • open 'show public games'
  • search for the game, it shows up
  • NOTE: I fiddled around a bit with the sorting thing, as I was interested in the longest running game
  • try to join: "Sendto (0.0.0.0:34197) failed: The requested address is not valid in its context."
  • think: I'll try the other way around
  • Here I thought about the fact that the two names where the same, and changed the name on instance 'one'
  • try to create a LAN game on instance 'two'
  • "The local port 0.0.0.0:34197 is already used. This could be caused by another instance of Factorio, or by another program using this port."
  • close the message, factorio crashed

I don't think the mod I'm working on is the problem, as the game on the other instance ('one', with identical mod-files) did not crash when loading the first game, but I don't know anything about the inside of factorio, so if you need the files, just ask.

Feel free to ask for more information.

log:
log
Last edited by matjojo on Tue Nov 22, 2016 10:50 am, edited 1 time in total.

daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: [0.14.20] crash local LAN on one PC

Post by daniel34 »

I think the issue here is that you are running both instances on the same port (of the same PC), Factorio standard port 34197.

You can set a different port for one instance in the [other] section of the config\config.ini or (only when running server/headless) using the --port N (or --bind ADDRESS[:PORT]) console options.
quick links: log file | graphical issues | wiki

matjojo
Filter Inserter
Filter Inserter
Posts: 337
Joined: Wed Jun 17, 2015 6:08 pm
Contact:

Re: [0.14.20] crash local LAN on one PC

Post by matjojo »

I've been doing this for ages though, I stopped doing it for about three weeks when trying to do some home automation, but it always just worked, did some network code get refactored?

matjojo
Filter Inserter
Filter Inserter
Posts: 337
Joined: Wed Jun 17, 2015 6:08 pm
Contact:

Re: [0.14.20] crash local LAN on one PC

Post by matjojo »

alrighty, I tried it again on my school's network, it worked.

See the log below

This makes me think it might have to do with my network setup at home? Could that be the case?

Also, I just remembered I was on the same username when trying for the first time when trying the first time, I'll edit the OP accordingly.



log from the hosting instance (note that I acidentilly closed the factorio windows VIA CTRL-C in the command promt, forgot that that would happen, Would it be useful to you guys to have the log that is made in the command promt?)

Code: Select all

   0.002 2016-11-22 11:39:38; Factorio 0.14.20 (build 25315, win64, steam)
   0.003 Operating system: Windows 10 (version 1607) 
   0.003 Program arguments: "C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe" 
   0.003 Read data path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/data
   0.003 Write data path: C:/Users/matth/AppData/Roaming/Factorio
   0.003 Binaries path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/bin
   0.039 System info: [CPU: Intel(R) Core(TM) i3-4005U CPU @ 1.70GHz, 4 cores, RAM: 12208MB]
   0.049 Display options: [FullScreen: 0] [VSync: 0] [UIScale: 100%] [MultiSampling: OFF] [Screen: 255]
   0.050 Available display adapters: 1
   0.051  [0]: \\.\DISPLAY1 - Intel(R) HD Graphics Family {0x8000005, [0,0], 1920x1080, 32bit, 60Hz}
   0.051 Create display on adapter 0. Size 1280x720 at position [310, 162].
   0.112 Initialised Direct3D:[0] Intel(R) HD Graphics Family; driver: igdumdim64.dll 20.19.15.4474
   0.126     Video memory size (dedicated video/dedicated system/shared system/available): 112/0/2048/2157 MB
   0.175 DSound: Starting _dsound_update thread
   0.176 DSound: Enter _dsound_update; tid=9944
   0.177 Device reset internal.
   0.184 Desktop composition is active.
   0.185 Graphics options: [Graphics quality: low] [Video memory usage: all] [Light scale: 30%] [DXT: auto]
   0.510 Loading mod core 0.0.0 (data.lua)
   0.528 Loading mod base 0.14.20 (data.lua)
   0.843 Loading mod FactorioTycoon 0.0.0 (data.lua)
   1.050 Checksum for core: 1291735968
   1.054 Checksum for mod base: 786624017
   1.055 Checksum for mod FactorioTycoon: 4128769826
   2.058 Info PlayerData.cpp:55: Local player-data.json available, timestamp 1479762075
   2.060 Info PlayerData.cpp:60: Cloud player-data.json available, timestamp 1479581464
   2.400 Initial atlas bitmap size is 8192
   2.406 Created atlas bitmap 8192x6033
   2.459 Created atlas bitmap 4096x4092
   2.466 Created atlas bitmap 4096x684
  36.608 Sprites loaded
  36.608 Convert atlas 4096x4092 to: compressed 
  38.795 Convert atlas 4096x684 to: compressed 
  39.830 Loading sounds...
  48.197 Custom inputs active: 1
  48.291 Factorio initialised
  48.344 Device reset internal.
  72.245 Info ServerSynchronizer.cpp:27: nextHeartbeatSequenceNumber(0) initialized Synchronizer nextTickClosureTick(0).
  72.246 Info ServerMultiplayerManager.cpp:658: mapTick(-1) changing state from(Ready) to(PreparedToHostGame)
  72.246 Info ServerMultiplayerManager.cpp:658: mapTick(-1) changing state from(PreparedToHostGame) to(CreatingGame)
  72.247 Info Scenario.cpp:152: Map version 0.14.20-1
  72.299 Checksum for script C:/Users/matth/AppData/Roaming/Factorio/temp/currently-playing/control.lua: 1057114497
  72.304 Checksum for script __FactorioTycoon__/control.lua: 325184595
  72.309 Info UDPSocket.cpp:27: Opening socket at (0.0.0.0:34197)
  72.310 Verbose RouterBase.cpp:37: Started router thread.
  72.310 Hosting game at 0.0.0.0:34197
  72.310 Info ServerMultiplayerManager.cpp:658: mapTick(0) changing state from(CreatingGame) to(InGame)
  72.312 Info UDPSocket.cpp:39: Opening socket for broadcast
  72.316 Info GameActionHandler.cpp:2556: MapTick(0) processed PlayerJoinGame peerID(0) playerIndex(0) mode(create)
 112.973 ConnectionRequestReplyConfirm (type(ConnectionRequestReplyConfirm) ) from(10.160.158.199:57888)
 112.975 Refusing connection for address(10.160.158.199:57888). Unknown key:"password-missing"
 115.723 ConnectionRequestReplyConfirm (type(ConnectionRequestReplyConfirm) ) from(10.160.158.199:57890)
 115.724 Info ServerRouter.cpp:413: Replying to connectionRequest for address(10.160.158.199:57890).
 115.767 Info ServerSynchronizer.cpp:524: nextHeartbeatSequenceNumber(1303) adding peer(1)
 115.795 Info ServerMultiplayerManager.cpp:658: mapTick(2606) changing state from(InGame) to(InGameSavingMap)
 115.798 Verbose ServerSynchronizer.cpp:405: nextHeartbeatSequenceNumber(1304) Processing synchronizer action(ClientChangedState) from peer(1)
 115.799 Info ServerMultiplayerManager.cpp:742: mapTick(2606) received stateChanged peerID(1) oldState(Ready) newState(ConnectedWaitingForMap)
 115.807 Verbose Scenario.cpp:552: Saving game as C:\Users\matth\AppData\Roaming\Factorio\temp/mp-save-0
 116.088 Verbose Scenario.cpp:643: Time to save game: 0.281233
 116.091 Info ServerMultiplayerManager.cpp:779: MapTick(2606) Serving map(C) for peer(1) size(82317) crc(884338535)
 116.094 Info ServerMultiplayerManager.cpp:658: mapTick(2606) changing state from(InGameSavingMap) to(InGame)
 116.140 Verbose ServerSynchronizer.cpp:405: nextHeartbeatSequenceNumber(1314) Processing synchronizer action(ClientChangedState) from peer(1)
 116.141 Info ServerMultiplayerManager.cpp:742: mapTick(2608) received stateChanged peerID(1) oldState(ConnectedWaitingForMap) newState(ConnectedDownloadingMap)
 116.144 Verbose ServerSynchronizer.cpp:405: nextHeartbeatSequenceNumber(1314) Processing synchronizer action(MapDownloadingProgressUpdate) from peer(1)
 116.173 Verbose ServerSynchronizer.cpp:405: nextHeartbeatSequenceNumber(1315) Processing synchronizer action(MapDownloadingProgressUpdate) from peer(1)
 116.207 Verbose ServerSynchronizer.cpp:405: nextHeartbeatSequenceNumber(1316) Processing synchronizer action(MapDownloadingProgressUpdate) from peer(1)
 116.241 Verbose ServerSynchronizer.cpp:405: nextHeartbeatSequenceNumber(1317) Processing synchronizer action(ClientChangedState) from peer(1)
 116.243 Info ServerMultiplayerManager.cpp:742: mapTick(2614) received stateChanged peerID(1) oldState(ConnectedDownloadingMap) newState(ConnectedLoadingMap)
 116.247 Verbose ServerSynchronizer.cpp:405: nextHeartbeatSequenceNumber(1317) Processing synchronizer action(MapLoadingProgressUpdate) from peer(1)
 116.248 Verbose ServerSynchronizer.cpp:405: nextHeartbeatSequenceNumber(1317) Processing synchronizer action(MapDownloadingProgressUpdate) from peer(1)
 116.440 Verbose ServerSynchronizer.cpp:405: nextHeartbeatSequenceNumber(1323) Processing synchronizer action(MapLoadingProgressUpdate) from peer(1)
 116.539 Verbose ServerSynchronizer.cpp:405: nextHeartbeatSequenceNumber(1326) Processing synchronizer action(MapLoadingProgressUpdate) from peer(1)
 116.540 Verbose ServerSynchronizer.cpp:405: nextHeartbeatSequenceNumber(1326) Processing synchronizer action(ClientChangedState) from peer(1)
 116.542 Info ServerMultiplayerManager.cpp:742: mapTick(2632) received stateChanged peerID(1) oldState(ConnectedLoadingMap) newState(TryingToCatchUp)
 116.545 Verbose ServerSynchronizer.cpp:405: nextHeartbeatSequenceNumber(1326) Processing synchronizer action(CatchingUpProgressUpdate) from peer(1)
 116.573 Verbose ServerSynchronizer.cpp:405: nextHeartbeatSequenceNumber(1327) Processing synchronizer action(CatchingUpProgressUpdate) from peer(1)
 116.606 Verbose ServerSynchronizer.cpp:405: nextHeartbeatSequenceNumber(1328) Processing synchronizer action(ClientChangedState) from peer(1)
 116.607 Info ServerMultiplayerManager.cpp:742: mapTick(2636) received stateChanged peerID(1) oldState(TryingToCatchUp) newState(WaitingForCommandToStartSendingTickClosures)
 116.610 Verbose ServerSynchronizer.cpp:405: nextHeartbeatSequenceNumber(1328) Processing synchronizer action(CatchingUpProgressUpdate) from peer(1)
 116.612 Info GameActionHandler.cpp:2556: MapTick(2636) processed PlayerJoinGame peerID(1) playerIndex(1) mode(create)
 116.673 Verbose ServerSynchronizer.cpp:405: nextHeartbeatSequenceNumber(1330) Processing synchronizer action(ClientChangedState) from peer(1)
 116.675 Info ServerMultiplayerManager.cpp:742: mapTick(2640) received stateChanged peerID(1) oldState(WaitingForCommandToStartSendingTickClosures) newState(InGame)
 122.657 Verbose ServerSynchronizer.cpp:699: Peer 1 decreasing latency from 32 to 10 as buffer was always bigger than 23
 132.656 Verbose ServerSynchronizer.cpp:699: Peer 1 decreasing latency from 10 to 9 as buffer was always bigger than 2
 142.656 Verbose ServerSynchronizer.cpp:699: Peer 1 decreasing latency from 9 to 8 as buffer was always bigger than 2
 182.657 Verbose ServerSynchronizer.cpp:699: Peer 1 decreasing latency from 8 to 7 as buffer was always bigger than 2
 192.657 Verbose ServerSynchronizer.cpp:699: Peer 1 decreasing latency from 7 to 6 as buffer was always bigger than 2
 201.006 Verbose ServerSynchronizer.cpp:405: nextHeartbeatSequenceNumber(3858) Processing synchronizer action(PeerDisconnect) from peer(1)
 201.007 Info ServerMultiplayerManager.cpp:822: Disconnect notification for peer (1)
 201.008 Verbose ServerSynchronizer.cpp:405: nextHeartbeatSequenceNumber(3858) Processing synchronizer action(ClientChangedState) from peer(1)
 201.010 Info ServerMultiplayerManager.cpp:742: mapTick(7700) received stateChanged peerID(1) oldState(InGame) newState(DisconnectScheduled)
 201.041 Info ServerSynchronizer.cpp:539: nextHeartbeatSequenceNumber(3859) removing peer(1).
 207.908 Info ServerMultiplayerManager.cpp:115: Disconnecting multiplayer connection.
 207.909 Info ServerMultiplayerManager.cpp:658: mapTick(8115) changing state from(InGame) to(DisconnectingScheduled)
 207.924 Info ServerMultiplayerManager.cpp:658: mapTick(8115) changing state from(DisconnectingScheduled) to(Disconnecting)
 207.940 Info ServerMultiplayerManager.cpp:658: mapTick(8115) changing state from(Disconnecting) to(Disconnected)
 207.941 Info ServerMultiplayerManager.cpp:139: Quitting multiplayer connection.
 207.942 Info ServerMultiplayerManager.cpp:658: mapTick(8115) changing state from(Disconnected) to(Closed)
 207.992 Info UDPSocket.cpp:235: Socket closed
 208.008 Verbose RouterBase.cpp:48: Finishing router thread.
 208.009 Info UDPSocket.cpp:235: Socket closed
 221.528 Received SIGINT, shutting down

matjojo
Filter Inserter
Filter Inserter
Posts: 337
Joined: Wed Jun 17, 2015 6:08 pm
Contact:

Re: [0.14.20] crash local LAN on one PC

Post by matjojo »

I tried it again at home, it seems to work now. Really weird. I almost feel bad for reporting now, as it seems like it was a problem made by me. Be sure to ask if there is more information that you'd need!
  • start instance 'one'
  • start instance 'two'
  • select a different name on instance 'two' (names are now respectively "matjojo" and "matjojottest")
  • set up the server in instance 'one'
  • settings default, except:
  • non-public
  • no autosaves
  • none of the three bottom boxes ticked (don't remember what they say.)
  • start the world.
  • join with 'two' via the LAN section
  • it all goes well
  • what?

the logs from the hosting instance 'one'
CommandPromt
log-file

Post Reply

Return to “1 / 0 magic”