Skip to content

Error "get_cached_object: Failed to get cached node from peer 1686838219 with cache ID 1." when removing node in MultiplayerSpawner's auto spawn list with client as authority #101847

Open
@RudyFisher7

Description

@RudyFisher7

Tested versions

4.3.stable

System information

Godot v4.3.stable - Windows 10.0.26100 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3060 (NVIDIA; 32.0.15.6636) - 12th Gen Intel(R) Core(TM) i7-12700F (20 Threads)

Issue description

An error is raised when removing/freeing a scene/node that is in MultiplayerSpawner's auto spawn list and client is set as authority.

Image

Steps to reproduce

  1. Create an ENet mutliplayer connection over localhost using Godot's high level multiplayer peer.
  2. Add some nodes/scenes to the tree that are in MultiplayerSpawner's auto spawn list and set the clients as their authorities when applicable.
  3. Start erasing the added nodes.
  4. You'll see that when erasing some of the nodes that the error is raised.

Minimal reproduction project (MRP)

multiplayer-spawner-bug.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions