Skip to content

[rcore][Android] Fix Android relaunch hang after destroy while paused - #6040

Open
get-charlie wants to merge 1 commit into
raysan5:masterfrom
get-charlie:fix/android-shutdown
Open

[rcore][Android] Fix Android relaunch hang after destroy while paused#6040
get-charlie wants to merge 1 commit into
raysan5:masterfrom
get-charlie:fix/android-shutdown

Conversation

@get-charlie

Copy link
Copy Markdown

When the activity is destroyed while the app is paused, PollInputEvents kept looping after setting CORE.Window.shouldClose: while paused, ALooper_pollAll is called with an infinite timeout (-1), so on the next iteration it blocked forever waiting for an event that never arrives. main() never returned, the native thread stayed alive, and the following launch hung inheriting that thread.

When the activity is destroyed while the app is paused, PollInputEvents
kept looping after setting CORE.Window.shouldClose: while paused,
ALooper_pollAll is called with an infinite timeout (-1), so on the next
iteration it blocked forever waiting for an event that never arrives.
main() never returned, the native thread stayed alive, and the following
launch hung inheriting that thread.
@get-charlie get-charlie changed the title Fix Android relaunch hang after destroy while paused [rcore][Android] Fix Android relaunch hang after destroy while paused Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant