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 Exception #19

Open
Aeefire opened this issue Apr 20, 2016 · 0 comments
Open

OutOfMemory Exception #19

Aeefire opened this issue Apr 20, 2016 · 0 comments

Comments

@Aeefire
Copy link

Aeefire commented Apr 20, 2016

Hey, I am using your library freshly and came across a little problem.

With 5 simple drawable images (roughly 120 kb each) I get an OutOfMemory Exception after scrolling around a bit.

Is there any solution to this I am missing? Or could this be an issue in your "refill"-mechanism?

I would be glad about any help. Thanks in advance.

java.lang.OutOfMemoryError: Failed to allocate a 5526732 byte allocation with 1447312 free bytes and 1413KB until OOM
at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:609)
at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:444)
at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:1080)
at android.content.res.Resources.loadDrawableForCookie(Resources.java:2765)
at android.content.res.Resources.loadDrawable(Resources.java:2670)
at android.content.res.Resources.getDrawable(Resources.java:843)
at android.content.res.Resources.getDrawable(Resources.java:818)
at android.content.Context.getDrawable(Context.java:458)
at android.support.v4.content.ContextCompatApi21.getDrawable(ContextCompatApi21.java:26)
at android.support.v4.content.ContextCompat.getDrawable(ContextCompat.java:321)
at android.support.v7.widget.TintManager.getDrawable(TintManager.java:175)
at android.support.v7.widget.TintManager.getDrawable(TintManager.java:168)
at android.support.v7.widget.AppCompatImageHelper.setImageResource(AppCompatImageHelper.java:51)
at android.support.v7.widget.AppCompatImageView.setImageResource(AppCompatImageView.java:72)
at coffeeui.poi.jku.at.coffeeui.adapters.CoverFlowAdapter.getView(CoverFlowAdapter.java:67)
at it.moondroid.coverflow.components.ui.containers.FeatureCoverFlow.getViewAtPosition(FeatureCoverFlow.java:634)
at it.moondroid.coverflow.components.ui.containers.FeatureCoverFlow.refillLeft(FeatureCoverFlow.java:665)
at it.moondroid.coverflow.components.ui.containers.EndlessLoopAdapterContainer.computeScroll(EndlessLoopAdapterContainer.java:404)
at it.moondroid.coverflow.components.ui.containers.FeatureCoverFlow.computeScroll(FeatureCoverFlow.java:1033)

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