[Possible Bug] Master Client drops connection at the same area in the same scene 20-30% of the time

We currently have a game-breaking bug in one of the scenes in our game where the Master Client seems to lose connection at the same general spot in the same scene about 20-30% of the time. This never happens in any other scene and there is nothing special about this exact spot in the scene that is any different from all the other scenes in the game.

The logs are not helpful (Tested and checked Error Logs, Full Logs, SupportLogger and Server logs), as they do not show that the Master client or any other client has been disconnected or what happened when this disconnect-bug occurs. E.g. there is no error log that states that either the Master Client or the Clients have been disconnected.

The clients seem to be able to keep the connection alive and transmit to each other probably because of host migration (This is not a solution as we cant have the master client drop the connection)

When this bug happens we get this error message spam in the Master Client PC logs:
NullReferenceException: Object reference not set to an instance of an object.
  at Photon.Pun.PhotonNetwork.RunViewUpdate () [0x00000] in <00000000000000000000000000000000>:0 
  at Photon.Pun.PhotonHandler.LateUpdate () [0x00000] in <00000000000000000000000000000000>:0

While also getting this kind of errors maybe related to us shutting down the server on the Master Client PC
RPCs can only be sent in rooms. Call of "RPC_PlaySound" gets executed locally only, if at all.

The Client logs provide no information about having lost the connection to the Master Client or having disconnected from the server.

We have tested multiple solutions
  • Change from UDP to TCP [NOT WORKING]
  • Change ports from 5055 to 27001 in UDP [NOT WORKING]
  • Remove things from the problem area in the scene spreading out RPC calls and Event calls [NOT WORKING]
  • Enable SupportLogger [SOMEWHAT WORKING] (When enabling the SupportLogging script we were able to replay the scene 5 times without disconnecting (Only tested in the editor) however the game was generating HUGE log files)
  • Restarting Server / Restarting PC / Restarting Router and Switches [NOT WORKING]
  • Changing who is the Master Client PC and Server [NOT WORKING]
  • Updating Photon PUN 2 to the latest version [NOT WORKING]
  • Starting a server from "PhotonControl.exe" instead of running "_run-Photon-as-application.start.cmd" file [NOT WORKING]
Sign In or Register to comment.