Skip to content

OutOfMemory Exception #19

Description

@Aeefire

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)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions