Skip to content

Errors when adding a scene autoload from EditorPlugin #114317

@passivestar

Description

@passivestar

Tested versions

v4.6.beta2.official [551ce8d]

System information

Godot v4.6.beta2 - macOS Tahoe (26.0.0) - Multi-window, 1 monitor - Metal (Forward+) - integrated Apple M1 Max (Apple7) - Apple M1 Max (10 threads) - 32.00 GiB memory

Issue description

Disabling/enabling an addon that registers a scene autoload through add_autoload_singleton prints these errors:

ERROR: modules/gdscript/gdscript.cpp:2257 - Condition "!named_globals.has(p_name)" is true.
ERROR: Failed to instantiate scene state of "uid://cbdsvnnv4e5lo", node count is 0. Make sure the PackedScene resource is valid.
ERROR: Failed to create an autoload, path is not pointing to a scene or a script: uid://cbdsvnnv4e5lo.
ERROR: editor/settings/editor_autoload_settings.cpp:571 - Condition "!info->node" is true. Continuing.

Image

The autoload itself works fine at runtime, this appears to be an issue with the editor

Steps to reproduce

Open the MRP, go to the Plugins tab, disable/enable the test addon

Minimal reproduction project (MRP)

autoload_scene_mrp.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Release Blocker

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions