-
Notifications
You must be signed in to change notification settings - Fork 89
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
Memory leak when using in SwiftUI #395
Comments
Hello @gburai , thank you for reaching out and reporting this issue. Would you mind sharing the exception you get so we can analyze it? We will also try to reproduce it on our side and will follow up with the findings. |
Thank you for your quick response. I'm not sure if this would be of help: The app “...” on Gergo’s iPad quit unexpectedly.
|
Hi @gburai Following up on the thread. We've figured out what is causing the memory leak, and the issue will be fixed in the next (6.2.0) release. |
Step 1: Are you in the right place?
Step 2: Describe your environment
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.
The text was updated successfully, but these errors were encountered: