-
Notifications
You must be signed in to change notification settings - Fork 94
Open
Description
Step 1: Are you in the right place?
- Yes, issue also affects the sample SwiftUI code in this repository
Step 2: Describe your environment
- Xcode version: 14.2 (14C18)
- Test Device: iPad mini (6th generation), OS: 16.3.1
- BlinkID SDK version: 6.1.1
- What are you trying to scan: German sample ID card image (https://www.google.hu/url?sa=i&url=https%3A%2F%2Fglobaldocumentservice.com%2Fproduct%2Ffake-german-id-card%2F&psig=AOvVaw01I_k1tQjv8hW4FvVnaBI_&ust=1678549488366000&source=images&cd=vfe&ved=0CBAQjRxqFwoTCPi4iKLa0f0CFQAAAAAdAAAAABAF)
Step 3: Describe the problem
If the scanning view is used inside a SwiftUI view, and I try to scan an image which is hard to scan for some reason, the memory usage jumps significantly, even above 1-2 GB, causing the app to crash eventually.
I've tried to use the SDK in SwiftUI in many different ways, but could not pinpoint the cause of the memory leak, I've also tried out the code from the Sample folder and the issue still persists.
The issue is not critical, as it is only causing a problem if a document is very hard to read, I could only test it with a fake ID card, but it indicates a serious memory leak in the SDK.
Step 4: Relevant code
Try to scan a hard-to-read (e.g. Text overlay on the image) document with the sample SwiftUI code in this repository and monitor memory usage.
Metadata
Metadata
Assignees
Labels
No labels