You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using an AndroidFragmentApplication causes the app to kill itself when onPause is called.
Error log: waiting for pause synchronization took too long; assuming deadlock and killing
Reproduction steps/code
classGameFragment: AndroidFragmentApplication() {
privateval game =Game()
overridefunonCreateView(inflater:LayoutInflater, container:ViewGroup?, savedInstanceState:Bundle?): View? {
super.onCreateView(inflater, container, savedInstanceState)
return initializeForView(game)
}
overridefunonPause() {
// Dies after onPausesuper.onPause()
}
}
Fragment is used in Compose app like this:
AndroidViewBinding(GameFragmentBinding::inflate)
Workaround
Crash can be avoided by manually calling onDrawFrame
Issue details
Using an AndroidFragmentApplication causes the app to kill itself when onPause is called.
Error log: waiting for pause synchronization took too long; assuming deadlock and killing
Reproduction steps/code
Fragment is used in Compose app like this:
Workaround
Crash can be avoided by manually calling onDrawFrame
Version of libGDX and/or relevant dependencies
1.12.1
Stacktrace
Please select the affected platforms
The text was updated successfully, but these errors were encountered: