-
Notifications
You must be signed in to change notification settings - Fork 171
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
Unexpected stop on the demo #13
Comments
Hi, could you tell me what's device and system you are using? |
Hi, Zony ZL with Android 4.4.2 and built with the 64bit, 20140702 version Eclipse ADT Bundle plus the android-ndk64-r10b. |
It's Sony? It throw OutOfMemoryError, I think your machine doesn't have enough memory when you apply the filter |
However, the device has 2G memory and when testing, it still has 1G free memory to use. Could there be other reason for the unexpected stop ? |
may be the size of picture is too large, what's the picture resolution when you get crash? |
The picture is 3920 x 2940, 2.54MB, taken by the device's camera. I think the problem lie on the picture's resolution like you says. Everything goes fine when using a small image, 800 x 800, 177KB. |
Android loads a bitmap as inMutable which means (briefly) it allows you to modify the bitmap in the RAM. But this consumes a lot of RAM. If you don't need to modify the image on the fly, you can turn this feature off while loading the image. This eliminates the out of memory exception. Check out the code below: BitmapFactory.Options opts = new BitmapFactory.Options(); |
Hi,
First of all, thank you for the great job on this.
I am trying it out thru the demo app in this project.
However, eveytime when I apply an effect then the demo app stops unexpectedly.
Here are some examples of what I got when the unexpected stop happens:
Could the memory cause this issue ?
What could the root cause ?
Thank you
The text was updated successfully, but these errors were encountered: