Skip to content

Nested MultiplayerSpawner causes node not found error if a peer joins after some spawnable scenes are freed. #91342

@tianer2820

Description

@tianer2820

Tested versions

Godot v4.2.1.stable & Godot v4.2.2.stable

System information

Fedora Linux 40 (KDE Plasma) - Wayland - Vulkan (Forward+) - dedicated AMD Radeon RX 7600M XT (RADV NAVI33) () - AMD Ryzen 7 7840H w/ Radeon 780M Graphics (16 Threads)

Issue description

When there are nested multiplayer spawners, and when some of the children of the second layer spawners are freed, there will be a node_not_found error when new peer joins.

Steps to reproduce

Inside the reproduction project:

  1. run 2 instances
  2. click the host button on the first instance, wait a few seconds so the labels in the middle are deleted
  3. click the join button on the second instance.
    There will be some node-not-found errors when the peer joins:
    image

This does not happen if you delete the queue_free code in level_1.gd

This also does not happen if the client joins before those labels are freed

Minimal reproduction project (MRP)

test.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