Skip to content

Godot 4.5 beta 1: Error when saving a scene with a typed dictionary property (presumably a thumbnails problem) #107764

Closed
@nuevocharrua

Description

@nuevocharrua

Tested versions

  • Reproducible in: 4.5.beta1 (macOS 15.5)
  • Not reproducible in: 4.4.1 (macOS 15.5)

System information

macOS 15.5, Godot 4.5 Beta 1, Vulkan

Issue description

When a scene has a script with a typed dictionary @export like these:

@export var sounds: Dictionary[int, AudioStreamPlayer2D]
@export var faces: Dictionary[String, TextureRect]

when saving that scene (or when opening the editor for the first time) it writes this error in the output:

ERROR: Failed to get property 'sounds' from node 'PlayerHammerSuper1State'
ERROR: Failed to get property 'faces' from node 'MainBars'

Not all typed dictionaries generate this error, I think only the ones that reference Nodes.

I think it's something related to the new way of generating thumbnails (because it happens when opening for the first time and when saving)

Steps to reproduce

  1. Create a new scene in Godot
  2. Add a script to a node in the scene
  3. In the script, add exported typed dictionary properties that reference Node types, such as:
@export var sounds: Dictionary[int, AudioStreamPlayer2D]
@export var faces: Dictionary[String, TextureRect]
  1. Save the scene
  2. Observe the error messages in the output console

Minimal reproduction project (MRP)

typed-error.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Unassessed

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions