Skip to content

ViewportTexture emits Path to node is invalid error in the editor. #107667

Closed
@pmoosi

Description

@pmoosi

Tested versions

System information

Godot v4.5.beta.mono (0b2170d) - Ubuntu 24.04.2 LTS 24.04 on Wayland - X11 display driver, Multi-window, 3 monitors - Vulkan (Forward+) - integrated AMD Radeon Graphics (RADV RENOIR) - AMD Ryzen 7 5800H with Radeon Graphics (16 threads) - 13.49 GiB memory

Issue description

Using a ViewportTexture in a scene prints:

ERROR: Path to node is invalid: 'SubViewport'.
   at: _setup_local_to_scene (scene/main/viewport.cpp:197)

whenever the scene is saved (or the thumbnail is generated I guess?).

The culprit seems to be #102313.

I tried #107630 but it does not fix it.

Steps to reproduce

The mrp contains a SubViewport and a Sprite2D with a ViewportTexture. Changing something and then saving the scene emits the errors.

Minimal reproduction project (MRP)

mrp.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Bad

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions