Page 2 of 3

Re: [0.14.8] [Twinsen] Downloading map hangs at 100%

Posted: Fri Sep 30, 2016 4:49 pm
by flonussi
I'm really annoyed by this bug, so I spent the whole day narrowing the issue down.

As I was already saying, I'm able to connect to our server from my Macbook and my Notebook with Linux on it, but I was not able to connect to it from my Gaming PC with Windows on it.
To work around this issue I now tried installing Linux (dualboot) on my PC to be able to connect to the server... As I finished setting everything up I tried to connect to the server and AGAIN it was hanging at 100%, now with Linux.

My next thought was, that it has to do something with the hardware configuration/network chipset. I installed my old usb->RJ45(Asix AX88772B chipset) network adapter (instead of the onboard one) and tried to connect to the server and NOW everything works just fine... with Windows and also with Linux on my Gaming Rig.
After that, I was curious and also tried a usb->wireless lan adapter and it also worked.

By now I'm pretty sure it has something to do with the network chipset/adapter.
My mainboard is a GA-Z77-D3H which is using an Atheros GbE LAN chip (AR8151).

Maybe someone in this thread with this issue has a similar mainboard/network chip?!

Re: [0.14.8] [Twinsen] Downloading map hangs at 100%

Posted: Sat Oct 01, 2016 8:20 am
by Cathillach
I have tried 0.14.10 and 0.14.11.

14.10 let me join the game and I didn't encounter the hanging at 100% bug but that may be because I only tried to join a game twice as Factorio was unplayable. Rubber banding and constant server not responding popups meant that I could not play at all.

14.11 did not let me join a game a single time. It constantly hung at 100%.

After both updates I had to go back to version 0.14.9 to be able to play at all.

A strange interaction that may or may not be related was that I tried joining the game on 0.14.9 and got the hang error 5 times in a row which was unusual. Everytime while downloading the map I clicked off the windowed factorio to browse the internet. The 6th time when I tried joining I stayed focused on Factorio and it let me join the game.

This is not the overall problem as I still get the hanging bug even if I stay focussed on Factorio. But it seems to increase the frequency.

Re: [0.14.8] [Twinsen] Downloading map hangs at 100%

Posted: Sat Oct 01, 2016 12:13 pm
by Rippie
flonussi wrote:By now I'm pretty sure it has something to do with the network chipset/adapter.
My mainboard is a GA-Z77-D3H which is using an Atheros GbE LAN chip (AR8151).

Maybe someone in this thread with this issue has a similar mainboard/network chip?!
I own a Z87-G45 which has Killer ethernet.
The Killer ethernet is known to cause issues... I had to update the drivers recently because Steam's In-Home-Streaming did not detect anything.

Re: [0.14.8] [Twinsen] Downloading map hangs at 100%

Posted: Sat Oct 01, 2016 1:02 pm
by flonussi
I own a Z87-G45 which has Killer ethernet.
The Killer ethernet is known to cause issues... I had to update the drivers recently because Steam's In-Home-Streaming did not detect anything.
I just looked up this "Killer Ethernet" and it seems that it is also a Qualcom Atheros chipset under the hood :-/ So I think we are on to something!

Re: [0.14.8] [Twinsen] Downloading map hangs at 100%

Posted: Sat Oct 01, 2016 8:55 pm
by Cathillach
I have an Asus Maximus VIII Hero Motherboard that uses an Intel(R) Gigabit Ethernet Driver V20.2.4001.0 driver

Re: [0.14.8] [Twinsen] Downloading map hangs at 100%

Posted: Mon Oct 03, 2016 11:49 am
by Rippie
Cathillach wrote:I have an Asus Maximus VIII Hero Motherboard that uses an Intel(R) Gigabit Ethernet Driver V20.2.4001.0 driver
Hmm, there goes our theory. You have stated that this happened when your friend hosted, and you try to join. Could you discover which ethernet adapter your friend uses? Maybe for you the issue is on the server's end.
Twinsen wrote:After the 0.14.10 release I can make a special exe that does verbose logging for map download/map upload logic.
Any chance this is still happening?

Re: [0.14.8] [Twinsen] Downloading map hangs at 100%

Posted: Mon Oct 03, 2016 4:31 pm
by Arcania85
I've had the same exact same problem when playing with a friend who lives in scotland, he was hosting.
the game was freshly started without mods.
The game would download very fast and when the bar hit 100% the speed would just decrease till it hit 0kb/sec and it got stuck.

my ISP is ziggo.
speedtest.net: http://www.speedtest.net/my-result/5684156863
TP-LINK TL-WDR4300-N750 draadloze dual-band gigabit router

hope its usefull

Edit: just happend again.
http://imgur.com/htO8cJc

Edit 2:
This happens when He is hosting the game, and he's on killer networks.
I'm currently hosting, and he could join immediatly.

this is his speedtest:
http://www.speedtest.net/my-result/5684292845

Log is down here
log

Re: [0.14.8] [Twinsen] Downloading map hangs at 100%

Posted: Tue Oct 04, 2016 4:07 am
by Riverchimp
Rippie wrote:
Cathillach wrote:I have an Asus Maximus VIII Hero Motherboard that uses an Intel(R) Gigabit Ethernet Driver V20.2.4001.0 driver
Hmm, there goes our theory. You have stated that this happened when your friend hosted, and you try to join. Could you discover which ethernet adapter your friend uses? Maybe for you the issue is on the server's end.
Twinsen wrote:After the 0.14.10 release I can make a special exe that does verbose logging for map download/map upload logic.
Any chance this is still happening?
Cathillach is connecting to me. I have a Gigabyte G1.Sniper Z87 which has a Killer E2200.

Re: [0.14.8] [Twinsen] Downloading map hangs at 100%

Posted: Tue Oct 04, 2016 8:09 am
by Rippie
So the current "common thing" we all share is the ethernet adapter, e.g. Killer Ethernet E2200 (which is a Qualcomm Atheros AR8161 under the hood) and Atheros GbE LAN chip (AR8151).

To summarize from all the people that have reported the problem in this thread:
- Cathillach (Intel(R) Gigabit Ethernet) connects to a server hosted by Riverchimp (Killer Ethernet E2200 -> Qualcomm Atheros AR8161)
- Rippie has Killer Ethernet E2200 -> Qualcomm Atheros AR8161
- flonussi has Qualcomm Atheros AR8151 and is unable to connect to servers from both Windows and Linux. Installed USB network adapter (Asix AX88772B chipset), connected fine on both Windows and Linux.
- Arcania85 connects to a friend who has "killer networks" (Killer Ethernet? -> Qualcomm Atheros AR8161)
- nexyon connects to flonussi (Qualcomm Atheros AR8151)

For anyone else having this issue, please also post which ethernet adapter you have, and if you are playing with a friend please also mention his/her ethernet adapter.

All credits for pinpointing the ethernet adapter so far go to flonussi.

Re: [0.14.8] [Twinsen] Downloading map hangs at 100%

Posted: Tue Oct 04, 2016 1:21 pm
by Twinsen
Rippie wrote:
Twinsen wrote:After the 0.14.10 release I can make a special exe that does verbose logging for map download/map upload logic.
Any chance this is still happening?
I'm exploring different solutions(including completely replacing the downloader code), so be patient. Also I'll be away for 2 weeks so this will be on hold unless someone takes over.

Meanwhile there was a minor fix in 0.14.13. From changelog "Fixed map downloader getting stuck and flooding the network after a big timeout.". Big timeout means 20 seconds. This will probably not fix this issue but let me know if it does.

Re: [0.14.8] [Twinsen] Downloading map hangs at 100%

Posted: Wed Oct 05, 2016 6:33 pm
by nexyon
Rippie wrote:- flonussi has Qualcomm Atheros AR8151
- nexyon has ???
I was connecting to flonussi, he was connecting to me and both of us to a dedicated server. The issue definitely happens on the client no matter if the server or client has the faulty network chip.

Re: [0.14.8] [Twinsen] Downloading map hangs at 100%

Posted: Thu Oct 06, 2016 9:32 am
by Rippie
nexyon wrote:
Rippie wrote:- flonussi has Qualcomm Atheros AR8151
- nexyon has ???
I was connecting to flonussi, he was connecting to me and both of us to a dedicated server. The issue definitely happens on the client no matter if the server or client has the faulty network chip.
Thanks, I updated the post.

Also, can anyone confirm if the issue still exists on 0.14.13? I have not had the time to test it.

Re: [0.14.8] [cube] Downloading map hangs at 100%

Posted: Thu Oct 06, 2016 6:16 pm
by Cathillach
The same hanging bug occurred to me last night in 0.14.13. Didn't have time to get the logs but if it happens again today then I will put up the log of it.

Re: [0.14.8] [Twinsen/cube] Downloading map hangs at 100%

Posted: Thu Oct 27, 2016 10:14 pm
by Twinsen
The map download algorithm was tweaked in Version 0.14.17.
Please test download speeds before/after and let me know if the 100% hang still persists.

Re: [0.14.8] [Twinsen/cube] Downloading map hangs at 100%

Posted: Sat Nov 05, 2016 8:49 pm
by Rippie
So I decided to have another go at Factorio multiplayer.
First server I tried to join, it happened again.
Map download speed reached up to 2MB/s.
Download again hanging at 100%.
Using version 0.14.19.
Log file attached.

Re: [0.14.8] [Twinsen/cube] Downloading map hangs at 100%

Posted: Mon Nov 07, 2016 5:06 pm
by Twinsen
So it was not fixed ...

I made an executable that will log lots of data related to the file transfers on the client side.
Copy the 2 files in your bin folder and run the game using factorio-run.exe

Every time you connect to do a test, do it on a fresh run of the game, so you get one separate log file per test.
Then upload the log(s) somewhere.(they could end up quite large).

Thanks for the help.

Re: [0.14.8] [Twinsen/cube] Downloading map hangs at 100%

Posted: Sun Nov 13, 2016 5:10 pm
by Rippie
Twinsen wrote:I made an executable that will log lots of data related to the file transfers on the client side.
Copy the 2 files in your bin folder and run the game using factorio-run.exe
Thanks for supplying these!
Got the issue again, but Steam has updated Factorio to 0.14.20.
The executable now complains about the version mismatch 0.14.19 vs 0.14.20.

Re: [0.14.8] [Twinsen/cube] Downloading map hangs at 100%

Posted: Sun Nov 13, 2016 5:39 pm
by Loewchen
Rippie wrote:
Twinsen wrote:I made an executable that will log lots of data related to the file transfers on the client side.
Copy the 2 files in your bin folder and run the game using factorio-run.exe
Thanks for supplying these!
Got the issue again, but Steam has updated Factorio to 0.14.20.
The executable now complains about the version mismatch 0.14.19 vs 0.14.20.
You could roll back using the beta settings, see the update issue link in my signature.

Re: [0.14.8] [Twinsen/cube] Downloading map hangs at 100%

Posted: Sun Nov 13, 2016 6:14 pm
by Smarty
Loewchen wrote:
Rippie wrote:
Twinsen wrote:I made an executable that will log lots of data related to the file transfers on the client side.
Copy the 2 files in your bin folder and run the game using factorio-run.exe
Thanks for supplying these!
Got the issue again, but Steam has updated Factorio to 0.14.20.
The executable now complains about the version mismatch 0.14.19 vs 0.14.20.
You could roll back using the beta settings, see the update issue link in my signature.
the transfer logger twinsen made is for 0.14.19

Re: [0.14.8] [Twinsen/cube] Downloading map hangs at 100%

Posted: Mon Nov 14, 2016 11:36 am
by Twinsen
Updated executable for 0.14.20, see above for instructions.