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

Exiting the editor while organelle popup is open is possible and crashes the game #4470

Open
hhyyrylainen opened this issue Sep 14, 2023 · 2 comments · May be fixed by #4486
Open

Exiting the editor while organelle popup is open is possible and crashes the game #4470

hhyyrylainen opened this issue Sep 14, 2023 · 2 comments · May be fixed by #4486

Comments

@hhyyrylainen
Copy link
Member

Using the keyboard to select and click (spacebar) the confirm button while an organelle popup menu allows you to exit the editor and then crash the game when you click something on the popup.

2023-09-14_21 39 05 1666

The crashing exception:

ERROR: System.ObjectDisposedException: Cannot access a disposed object.
ERROR: Object name: 'CellEditorComponent'.
ERROR:   at Godot.Object.GetPtr (Godot.Object instance) [0x0001c] in <1598dd9b7b214c39a3e18009cd4aff45>:0 
ERROR:   at Godot.Node.AddChild (Godot.Node node, System.Boolean legibleUniqueName) [0x00000] in <1598dd9b7b214c39a3e18009cd4aff45>:0 
ERROR:   at NodeHelpers.ReParent (Godot.Node node, Godot.Node newParent) [0x00028] in <1608dc207f454f80a7587eceebbf12ac>:0 
ERROR:   at ModalManager.UpdateModals () [0x00027] in <1608dc207f454f80a7587eceebbf12ac>:0 
ERROR:   at ModalManager._Process (System.Single delta) [0x00008] in <1608dc207f454f80a7587eceebbf12ac>:0 

So this is a pretty clear case where the editor should force close the popup before it allows exiting. Multicellular editor and late multicellular editor probably need the same fix so maybe a base class should be made to have a method that ensures all open popups are closed before exiting.

@hhyyrylainen hhyyrylainen added this to Backburner in Thrive Planning via automation Sep 14, 2023
@hhyyrylainen hhyyrylainen moved this from Backburner to Low priority bugs / issues in Thrive Planning Sep 14, 2023
@buckly90
Copy link
Member

No luck reproducing the crash with this change. Very good!

@hhyyrylainen
Copy link
Member Author

(I think you commented on the wrong thing, you probably meant to comment on #4469 I'll merge that now wit the fix confirmation)

@CoreyHendrey CoreyHendrey linked a pull request Sep 21, 2023 that will close this issue
4 tasks
@hhyyrylainen hhyyrylainen moved this from Low priority bugs / issues to In progress in Thrive Planning Sep 21, 2023
@hhyyrylainen hhyyrylainen added this to the Release 0.6.4 milestone Sep 21, 2023
@hhyyrylainen hhyyrylainen moved this from In progress to started but stuck (help wanted) in Thrive Planning Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Thrive Planning
  
started but stuck (help wanted)
Development

Successfully merging a pull request may close this issue.

2 participants