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
We are facing an issue since many versions ago. We have been delaying this issue as it has not been much impactful until now. We are having some spikes and we would like to come with a fix asap :)
Code to reproduce
We can't reproduce and the feedback compres from several different devices and version here is the log of one crash:
Fatal Exception: java.lang.ClassCastException: android.widget.TextView$SavedState cannot be cast to com.stripe.android.view.StripeEditText$StripeEditTextState
at com.stripe.android.view.StripeEditText.onRestoreInstanceState(StripeEditText.kt:255)
at com.stripe.android.view.CardNumberEditText.onRestoreInstanceState(CardNumberEditText.kt:323)
at android.view.View.dispatchRestoreInstanceState(View.java:22756)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4219)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4219)
at com.google.android.material.textfield.TextInputLayout.dispatchRestoreInstanceState(TextInputLayout.java:3171)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4219)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4219)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4219)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4219)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4219)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4219)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4219)
at android.view.View.restoreHierarchyState(View.java:22734)
at androidx.fragment.app.Fragment.restoreViewState(Fragment.java:699)
at androidx.fragment.app.Fragment.restoreViewState(Fragment.java:3177)
at androidx.fragment.app.Fragment.performActivityCreated(Fragment.java:3162)
at androidx.fragment.app.FragmentStateManager.activityCreated(FragmentStateManager.java:631)
at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:281)
at androidx.fragment.app.FragmentStore.moveToExpectedState(FragmentStore.java:114)
at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1614)
at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3198)
at androidx.fragment.app.FragmentManager.dispatchActivityCreated(FragmentManager.java:3116)
at androidx.fragment.app.Fragment.performActivityCreated(Fragment.java:3163)
at androidx.fragment.app.FragmentStateManager.activityCreated(FragmentStateManager.java:631)
at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:281)
at androidx.fragment.app.FragmentStore.moveToExpectedState(FragmentStore.java:114)
at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1614)
at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3198)
at androidx.fragment.app.FragmentManager.dispatchActivityCreated(FragmentManager.java:3116)
at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:263)
at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:350)
at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:251)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1510)
at android.app.Activity.performStart(Activity.java:8616)
at android.app.ActivityThread.handleStartActivity(ActivityThread.java:4204)
at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221)
at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2574)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8762)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
hello @tjclawson-stripe the issue is the this is the only information we can provide. We, devs, are unable to reproduce but the issue is appearing quite a lot of times. My feeling is that this is happening in a Android configuration change.
Summary
We are facing an issue since many versions ago. We have been delaying this issue as it has not been much impactful until now. We are having some spikes and we would like to come with a fix asap :)
Code to reproduce
We can't reproduce and the feedback compres from several different devices and version here is the log of one crash:
Android version
Impacted devices
Installation method
Gradle
Dependency Versions
kotlin:
2.0.0
stripe-android:
20.47.0
Android Gradle Plugin:
8.4.0
Gradle:
gradle-8.7
SDK classes
N/A
Video
Other information
The text was updated successfully, but these errors were encountered: