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

OutOfMemoryError #44

Open
woshizilong opened this issue Jan 29, 2019 · 0 comments
Open

OutOfMemoryError #44

woshizilong opened this issue Jan 29, 2019 · 0 comments

Comments

@woshizilong
Copy link

woshizilong commented Jan 29, 2019

When I use RubberStamp to add a watermark to a 3120x4160 6.62MB image,I got the following crash log。
=========================== crash log start ==============================
--------- beginning of crash
01-29 17:54:17.570 23085-23085/org.highway E/AndroidRuntime: FATAL EXCEPTION: main
Process: org.highway, PID: 23085
java.lang.OutOfMemoryError: Failed to allocate a 51916812 byte allocation with 16777120 free bytes and 19MB until OOM
at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
at android.graphics.Bitmap.nativeCreate(Native Method)
at android.graphics.Bitmap.createBitmap(Bitmap.java:812)
at android.graphics.Bitmap.createBitmap(Bitmap.java:789)
at android.graphics.Bitmap.createBitmap(Bitmap.java:756)
at com.vinaygaba.rubberstamp.RubberStamp.addStamp(RubberStamp.java:55)
=========================== crash log end ==============================

Do I have to reduce the size of the picture?

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

1 participant