WebsiteBeaver / android-document-scanner

65 stars 48 forks source link

GL error: Out of memory! #37

Open orhanavan opened 1 year ago

orhanavan commented 1 year ago

I've encountered an "GL error: Out of memory!" error while using the application, specifically after taking a picture and while attempting to drag and drop pins. This issue has been observed on an Android 6.0 device running API 23. It seems to be related to a memory allocation problem. Any insights or assistance on resolving this issue would be greatly appreciated.

dmarcs commented 11 months ago

Try to set DocumentScannerExtra.EXTRA_CROPPED_IMAGE_QUALITY to a lower value in order to decrease the photo file size. Another option is for me to scale down the photo width and height.

sanduluca commented 7 months ago

How do you know it was "Out of memory" error ? I am trying to reproduce this error on a Meizu M2 Note (2GB Ram, android 7.1.2) but had no success. I opened a PR that aim to catch this error and lower the image quality but cant test it. Check here: #47

sanduluca commented 2 months ago

@orhanavan How do you know it was OutOfMemoryError ? I was trying to simulate it to test the PR but couldn't do it. Any suggestion would be appreciated.