-
Notifications
You must be signed in to change notification settings - Fork 48
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
java.lang.IllegalStateException since update #293
Comments
I also get a lot of illegalstate exceptions, I was able to reproduce it as simply as putting the app to the background and changing the phone to darkmode then going back into the app. I surmised it had something to do with the app rebuilding a view, though I haven't tested it with other methods(such as rotating the view or otherwise forcing it the rebuild the view) |
I think this is the same bug |
There isn't really any added logic in the AndroidX binding. It is simply a generated wrapper around Google's As there are multiple XF bugs linked already, closing this issue in favor of those bugs. |
Version Information
Describe your Issue:
After a upgrade of Android X packages a lot of users are experiencing this (see stack trace) kind of crash. I can see it via google "Crashes and ANRS".
Upgraded AndroidX packages:
Xamarin.AndroidX.Palette 1.0.0.6 > 1.0.0.7
Xamarin.AndroidX.Lifecycle.LiveData 2.2.0.4 > 2.3.0.1
Xamarin.Google.Android.Material 1.3.0 > 1.3.0.1
Xamarin.AndroidX.Legacy.Support.V4 1.0.0.6 > 1.0.0.7
Xamarin.AndroidX.MediaRouter 1.2.1 > 1.2.2.1
Steps to Reproduce (with link to sample solution if possible):
I could not reproduce it on the emulator, I am not sure. Seems to happen sporadically on startup of the app.
Edit: It seems it happens only when the app was killed by android before and the user tries to start the app:
app.kill("excessive cpu " + cputimeUsed + " during " + uptimeSince + " dur=" + checkDur + " limit=" + cpuLimit, true);
Source: https://android.googlesource.com/platform/frameworks/base/+/97995da6e1d40a053402cc120944e3738a18d1a0/services/core/java/com/android/server/am/ActivityManagerService.java#24367
Include any relevant Exception Stack traces, build logs, adb logs:
ADB Bug Report: bugreport-sdk_gphone_x86-RSR1.201013.001-2021-03-22-14-50-25.zip
The text was updated successfully, but these errors were encountered: