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了 #18

Open
drkingwater opened this issue Aug 18, 2020 · 1 comment
Open

进入直接OOM了 #18

drkingwater opened this issue Aug 18, 2020 · 1 comment

Comments

@drkingwater
Copy link

Process: com.mvvm.mvvmcomponent, PID: 31392
java.lang.OutOfMemoryError: Failed to allocate a 24037772 byte allocation with 16777216 free bytes and 19MB 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:2650)
at android.content.res.Resources.loadDrawable(Resources.java:2555)
at android.content.res.Resources.getDrawable(Resources.java:814)
at android.content.res.XResources.getDrawable(XResources.java:790)
at android.content.Context.getDrawable(Context.java:458)
at androidx.core.content.ContextCompat.getDrawable(ContextCompat.java:455)
at androidx.appcompat.widget.ResourceManagerInternal.getDrawable(ResourceManagerInternal.java:144)
at androidx.appcompat.widget.ResourceManagerInternal.getDrawable(ResourceManagerInternal.java:132)
at androidx.appcompat.content.res.AppCompatResources.getDrawable(AppCompatResources.java:104)
at androidx.appcompat.widget.AppCompatImageHelper.setImageResource(AppCompatImageHelper.java:86)
at androidx.appcompat.widget.AppCompatImageView.setImageResource(AppCompatImageView.java:94)
at com.drz.main.viewholder.CustomPageViewHolder.onBind(CustomPageViewHolder.java:32)
at com.drz.main.viewholder.CustomPageViewHolder.onBind(CustomPageViewHolder.java:20)
at com.zhpan.bannerview.adapter.BannerPagerAdapter.createView(BannerPagerAdapter.java:92)
at com.zhpan.bannerview.adapter.BannerPagerAdapter.getView(BannerPagerAdapter.java:84)
at com.zhpan.bannerview.adapter.BannerPagerAdapter.instantiateItem(BannerPagerAdapter.java:56)
at androidx.viewpager.widget.ViewPager.addNewItem(ViewPager.java:1010)
at androidx.viewpager.widget.ViewPager.populate(ViewPager.java:1224)
at androidx.viewpager.widget.ViewPager.populate(ViewPager.java:1092)
at androidx.viewpager.widget.ViewPager$3.run(ViewPager.java:273)

@du222
Copy link

du222 commented Apr 23, 2024

够拉

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