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

Resolve issue where the Godot app remains stuck when resuming. #51586

Merged

Conversation

m4gr3d
Copy link
Contributor

@m4gr3d m4gr3d commented Aug 12, 2021

This was caused by the fact that a new instance of Godot was created at resume while a previous instance already existed.

The previous instance would then go through its cleanup lifecycle, and would thus attempt to close the entire app, leading to the system to restart the app, thus starting the cycle anew.

The fix involves reusing the previous instance of Godot if one is available instead of creating a new one, as well as giving control to the host activity for how the process should be terminated.

Fix #51021
Contributes to #31541

@m4gr3d m4gr3d added this to the 4.0 milestone Aug 12, 2021
@m4gr3d m4gr3d requested a review from a team August 12, 2021 19:44
@m4gr3d m4gr3d force-pushed the investigate_godot_resume_stalls_master branch from a1e20b9 to 1307a99 Compare August 12, 2021 19:54
@akien-mga
Copy link
Member

akien-mga commented Aug 12, 2021

Should the tentative fix in #51571 be reverted too? (It was only merged in master.)

Edit: Nevermind, this commit does handle it too.

This was caused by the fact that a new instance of Godot was created at resume while a previous instance already existed.
The previous instance would then go through its cleanup lifecycle, and would thus attempt to close the entire app, leading to the system to restart the app, thus starting the cycle anew.
The fix involves reusing the previous instance of Godot if one is available instead of creating a new one, as well as giving control to the host activity for how the process should be terminated.
@m4gr3d m4gr3d force-pushed the investigate_godot_resume_stalls_master branch from 1307a99 to 28a99e4 Compare August 13, 2021 04:05
@akien-mga akien-mga merged commit af70288 into godotengine:master Aug 13, 2021
@akien-mga
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

Android game stuck at boot splash after remaining few hours in background
2 participants