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

OOM Error #19

Open
vellrya opened this issue Jun 13, 2017 · 5 comments
Open

OOM Error #19

vellrya opened this issue Jun 13, 2017 · 5 comments

Comments

@vellrya
Copy link
Contributor

vellrya commented Jun 13, 2017

На многих устройствах при попытке выделить большУю часть изображения приложение падает:

Caused by: java.lang.OutOfMemoryError

                                                                     at android.graphics.Bitmap.nativeCreate(Native Method)
                                                                     at android.graphics.Bitmap.createBitmap(Bitmap.java:640)
                                                                     at android.graphics.Bitmap.createBitmap(Bitmap.java:575)
                                                                     at android.graphics.Bitmap.createBitmap(Bitmap.java:501)
                                                                     at com.steelkiwi.cropiwa.image.CropArea.applyCropTo(CropArea.java:35)
                                                                     at com.steelkiwi.cropiwa.image.CropImageTask.doInBackground(CropImageTask.java:49)
                                                                     at com.steelkiwi.cropiwa.image.CropImageTask.doInBackground(CropImageTask.java:20)
                                                                     at android.os.AsyncTask$2.call(AsyncTask.java:287)
                                                                     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
                                                                     at java.util.concurrent.FutureTask.run(FutureTask.java:137) 
                                                                     at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230) 
                                                                     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) 
                                                                     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) 
                                                                     at java.lang.Thread.run(Thread.java:856) 

Хотелось бы исправления)

@polyak01
Copy link
Contributor

@vellrya сейчас дико загружены. Займёмся фиксами в ближайшее время.

@polyak01 polyak01 added the bug label Jun 13, 2017
@flasher297
Copy link
Contributor

I've also faced this issue, but on next line of code
immutableCropped.copy(immutableCropped.getConfig(), true); - CropArea.java - 40th line of code.

@flasher297
Copy link
Contributor

flasher297 commented Oct 26, 2017

I've created PR that fixes this issue.
#35
Please read its description.

@romshiri
Copy link

romshiri commented Nov 6, 2017

Any news?

@KennyGoers
Copy link

I'm running into this myself, any other attempt to deal with it? Project dead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants