Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

MissingReferenceException: The object of type 'PhotonView' has been destroyed but you are still tryi

$
0
0
Hi,
We are using PUN+ 1.73. We have set autoCleanUpPlayerObjects to true. This exception happens very rarely when more than one player disconnects simultaneously. Because of this exception we see game objects of disconnected players in game.

Did this happen to anyone? What are the possible scenarios where it can happen. We are not destroying anything from our code.

MissingReferenceException: The object of type 'PhotonView' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
NetworkingPeer.DestroyPlayerObjects (Int32 playerId, Boolean localOnly) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:2969)
NetworkingPeer.HandleEventLeave (Int32 actorID, ExitGames.Client.Photon.EventData evLeave) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:1205)
NetworkingPeer.OnEvent (ExitGames.Client.Photon.EventData photonEvent) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:2222)
ExitGames.Client.Photon.PeerBase.DeserializeMessageAndCallback (System.Byte[] inBuff)
ExitGames.Client.Photon.EnetPeer.DispatchIncomingCommands ()
ExitGames.Client.Photon.PhotonPeer.DispatchIncomingCommands ()
PhotonHandler.Update () (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonHandler.cs:125)

Viewing all articles
Browse latest Browse all 15755

Trending Articles