Skip to content

OptionButton throwing errors in exported release build: "Attempt to disconnect a nonexistent connection" for signal focus_entered and tree_exited #89657

Open
@pendragon274

Description

@pendragon274

Tested versions

  • Reproducible in Godot Engine v4.2.stable.official [46dc277], v4.2.1.stable.official, v4.2.2.rc2.
  • Does not seem to happen in v4.1.3.stable.official [f06b6836a].

System information

Windows 11 Home

Issue description

Interacting with an OptionButton produces an error message:
ERROR: Attempt to disconnect a nonexistent connection from 'root:<Windows#24779948753>'. Signal: 'focus_entered', callable:...
at: (core/object/object.cpp:1420)
ERROR: Attempt to disconnect a nonexistent connection from 'root:<Windows#24779948753>'. Signal: 'tree_exited', callable:...
at: (core/object/object.cpp:1420)

Only when the project is exported to executable, both release and debug, but does not produce an error when run in the editor.

Steps to reproduce

Starting from an empty project with the root node being a control node, add a child OptionButton and add 2 items to it, labeled Option 1 and Option 2. Then, export the project with the console to an executable. The console executable will display an error when an option is selected in the OptionButton.

Minimal reproduction project (MRP)

Test.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions