NullReference while NatPunchThrough by Zeus
Options
Hi there!
Further information:
sessions is type of List UdpSession ().
12/1/2015 4:56:17 PM: System.NullReferenceException: Object reference not set to an instance of an object at UdpKit.UdpSocket+MasterClient.OnPunch (UdpKit.Protocol.Punch punch) [0x00000] in <filename unknown>:0 at UdpKit.Protocol.ProtocolClient+<>c__DisplayClass12_0`1[UdpKit.Protocol.Punch].<SetHandler>b__0 (UdpKit.Protocol.Message m) [0x00000] in <filename unknown>:0 at UdpKit.Protocol.ProtocolClient.Recv (UdpEndPoint endpoint, System.Byte[] buffer, Int32 offset) [0x00000] in <filename unknown>:0 at UdpKit.UdpSocket.RecvProtocol (UdpEndPoint endpoint, System.Byte[] buffer, Int32 bytes) [0x00000] in <filename unknown>:0 at UdpKit.UdpSocket.RecvNetworkPacket (UdpEndPoint ep, System.Byte[] buffer, Int32 bytes) [0x00000] in <filename unknown>:0 at UdpKit.UdpSocket.RecvNetworkData () [0x00000] in <filename unknown>:0 at UdpKit.UdpSocket.NetworkLoop () [0x00000] in <filename unknown>:0The above NullReference exception is thrown on the client who tries to connect to a session. If I use Zeus for matchmaking between my two local machines, everything works as supposed. Just connecting across WAN doesn't work right now.
Further information:
- Windows Firewalls are turned off
- Bolt Version 0.4.10
- Default Zeus Server
BoltNetwork.Connect(sessions[gameIdComponent.gameId]);
sessions is type of List UdpSession ().
0
Comments
-
Not sure how I'd reproduce this, are you using SetHostInfo or SetDedicatedServerInfo?0
-
I use SetHostInfo
edit: SetDedicatedServerInfo throws the same exception, if the client tries to connect. Well, I give it a retry cause the mobile hotspot is not reliable enough and there is no other friend for testing available.
edit2: Using SetDedicatedServerInfo doesn't throw the NUllReference on the client, but the client still can't connect (used a VPN on the server to try WAN connection).0 -
It looks like this used to be an issue and was fixed, dont know why you're experiencing it now
https://github.com/BoltEngine/bolt/issues/2090 -
Here are some log files.
Client connecting to session which was hosted with SetDedicatedHostInfo
Client connecting to session which was hosted with SetHostInfo
Server hosting with SetDedicatedHostInfo
Server hosting with SetHostInfo
These logs were logged by the machine which doesn't use a VPN to test via WAN. If both machines are on LAN, connecting via Zeus works well.
I just uploaded a package, which reproduces the same issue. (1.3 MB) https://github.com/BoltEngine/bolt/issues/286
Setting the host info inside of ZeusConnected() instead of BoltStartDone() doesn't make a difference on a WAN connection.0 -
Has there been any solution to this? I've started testing with zeus and I get the same error above.0
-
@Ktrainers fix is done, will be included in next Bolt release0