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

Removing child on focus exit can cause a crash in certain cases #78590

Closed
ajreckof opened this issue Jun 22, 2023 · 0 comments · Fixed by #78591
Closed

Removing child on focus exit can cause a crash in certain cases #78590

ajreckof opened this issue Jun 22, 2023 · 0 comments · Fixed by #78591

Comments

@ajreckof
Copy link
Member

ajreckof commented Jun 22, 2023

Godot version

v4.1.beta.custom_build [f23a12007]

System information

macOS 13.3.0 - Vulkan (Forward+) - integrated Apple M1 Pro - Apple M1 Pro (8 Threads)

Issue description

This was discovered through inspection of #78578 (comment). This is happening when focus is requested by one node that ask for the previous focused node to release focus. But during focus release it remove the new focused node from the scene tree. This means the new focused node will first exit scene tree and then be focused. This means it will not be unfocused because release focus happens during exit of the tree.

Steps to reproduce

  1. run the MRP
  2. click on one of the LineEdit
  3. click on the other one
  4. See Godot Crash

Minimal reproduction project

Test.zip

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

Successfully merging a pull request may close this issue.

2 participants