-
Notifications
You must be signed in to change notification settings - Fork 554
App hangs on card-scanning screen #153
Comments
@ABorshche are you able to reproduce this on other devices? Also, which version of card.io are you using? I don't have an iPhone 5s with exactly iOS 9.0.2 immediately on hand but tried a couple other devices including an iPhone 5 with iOS 8.4. I wasn't able to reproduce the issue with the freezing. |
I tried several devices with iOS 8/9 and also wasn't able to reproduce the issue. But is 100% reproduces on all 3 of iPhone 5s with iOS 9.0.2 which i have. So looks like it is device/OS specific issue. Unfortunately i have no iPhone 5s with any other iOS version. I used CardIO 5.2.1 (SampleApp obj-c/swift form this repo). |
@ABorshche thanks for the additional information! We will try looking as time permits but it is odd that it is only on an iPhone 5s. |
If you kill the app while it is hung, what is the backtrack? Is it always the same? |
@josharian , yes it is always the same
|
Looks like upon backgrounding, the code that creates a blurred screenshot (for the app snapshot that appears in the app-switcher) failed to run to completion. Probably a timeout? I do have simpler code lying around somewhere for screen-blurring (*). Maybe updating that method would help. (*) which this margin is too narrow to contain |
@dgoldman-ebay, disableBlurWhenBackgrounding flag indeed solves the issue for 5s. |
@ABorshche that's reassuring! @bluk I'll try to find a free moment to send you a pull request in https://github.com/card-io/card.io-iOS-source with the improved screen-blurring code. |
Thanks to @dgoldman-ebay's fix which is in release 5.2.2. |
App hangs on card-scanning screen when going back to foreground and keeps hanging up to 1 minute. And some times app even get killed by system.
Steps:
Reproduces every time on my iPhone 5s iOS 9.0.2
The text was updated successfully, but these errors were encountered: