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

TechAdapter doblur got OOM #5

Open
mavsforlife opened this issue Sep 12, 2016 · 2 comments
Open

TechAdapter doblur got OOM #5

mavsforlife opened this issue Sep 12, 2016 · 2 comments

Comments

@mavsforlife
Copy link

java.lang.OutOfMemoryError: Failed to allocate a 25165836 byte allocation with 16565788 free bytes and 15MB until OOM
at com.codeest.geeknews.util.ImageUtil.doBlur(ImageUtil.java:64)
at com.codeest.geeknews.ui.gank.adapter.TechAdapter$2.onResourceReady(TechAdapter.java:105)
at com.codeest.geeknews.ui.gank.adapter.TechAdapter$2.onResourceReady(TechAdapter.java:101)
at com.bumptech.glide.request.GenericRequest.onResourceReady(GenericRequest.java:525)
at com.bumptech.glide.request.GenericRequest.onResourceReady(GenericRequest.java:507)
at com.bumptech.glide.load.engine.EngineJob.handleResultOnMainThread(EngineJob.java:158)
at com.bumptech.glide.load.engine.EngineJob.access$100(EngineJob.java:22)
at com.bumptech.glide.load.engine.EngineJob$MainThreadCallback.handleMessage(EngineJob.java:202)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5290)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:908)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:703)

@codeestX
Copy link
Owner

@mavsforlife Hello, mavsforlife.The current blur algorithm is not good enough, RenderScript is the best way for Android to blur a bitmap.I have tried it ,but did not get the expected result. I'm still trying to find a solution.

@jp1017
Copy link

jp1017 commented Oct 8, 2016

同遇到此问题

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

3 participants