View Issue Details

IDProjectCategoryLast Update
0019021AI War 2Bug - GameplayMay 4, 2017 9:51 am
ReporterBadgerBadger Assigned Tokeith.lamothe  
Severityminor 
Status closedResolutionfixed 
Product Version0.105 and 0.106 
Summary0019021: Very bad networking performance/Null reference
DescriptionI have two machines on my home network. One is a wired-in desktop (linux), the other is an OSX laptop using the wireless. I had my desktop host the game, and the laptop could successfully connect to it, see the pre-game map selection screen, and it would spawn an ark for both players.

The problem is that it would take between 5 and 20 seconds for the laptop (client)'s clicks to be registered on either machine. The desktop was as responsive as usual, but the laptop's unresponsiveness made it quite unplayable.

I also noticed the following error on the laptop:
03/06/2017 19:34:34 (0.106) Mem: 34,582,528 Mode: Host Plat:OSXPlayer
-----------------------------------ErrorsReportedByEngine-----------------------------------
-----------
NullReferenceException: Object reference not set to an instance of an object
Stack Trace: Arcen.AIW2.Core.World_AIW2.SerializeTo (Arcen.Universal.ArcenSerializationBuffer Buffer, Boolean IsForSendingOverNetwork) (at D:/vclarge/AI_War_2_Ultra/ArcenAIW2Core/src/Logic/GameState/World_AIW2.cs:94)
Arcen.Universal.World.SerializeTo (Arcen.Universal.ArcenSerializationBuffer Buffer, Boolean IsForSendingOverNetwork) (at D:/vclarge/AI_War_2_Ultra/ArcenUniversal/src/Logic/GameState/World.cs:76)
Arcen.Universal.UniversalMessageHandler.HandleMessage (UInt32 senderNetworkID, Arcen.Universal.ArcenDeserializationBuffer buffer) (at D:/vclarge/AI_War_2_Ultra/ArcenUniversal/src/Logic/Networking/UniversalMessageHandler.cs:67)
Arcen.Universal.ArcenNetworkMessageHandler.HandleMessage (UInt32 senderNetworkID, Arcen.Universal.ArcenDeserializationBuffer buffer) (at D:/vclarge/AI_War_2_Ultra/ArcenUniversal/src/Logic/Networking/ArcenSocket.cs:292)
Arcen.Universal.ArcenSocket.DoPerUpdateLogic () (at D:/vclarge/AI_War_2_Ultra/ArcenUniversal/src/Logic/Networking/ArcenSocket.cs:192)
Arcen.Universal.Engine_Universal.OnUpdate () (at D:/vclarge/AI_War_2_Ultra/ArcenUniversal/src/Engine_Universal.cs:563)
ArcenGameController.Update () (at D:/vclarge/AI_War_2_Ultra/AIW2Unity/Assets/ArcenCode/ArcenGameController.cs:40)

I am running .106 on both machines.
TagsNo tags attached.

Relationships

related to 0019037 closedkeith.lamothe Multiplayer does not work. 

Activities

keith.lamothe

Mar 6, 2017 7:56 pm

administrator   ~0045921

No mods, or exact same mods on both?

BadgerBadger

Mar 6, 2017 8:06 pm

manager   ~0045923

I believe I have removed all of my mods. I will compare my xml files to a non-modded version to make sure.

On a related note, it would be useful to have a "have any changes been made locally to the XML" button.

Chris_McElligottPark

Mar 6, 2017 8:25 pm

administrator   ~0045924

Probably useful in general to have it note discrepancies along the lines of what appear to be there, and say "server talked about a ship called BobsShip, but that wasn't on the client" or similar.

Chris_McElligottPark

Mar 6, 2017 8:26 pm

administrator   ~0045925

Just because that's going to happen again and again.

BadgerBadger

Mar 6, 2017 9:09 pm

manager   ~0045926

Last edited: Mar 6, 2017 9:21 pm

There do not seem to have been any mods on either side; the laptop was a fresh install and there were no xml changes on the desktop, and I hadn't altered any C# code.

I agree that we want some sort of detection of inconsistent modding eventually, but it doesn't seem to be particularly urgent.

Incidentally, I've made my local AI War 2 installation a git repository so I can more easily track mods that I've made (and any interesting changes to the external XML/C# files). I can't imagine that being a scalable solution for others, but it should make it easy to explain what mods (if any) exist.

BadgerBadger

May 3, 2017 11:49 pm

manager   ~0046103

This problem no longer reproduces; there is some lag, but nowhere near as bad. This bug can be closed

Chris_McElligottPark

May 4, 2017 9:51 am

administrator   ~0046104

Strange!

Issue History

Date Modified Username Field Change
Mar 6, 2017 7:47 pm BadgerBadger New Issue
Mar 6, 2017 7:56 pm keith.lamothe Note Added: 0045921
Mar 6, 2017 7:59 pm keith.lamothe Assigned To => keith.lamothe
Mar 6, 2017 7:59 pm keith.lamothe Status new => assigned
Mar 6, 2017 8:06 pm BadgerBadger Note Added: 0045923
Mar 6, 2017 8:25 pm Chris_McElligottPark Note Added: 0045924
Mar 6, 2017 8:26 pm Chris_McElligottPark Note Added: 0045925
Mar 6, 2017 9:09 pm BadgerBadger Note Added: 0045926
Mar 6, 2017 9:10 pm BadgerBadger Note Edited: 0045926
Mar 6, 2017 9:21 pm BadgerBadger Note Edited: 0045926
Mar 13, 2017 10:31 am Chris_McElligottPark Relationship added related to 0019037
May 3, 2017 11:49 pm BadgerBadger Note Added: 0046103
May 4, 2017 9:51 am Chris_McElligottPark Note Added: 0046104
May 4, 2017 9:51 am Chris_McElligottPark Status assigned => closed
May 4, 2017 9:51 am Chris_McElligottPark Resolution open => fixed