Skip to content
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

Possible memory leak or normal behavior #35

Closed
babucha opened this issue May 6, 2019 · 3 comments
Closed

Possible memory leak or normal behavior #35

babucha opened this issue May 6, 2019 · 3 comments

Comments

@babucha
Copy link

babucha commented May 6, 2019

I've just noticed that after each scan the memory allocated is getting 8-10Mb bigger (after about 10 scans memory usage exceeds 100 Mb ). Is it OK, or maybe an issue of Debug Navigator? It seems that when the PassportScannerController dismisses, it has not been fully deallocated. Tesseract cash clean up doesn't help.

@babucha
Copy link
Author

babucha commented May 7, 2019

Probably, I've found a solution (taken the problem really exists) - added a check if the var tesseract has already been assigned to @objc public func setup(). Now memory usage remains stable even after a multiple consecutive scans

@evermeer
Copy link
Owner

evermeer commented May 7, 2019

Sounds good. Could you make a Pull Request for that?

@evermeer
Copy link
Owner

evermeer commented May 9, 2019

The change is published as version 4.6.0

@evermeer evermeer closed this as completed May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants