mrxten / XamEffects

📱 Xamarin.Forms UI effects
MIT License
248 stars 41 forks source link

Application crashes on Startup. Only clue is XamEffects using ProgressBar #53

Open TomasMalcanek opened 1 year ago

TomasMalcanek commented 1 year ago

There is an issue crashing android applications. There are no repro steps and it's not happening every time. We have only 0.5% of users experiencing this crash.

android.widget.ProgressBar.onRestoreInstanceState
ProgressBar.java, line 2538
java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to android.widget.ProgressBar$SavedState

Full stacktrace:

android.widget.ProgressBar.onRestoreInstanceState ProgressBar.java:2538
android.view.View.dispatchRestoreInstanceState View.java:22256
android.view.ViewGroup.dispatchRestoreInstanceState ViewGroup.java:4826
android.view.ViewGroup.dispatchRestoreInstanceState ViewGroup.java:4826
android.view.ViewGroup.dispatchRestoreInstanceState ViewGroup.java:4826
android.view.ViewGroup.dispatchRestoreInstanceState ViewGroup.java:4826
android.view.ViewGroup.dispatchRestoreInstanceState ViewGroup.java:4826
android.view.ViewGroup.dispatchRestoreInstanceState ViewGroup.java:4826
android.view.ViewGroup.dispatchRestoreInstanceState ViewGroup.java:4826
android.view.ViewGroup.dispatchRestoreInstanceState ViewGroup.java:4826
android.view.ViewGroup.dispatchRestoreInstanceState ViewGroup.java:4826
android.view.ViewGroup.dispatchRestoreInstanceState ViewGroup.java:4826
android.view.ViewGroup.dispatchRestoreInstanceState ViewGroup.java:4826
android.view.ViewGroup.dispatchRestoreInstanceState ViewGroup.java:4826
android.view.View.restoreHierarchyState View.java:22234
com.android.internal.policy.PhoneWindow.restoreHierarchyState PhoneWindow.java:2272
android.app.Activity.onRestoreInstanceState Activity.java:1768
android.app.Activity.performRestoreInstanceState Activity.java:1721
android.app.Instrumentation.callActivityOnRestoreInstanceState Instrumentation.java:1376
android.app.ActivityThread.handleStartActivity ActivityThread.java:4152
android.app.servertransaction.TransactionExecutor.performLifecycleSequence TransactionExecutor.java:221
android.app.servertransaction.TransactionExecutor.cycleToPath TransactionExecutor.java:201
android.app.servertransaction.TransactionExecutor.executeLifecycleState TransactionExecutor.java:173
android.app.servertransaction.TransactionExecutor.execute TransactionExecutor.java:97
android.app.ActivityThread$H.handleMessage ActivityThread.java:2443
android.os.Handler.dispatchMessage Handler.java:106
android.os.Looper.loopOnce Looper.java:226
android.os.Looper.loop Looper.java:313
android.app.ActivityThread.main ActivityThread.java:8751
java.lang.reflect.Method.invoke Method.java
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run RuntimeInit.java:571
com.android.internal.os.ZygoteInit.main ZygoteInit.java:1135

We don't use any ProgressBars and the only nuget that uses them is XamEffects so I am directing this issue here.