stripe / stripe-android

Stripe Android SDK
https://stripe.com/docs/mobile/android
MIT License
1.28k stars 645 forks source link

[BUG] Unable to scan card into CardFormView #5745

Closed Angelia-Gong closed 2 years ago

Angelia-Gong commented 2 years ago

Summary

I have a screen with the Stripe CardFormView. Manual typing works. Auto complete (from Google payment method in my account) works. But when I tap on the scan button above my android keyboard and try to scan the card, it errors and exits out the screen.

I get the following errors:

2022-10-25 15:47:37.213 912-6443/? E/Lyric: csi_driver.cc:675: Event handler error: NOT_FOUND: Unknown transaction 2511 not accounted for
2022-10-25 15:47:37.250 912-2185/? E/Lyric: camera_device_session_manager_impl.cc:434: CameraDeviceSessionManagerImpl::StopProcessingGraph encountered an error: FAILED_PRECONDITION: graph not initialized
2022-10-25 15:47:37.250 912-2185/? E/CameraDeviceSessionHwlImpl: WaitAndStopLyricGraphs: Failed to session_manager->StopProcessingGraph(), errno: -19
2022-10-25 15:47:37.250 912-2185/? E/CameraDeviceSessionHwlImpl: DestroyPipelines: WaitAndStopLyricGraphs() failed!, errno: -19
2022-10-25 15:47:37.277 1617-23669/? E/FrameEvents: updateAcquireFence: Did not find frame.
2022-10-25 15:47:37.733 3044-3050/? E/pixelstats-uevent: Unable to read /sys/class/power_supply/battery/charge_stats - No data available
2022-10-25 15:47:37.825 3044-3050/? E/pixelstats-uevent: Unable to read /sys/class/power_supply/battery/charge_stats - No data available
2022-10-25 15:47:37.932 3044-3050/? E/pixelstats-uevent: Unable to read /sys/class/power_supply/battery/charge_stats - No data available

I'm actually not sure if this is a problem with the stripe component, or if it's Google. Could I get help on this? Or is there a way to disable the scanning feature?

Android version

Only tested on 12, 10, 9

Impacted devices

Only tested on Pixel 6, Pixel 4, Samsung Galaxy Note 9

Stripe version:

com.stripe:stripe-android:17.0.0

jameswoo-stripe commented 2 years ago

Hi @Angelia-Gong thank you for raising this issue, I will take a look into this.

Angelia-Gong commented 2 years ago

Thanks for looking into this. I've figured out what the problem is. The problem is on my own code - I set the activity noHistory = true, which should be false.