-
Notifications
You must be signed in to change notification settings - Fork 661
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
SCA WebView crashes #1645
Comments
@hitokiri82 thanks for filing. Did this issue start happening after upgrading from an earlier Stripe SDK version? Does it happen on different Android API versions? How about emulator vs physical device? Also, can you provide a video recording of the behavior you're describing? This will help me investigate. |
@mshafrir-stripe I have tried with SDK version 11.1.3 and 11.1.4. Havent tried on different Android API versions, nor in an emulator. I will try those out and let you know if it behaves differently. |
@hitokiri82 can you add your email address to your profile? I can contact you there. |
Done |
I have exactly the same issue on a Pixel 3A XL. No problem with my Pixel 3 XL on the same Android version (10). I've tested with two different versions of the SDK : 10.2.1 and 11.1.4 |
@JulienDev you're seeing the crash on both 10.2.1 and 11.1.4? |
Yes |
@JulienDev can you share a stacktrace? |
Sure, but not publicly, please contact me by email |
@JulienDev can you give me the exact steps to repro the crash? For example, what do you see and what do you click on? |
The SCA payment activity is shown with a loader, and when the loader disappear the app crash with the stacktrace I've provided. Nothing is shown inside the webview, it just stays blank |
We are seeing the same on a One Plus 7 pro on Android 10. Have not reproduced it on another device. It did seem to go away for awhile. But it keeps happening again. Tried uninstalling the app etc and it still keeps happening. We are only on stripe sdk 10.3.1 so we are going to update to the latest and see if that resolves it. But sounds like its happening on more newer version of sdk anyway. |
@jasonblood thanks for reporting this issue. I have a potential fix for the issue, but I can't reproduce the crash myself, so would you be able to confirm? You'll need to update your top-level
Then update your dependency to:
|
Hi @mshafrir-stripe, Will do, sadly I won't be able to do it until Monday but will post back here if no one else beats me to it! |
This should now be resolved in 11.2.2. Please confirm if it's resolved on your end. |
Hi @mshafrir-stripe, That seems to have fixed the issue alright for me. Nice work! Thanks for the help and quick response. |
@jasonblood that's great to hear. Thanks for confirming. |
Fixed it for me too. Great job! |
Summary
I'm running some tests with storing a card that requires SCA for charging it later. I'm using Stripe's test cards as found here.
The issue I'm running into is that the WebView with Stripe's 3DS authorization page work fine as long as I always authorize the operation. If I fail the authorization the WebView stops working for all subsequent requests, for example if I try to add another card the WebView starts, shows a little spinner for a short period, never shows Stripe authorization mock page and eventually the screen goes blank, and then I'm back at my app's last screen. In my activity's onActivityResult I receive the correct
requestCode
,resultCode
is RESULT_CANCELED anddata
isnull
.Once that happens once, it will happen again every time I cede control to stripe-android for authorizing any operation. The only way to reset this behavior is uninstalling the app and installing it again, in which case everything will work fine until I intentionally fail an authorization.
When the error happens, the log (which I am attaching to the issue) shows a block that starts with
--------- beginning of crash
and that contains these lines:2019-10-01 17:34:03.249 11000-11000/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x54
2019-10-01 17:34:03.249 11000-11000/? A/DEBUG: Cause: null pointer dereference
Code to reproduce
Android version
9
Impacted devices
Pixel 3a
Installation method
Gradle
SDK version
com.stripe:stripe-android:11.1.4
Log
crash_log.txt
The text was updated successfully, but these errors were encountered: