[15.34] Crashing when searching for Multiplayer games

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
AvalonSpire
Burner Inserter
Burner Inserter
Posts: 9
Joined: Thu Mar 30, 2017 1:30 am
Contact:

[15.34] Crashing when searching for Multiplayer games

Post by AvalonSpire »

Factorio was working last night. This morning when I tried to list Multiplayer public games it started crashing. Crash log below. (Start Factorio-->Play-->Multiplayer-->Browse public games-->The games will list-->Wait a few seconds and do nothing-->Crash). No Mods.

Code: Select all

   0.003 2017-08-30 09:29:13; Factorio 0.15.34 (build 30875, win64, steam)
   0.003 Operating system: Windows 7 Service Pack 1
   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/XXXXX/AppData/Roaming/Factorio
   0.003 Binaries path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/bin
   0.014 System info: [CPU: Intel(R) Core(TM) i5 CPU         750  @ 2.67GHz, 4 cores, RAM: 16375MB]
   0.014 Display options: [FullScreen: 0] [VSync: 0] [UIScale: 100%] [MultiSampling: OFF] [Screen: 255] [Lang: en]
   0.016 Available display adapters: 2
   0.016  [0]: \\.\DISPLAY1 - NVIDIA GeForce GTX 1080 {0x05, [0,0], 3440x1440, 32bit, 100Hz}
   0.017  [1]: \\.\DISPLAY2 - NVIDIA GeForce GTX 1080 {0x01, [-1200,126], 1200x1600, 32bit, 60Hz}
   0.017 Create display on adapter 0. Size 1280x720 at position [1070, 342].
   0.180 Initialised Direct3D:[0] NVIDIA GeForce GTX 1080; driver: nvd3dumx.dll 22.21.13.8476
   0.184     Video memory size (dedicated video/dedicated system/shared system/available): 8069/0/7931/3710 MB
   0.228 DSound: Starting _dsound_update thread
   0.228 DSound: Enter _dsound_update; tid=2364
   0.228 Device reset internal.
   0.230 Desktop composition is active.
   0.230 Graphics settings preset: very-high
   0.231 Graphics options: [Graphics quality: normal] [Video memory usage: all] [Light scale: 100%] [DXT: false] [Shader: 1]
   0.421 Loading mod core 0.0.0 (data.lua)
   0.432 Loading mod base 0.15.34 (data.lua)
   0.584 Loading mod base 0.15.34 (data-updates.lua)
   0.622 Checksum for core: 1519575497
   0.622 Checksum of base: 1503927233
   0.979 Info PlayerData.cpp:58: Local player-data.json available, timestamp 1504099608
   0.979 Info PlayerData.cpp:65: Cloud player-data.json unavailable
   1.212 Loaded shader file C:/Program Files (x86)/Steam/steamapps/common/Factorio/data/core/graphics/shaders/game.cso
   1.212 Loaded shader file C:/Program Files (x86)/Steam/steamapps/common/Factorio/data/core/graphics/shaders/zoom-to-world.cso
   1.230 Initial atlas bitmap size is 16384
   1.240 Created atlas bitmap 16384x8125
   1.800 Created atlas bitmap 8192x2034
   1.864 Created atlas bitmap 8192x3317
   1.948 Created atlas bitmap 4096x3648
   1.973 Created atlas bitmap 4096x1568
   2.021 Created atlas bitmap 4096x1868
  10.638 Sprites loaded
  10.638 Convert atlas 4096x3648 to: mipmap 
  10.822 Convert atlas 4096x1568 to: mipmap 
  10.942 Convert atlas 4096x1868 to: trilinear-filtering 
  11.425 Loading sounds...
  14.746 Custom inputs active: 0
  14.802 Factorio initialised
  61.574 Info UDPSocket.cpp:27: Opening socket at (0.0.0.0:0)
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\cygwin64\tmp\factorio-ymlunc\libraries\stackwalker\stackwalker.cpp (923): StackWalker::ShowCallstack
c:\cygwin64\tmp\factorio-ymlunc\src\util\logger.cpp (381): Logger::writeStacktrace
c:\cygwin64\tmp\factorio-ymlunc\src\util\logger.cpp (438): Logger::logStacktrace
c:\cygwin64\tmp\factorio-ymlunc\src\util\crashhandler.cpp (122): CrashHandler::writeStackTrace
c:\cygwin64\tmp\factorio-ymlunc\src\util\crashhandler.cpp (386): CrashHandler::SignalHandler
d:\th\minkernel\crts\ucrt\src\appcrt\misc\signal.cpp (516): raise
d:\th\minkernel\crts\ucrt\src\appcrt\startup\abort.cpp (71): abort
d:\th\minkernel\crts\ucrt\src\appcrt\misc\terminate.cpp (58): terminate
f:\dd\vctools\crt\vcruntime\src\eh\frame.cpp (762): FindHandler
f:\dd\vctools\crt\vcruntime\src\eh\frame.cpp (449): __InternalCxxFrameHandler
f:\dd\vctools\crt\vcruntime\src\eh\amd64\trnsctrl.cpp (186): __CxxFrameHandler3
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000076F6812D)
0000000076F6812D (ntdll): (filename not available): RtlDecodePointer
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000076F5855F)
0000000076F5855F (ntdll): (filename not available): RtlUnwindEx
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000076F58B58)
0000000076F58B58 (ntdll): (filename not available): RtlRaiseException
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 000007FEFCC6A06D)
000007FEFCC6A06D (KERNELBASE): (filename not available): RaiseException
f:\dd\vctools\crt\vcruntime\src\eh\throw.cpp (136): _CxxThrowException
c:\cygwin64\tmp\factorio-ymlunc\src\net\udpsocket.cpp (406): UDPSocket::recvfrom
c:\cygwin64\tmp\factorio-ymlunc\src\net\pinger.cpp (39): Pinger::listen
c:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread (247): std::_LaunchPad<std::unique_ptr<std::tuple<std::_Binder<std::_Unforced,void (__cdecl Pinger::*)(void) __ptr64,Pinger * __ptr64 const> >,std::default_delete<std::tuple<std::_Binder<std::_Unforced,void (__cdecl Pinger::*)(void) __ptr64,Pinger * __ptr64 const> > > > >::_Run
c:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread (210): std::_Pad::_Call_func
d:\th\minkernel\crts\ucrt\src\appcrt\startup\thread.cpp (115): thread_start<unsigned int (__cdecl*)(void * __ptr64)>
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000076E359CD)
0000000076E359CD (kernel32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000076F6A561)
0000000076F6A561 (ntdll): (filename not available): RtlUserThreadStart
  65.109 Error Util.cpp:80: Unexpected error occurred. If you're running the latest version of the game you can help us solve the problem by posting the contents of the log file on the Factorio forums.
Please also include the save file(s), any mods you may be using, and any steps you know of to reproduce the crash.

Ludger1999
Manual Inserter
Manual Inserter
Posts: 1
Joined: Wed Aug 30, 2017 8:27 pm
Contact:

Factorio crashes while searching for Multiplayer Games

Post by Ludger1999 »

Hi Guys

I hope you can help me.
Yesterday I could play Factorio without any problems but today it crashes everytime while searching multiplayer games.

Sequence: Starting Factorio -> Play -> Multiplayer -> Browse Public Game -> CRASH
I already tried restarting Steam and my Computer.
Also I changed the startoption of Factorio.
I even deinstalled Factorio and installed it again (so I also tried it without any mods and saves).

But nothing solved the problem.
log
log2
Hope someone can help me.
By Ludger1999

Merged...
Attachments
Factorio Error Report.rar
(55.58 MiB) Downloaded 255 times

posila
Factorio Staff
Factorio Staff
Posts: 5202
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [15.34] Crashing when searching for Multiplayer games

Post by posila »

Hi, we restarted match making servers, does it still happen? (I doesn't happen to me)

If so, can you provide crash dump? To get it, follow instructions here: viewtopic.php?t=51375#p299745

User avatar
AvalonSpire
Burner Inserter
Burner Inserter
Posts: 9
Joined: Thu Mar 30, 2017 1:30 am
Contact:

Re: [15.34] Crashing when searching for Multiplayer games

Post by AvalonSpire »

Yes it still happens. I was thinking it was something with the match making servers too... Possibly sending something the Factorio client doesn't like. Let me know if you want a UDP network trace.

Getting crash dump...

User avatar
AvalonSpire
Burner Inserter
Burner Inserter
Posts: 9
Joined: Thu Mar 30, 2017 1:30 am
Contact:

Re: [15.34] Crashing when searching for Multiplayer games

Post by AvalonSpire »

Here is the crash dump and the corresponding factorio-current . dump_on_exception did not produce an output work so I had to do a dump_on_terminate (Factorio terminated when I closed the crash dialog box). I use to do symbolic debugging years ago (windbg?). Have fun. ;)
Attachments
factorio.exe_170830_181234.zip
(1.21 MiB) Downloaded 154 times

posila
Factorio Staff
Factorio Staff
Posts: 5202
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [15.34] Crashing when searching for Multiplayer games

Post by posila »

Thanks.
I don't remember seeing this bug ever before and yesterday we received 3 bug reports about it. From the crash dump I can see WinSocks2 function select() failed with an error "An operation was attempted on something that is not a socket." when trying to get status of ipv6 socket.
@AvalonSpire, @Ludger1999 which internet service provider do you use?

User avatar
AvalonSpire
Burner Inserter
Burner Inserter
Posts: 9
Joined: Thu Mar 30, 2017 1:30 am
Contact:

Re: [15.34] Crashing when searching for Multiplayer games

Post by AvalonSpire »

Well I managed to resolve, well... get around the problem. My computer has two ethernet network interfaces 1 and 2. I had my network cable (internet) plugged adapter 2 with adapter 1 having nothing plugged into it.

The solution was to disable the 1st network adapter in my system (via windows device manage) then run "netsh winsock reset" (as administrator) and restart the computer. When that happened I noticed that the 1st network interface (it had ip 0.0.0.0 according to a network trace tool) had gone. Factorio would start and could join network games then.

My guess is that Factorio's UDPSocket.cpp (see --> 17.152 Info UDPSocket.cpp:27: Opening socket at (0.0.0.0:0) in factorio-current) is not dealing with the this situation properly somehow and I got around it by avoiding the situation (unused nic with 0.0.0.0 (means try all interfaces on local machine) bound to it). Since there is now only one interface with one IP I'm guessing it avoids trying to communicate with 'all' interfaces in a hope to get the right one to do what it needs to do.

In addition, probably not relevant, I removed the Lavasoft adware dlls that were injecting themselves into the Factorio process. Steam was warning that they were incompatible. (LavasoftTcpService64 and dll, LavasoftTcpService.dll).

None of this explains why the problem suddenly started happening yesterday.

User avatar
AvalonSpire
Burner Inserter
Burner Inserter
Posts: 9
Joined: Thu Mar 30, 2017 1:30 am
Contact:

Re: [15.34] Crashing when searching for Multiplayer games

Post by AvalonSpire »

posila wrote:Thanks.
I don't remember seeing this bug ever before and yesterday we received 3 bug reports about it. From the crash dump I can see WinSocks2 function select() failed with an error "An operation was attempted on something that is not a socket." when trying to get status of ipv6 socket.
@AvalonSpire, @Ludger1999 which internet service provider do you use?
@posila I have ipv6 disabled on both Ethernet adapters (though it is enabled on a VPN adapter which is unused at the moment - that vpn doesn't do ipv6 anyway (just ipv4) so I should probably disable). Maybe this somehow ties back into the 0.0.0.0 (::/0 in ipv6) aspect?

I use a small local cable provider called Northland Communications (the only cable choice I have here in this part of SC). They have been working fine with Factorio in the past.

FYI, the last Windows udpate was done a week ago. So probably not a MS fix issue.

I did install some network traffic monitoring/shaping software a few days ago called NetBalancer (factorio was slow in multiplayer but it was my cpu speed not the network - please make multiplayer multicore like standalone thanks ;) ). Factorio worked after the install and I removed it when the Factorio problem started to happen but the problem remained.

Dr.Roggerboy
Manual Inserter
Manual Inserter
Posts: 3
Joined: Wed Apr 19, 2017 2:59 pm

Re: [15.34] Crashing when searching for Multiplayer games

Post by Dr.Roggerboy »

Hey ho, i just wanted to add something to this. I am reporting from Ludger:

We found that switching to the standalone resolved the issue. The bug before occured when using the steam version. In the process of creating the dump file we downloaded the factorio installer .exe from the factorio.com website and the problem is not to be seen anymore. Before we were using Factorio through steam. We are now missing out on the cloud and on the gameplay tracking, but we will try every now and then to go back to the steam version!

The Internet should be the german Telekom. But it may be an issue with steam and some network configuration as the non-steam version works perfectly fine in this regard :)

Thank you for your support!

User avatar
AvalonSpire
Burner Inserter
Burner Inserter
Posts: 9
Joined: Thu Mar 30, 2017 1:30 am
Contact:

Re: [15.34] Crashing when searching for Multiplayer games

Post by AvalonSpire »

One thought... 0.0.0.0:0 is definitely not a valid socket which explains part of the failure (a socket is composed of a valid IP and TCP ports between the two points). So whatever is telling UDPSocket.cpp to try to open it at that location isn't right.

posila
Factorio Staff
Factorio Staff
Posts: 5202
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [15.34] Crashing when searching for Multiplayer games

Post by posila »

AvalonSpire wrote:One thought... 0.0.0.0:0 is definitely not a valid socket which explains part of the failure (a socket is composed of a valid IP and TCP ports between the two points). So whatever is telling UDPSocket.cpp to try to open it at that location isn't right.
It is empty address which binds to INADDR_ANY, so it should listen on all addresses on the local machine.

Code: Select all

  if (bindAddress.isEmptyIP())
  {
    memset((char*)&addr4, 0, sizeof(addr4));
    addr4.sin_family = AF_INET;
    addr4.sin_addr.s_addr = htonl(INADDR_ANY);
    addr4.sin_port = htons(bindAddress.port());
  }
AvalonSpire wrote:FYI, the last Windows udpate was done a week ago. So probably not a MS fix issue.
We have reports from Win 7 SP1, Win 8.1 and Win 10

posila
Factorio Staff
Factorio Staff
Posts: 5202
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [15.34] Crashing when searching for Multiplayer games

Post by posila »

So it seems to be related to LavasoftTcpService, one of the other people with this issue also had LavasoftTcpService64.dll injected into Factorio aswell and "netsh winsock reset" fixed it for him.

User avatar
AvalonSpire
Burner Inserter
Burner Inserter
Posts: 9
Joined: Thu Mar 30, 2017 1:30 am
Contact:

Re: [15.34] Crashing when searching for Multiplayer games

Post by AvalonSpire »

posila wrote:So it seems to be related to LavasoftTcpService, one of the other people with this issue also had LavasoftTcpService64.dll injected into Factorio and "netsh winsock reset" fixed it for him.
You may be right. When I originally removed the Lavasoft dlls I didn't think they would be causing this kind of problem but it is possible the Lavasoft code has deep hooks into Windows causing what would be a normal operation for Factorio to fail. Given that Lavasoft sells its "Adaware" code as antivirus, and since antivirus does tend to hook deeply into the OS (including network stack), this may be true. A lot of different kind of software bundle Adaware with their code which gets installed without the user noticing so this may explain why some users across the different versions of Windows see this problem an some do not. It would depend on their variable software usage habits.

I can't seem to unfix the problem so the only way to confirm this is to have someone run a install the Lavasoft adware ("Adaware" - they sell it as antivirus) and see if the problem starts happening again. I'm glad though we have a solution that gets people back up and going though. I'm going back to build some factories now. Have fun! :D

P.S. and FYI... The 3 Lavasoft files I removed before running the reset were:
- LavasoftTcpService.dll - 341,504 bytes - June 03, 2015 - File version 2.3.4.2
- LavasoftTcpService64.dll - 422,912 bytes - June 03, 2015 - File version 2.3.4.2
- LavasoftTcpService.ini - 2,888 bytes - June 03, 2015
- LavasoftTcpService.exe - Was not on my system but the dll details said it was part of it.

I believe they were under the C:\Windows\system32 and C:\Windows\SysWOW64 folders. The sizes and dates will probably vary depending on versions.

Post Reply

Return to “Resolved Problems and Bugs”