PhotonView does not exist error though scene is completely loaded

Hi all,

I googled this error message: "Received RPC xx for viewID 147 but this PhotonView does not exist..." and I understand it in the given circumstances.
In my case I just have one scene in the game that is loaded on startup. It contains around 100 objects with PhotonViews, all of them have different viewIDs. The player can walk around in the scene and click on objects to pick them up, therefore I use an RPC to notify everyone that the object is "in use" and can't be picked up by others and I request ownership so that the object's position gets sent from the player who picked it up.

So I am starting the game in the editor, all objects with PhotonViews present, I connect to the room, my player spawns and I walk around a bit. I can pick up several objects but on certain objects I got the error mentioned above. The PhotonView is set up all the same, I can see the viewID in the editor, everything should work. The RPC is not sent in Start() or Awake() etc. and I can not determine any patern in the id (e.g. viewId 86 is working but 87 is not, but 88 is fine).

A bit of example code from the object the player grabs that contains the PhotonView:
public void SetInUse(bool isInUse)
        if (PhotonNetwork.IsConnected)
            GetComponent<PhotonView>().RPC("SetNetInUse", RpcTarget.AllBuffered, isInUse);
            if(isInUse) GetComponent<PhotonView>().RequestOwnership();
    public void SetNetInUse(bool isInUse)
        this.isInUse = isInUse;

Thanks for any advice! :)


  • [img][/img]Photon-View-Problem.jpg
  • After a bit of debugging I found out, that the view does not exist in the photonViewList of PhotonNetwork.
    But it is added in Awake() of PhotonView to the list, just gets dropped while other views get added:


    This is the part in the code:

    I tried to set breakpoints where keys get removed from the list, but those weren't triggered, maybe I missed one.
  • I extended the logging and the view with ID=78 is in the list right before adding view 34. So I would like to check what happens in the Add() but it is a NonAllocDictionary and there is no source code available for debugging :(
  • After googleing the NonAllocDictionary I found this thread and indeed I was using Photon 2.19. After updating to 2.19.3 it is working like expected :)
Sign In or Register to comment.