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

OutOfMemory #31

Open
muratYamann opened this issue May 8, 2018 · 1 comment
Open

OutOfMemory #31

muratYamann opened this issue May 8, 2018 · 1 comment

Comments

@muratYamann
Copy link

muratYamann commented May 8, 2018

in Manifest : android:largeHeap="true"

Fatal Exception: java.lang.OutOfMemoryError
at android.graphics.Bitmap.nativeCreate(Bitmap.java)
at android.graphics.Bitmap.createBitmap(Bitmap.java:726)
at android.graphics.Bitmap.createBitmap(Bitmap.java:703)
at android.graphics.Bitmap.createBitmap(Bitmap.java:625)
at android.graphics.Bitmap.createBitmap(Bitmap.java:551)
at com.naver.android.helloyako.imagecrop.model.CropInfo.getCroppedImage(CropInfo.java:69)
at com.naver.android.helloyako.imagecrop.model.CropInfo.getCroppedImage(CropInfo.java:43)
at com.naver.android.helloyako.imagecrop.model.CropInfo.getCroppedImage(CropInfo.java:34)
at com.naver.android.helloyako.imagecrop.view.ImageCropView.getCroppedImage(ImageCropView.java:927)
at com.modacruz2.app.addProduct.ImageGalleryFragment.getCroppedImages(ImageGalleryFragment.java:188)
at com.modacruz2.app.addProduct.ImagePickerActivity$3.run(ImagePickerActivity.java:113)
at java.lang.Thread.run(Thread.java:841)

@helloyako

@helloyako
Copy link
Contributor

How did you set image?
I recommendimageCropView.setImageFilePath(path); instead of imageCropView.setImageURI(imageUri);

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