Android crashes on Modal Animation when backgrounded #23399
Labels
area-navigation
NavigationPage
fixed-in-8.0.80
fixed-in-9.0.0-preview.7.24407.4
platform/android 🤖
t/bug
Something isn't working
Milestone
Description
While an animation is in progress and the app is backgrounded the app crashes with an
java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
This is currently our number 1 exception in production.
All of our stack traces point to the ModalContainer.Destroy() method
We looked at the following issues to see if they were related or had any workarounds, they seem like similar issues but didn't seem like the same to us.
Further we believe that updating the line to use
CommitAllowingStateLossEx
instead ofCommit
would fix the issue, however we're unaware of the implications of that change.Steps to Reproduce
Unable to reproduce locally, but it was introduced after upgrading from Xamarin.Forms
Link to public reproduction project repository
No response
Version with bug
8.0.40 SR5
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
No
Relevant log output
The text was updated successfully, but these errors were encountered: