Last active
May 23, 2018 13:43
-
-
Save alexshikov/ff8b522f7e8b55ec719f68e1765b0314 to your computer and use it in GitHub Desktop.
Fix to NavigationPageRenderer constructor crash
After I fixed this one, I started getting the same exceptions about other renderers - ListView, Page etc. It seems the core of the problem is here: https://developer.xamarin.com/guides/android/under_the_hood/architecture/#Premature_Dispose_Calls
And, unfortunately, Xamarin.Forms itself is not able to deal correctly with the situation when UI elements get created and disposed fast during navigation between views.
Strangely, the problem manifested itself only on older Android devices (4.x). I guess, I'll have to invent some other kinds of protection to prevent user from navigating too fast (which seems impossible task because it's not clear what is "too fast"...)
@midix have you managed to minimize total occurrences of such crashes?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is excellent - thank you!