Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pendragon274 opened this issue Mar 18, 2024 · 9 comments

Comments

@pendragon274
Copy link

pendragon274 commented Mar 18, 2024

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

@AThousandShips
Copy link
Member

Can you try this with 4.2.1? Or 4.2.2.rc2? This might have been fixed and you are on an out of date version

@pendragon274
Copy link
Author

I did just now try it with v4.1.3.stable.official [f06b6836a] and the error did not occur. I can try with other versions here soon.

@AThousandShips
Copy link
Member

That's an older version, but good to get comparison that means it was introduced after 4.1 was released

@pendragon274
Copy link
Author

The error was reproduced in v4.2.1.stable.official [b09f793].

@Kiisu-Master
Copy link
Contributor

This is happening in 4.2.2.rc2

@akien-mga
Copy link
Member

akien-mga commented Apr 5, 2024

I can reproduce the issue with the MRP, using 4.2.1-stable, and 4.3-dev4 (didn't have dev5 templates locally to test).

I also confirm that there's no bug with 4.1.3-stable. So the regression must be a commit between 4.1-stable and 4.2-stable.

To be clear, this only happens with release templates, not the editor or debug templates.

@akien-mga akien-mga added this to the 4.3 milestone Apr 5, 2024
@akien-mga akien-mga changed the title OptionButton Throwing Errors in Export OptionButton throwing errors in exported release build: "Attempt to disconnect a nonexistent connection" for signal focus_entered and tree_exited Apr 5, 2024
@akien-mga
Copy link
Member

I tested intermediate releases and it seems that the error was introduced in 4.2-rc2:
https://github.com/godotengine/godot-builds/releases/tag/4.2-rc2

Here's the changelog for that snapshot: https://godotengine.github.io/godot-interactive-changelog/#4.2-rc2

From that list, #85280 seemed like a potential culprit. I tested in latest master with that PR reverted and confirm that this solves the error in the MRP.

CC @bruvzg @RandomShaper

@ynot01
Copy link

ynot01 commented Jun 23, 2024

Happening in v4.2.2.stable.official.15073afe3

@KoBeWi
Copy link
Member

KoBeWi commented Aug 2, 2024

Can't reproduce in 4.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants