ViewPump
ViewPump copied to clipboard
Out Of Memory Error
Fatal Exception: java.lang.OutOfMemoryError Failed to allocate a 3096012 byte allocation with 1800472 free bytes and 1758KB until OOM dalvik.system.VMRuntime.newNonMovableArray (VMRuntime.java) androidx.appcompat.app.AppCompatDelegateImpl.onCreateView (AppCompatDelegateImpl.java:1457) io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater$WrapperFactory2ViewCreator.onCreateView (-ViewPumpLayoutInflater.kt:378) io.github.inflationx.viewpump.internal.-FallbackViewCreationInterceptor.intercept (-FallbackViewCreationInterceptor.kt:14) io.github.inflationx.viewpump.internal.-InterceptorChain.proceed (-InterceptorChain.kt:30) io.github.inflationx.calligraphy3.CalligraphyInterceptor.intercept (CalligraphyInterceptor.java:18) io.github.inflationx.viewpump.internal.-InterceptorChain.proceed (-InterceptorChain.kt:30) io.github.inflationx.viewpump.ViewPump.inflate (ViewPump.kt:36) io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater$WrapperFactory2.onCreateView (-ViewPumpLayoutInflater.kt:358) android.view.LayoutInflater.createViewFromTag (LayoutInflater.java:732) android.view.LayoutInflater.inflate (LayoutInflater.java:511) io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater.inflate (-ViewPumpLayoutInflater.kt:57) android.view.LayoutInflater.inflate (LayoutInflater.java:415) io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater.inflate (-ViewPumpLayoutInflater.kt:48) androidx.databinding.DataBindingUtil.inflate (DataBindingUtil.java:126) net.ibazzar.ibazzar.ui.main.poster.PostersPagingViewHolder$Companion.create (PostersPagingViewHolder.kt:194) net.ibazzar.ibazzar.ui.main.poster.PostersPagingAdapter.onCreateViewHolder (PostersPagingAdapter.kt:56) androidx.recyclerview.widget.RecyclerView$Adapter.createViewHolder (RecyclerView.java:7078) com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1194)
any fix for this?
I faced the same issue on android 7 - Huwaei device
library version implementation 'io.github.inflationx:calligraphy3:3.1.1' implementation 'io.github.inflationx:viewpump:2.0.3'
Fatal Exception: java.lang.OutOfMemoryError
Failed to allocate a 576000012 byte allocation with 4194304 free bytes and 188MB until OOM
dalvik.system.VMRuntime.newNonMovableArray (VMRuntime.java)
android.graphics.BitmapFactory.nativeDecodeAsset (BitmapFactory.java)
android.graphics.BitmapFactory.decodeStream (BitmapFactory.java:701)
android.graphics.BitmapFactory.decodeResourceStream (BitmapFactory.java:508)
android.graphics.drawable.Drawable.createFromResourceStream (Drawable.java:1152)
android.content.res.ResourcesImpl.loadDrawableForCookie (ResourcesImpl.java:930)
android.content.res.ResourcesImpl.loadDrawable (ResourcesImpl.java:769)
android.content.res.Resources.loadDrawable (Resources.java:921)
android.content.res.TypedArray.getDrawable (TypedArray.java:983)
android.widget.ImageView.
Same error here.
Android version: 7.1.1 Device: LG Q6 7 Jun 2022, 16:55:59
Fatal Exception: java.lang.OutOfMemoryError: Failed to allocate a 177707532 byte allocation with 8665792 free bytes and 115MB until OOM at dalvik.system.VMRuntime.newNonMovableArray(VMRuntime.java) at android.graphics.BitmapFactory.nativeDecodeAsset(BitmapFactory.java) at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:620) at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:455) at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:1155) at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:859) at android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:710) at android.content.res.Resources.loadDrawable(Resources.java:867) at android.content.res.TypedArray.getDrawable(TypedArray.java:928) at android.widget.ImageView.<init>(ImageView.java:162) at android.widget.ImageView.<init>(ImageView.java:150) at androidx.appcompat.widget.AppCompatImageView.<init>(AppCompatImageView.java:74) at androidx.appcompat.widget.AppCompatImageView.<init>(AppCompatImageView.java:69) at androidx.appcompat.app.AppCompatViewInflater.createImageView(AppCompatViewInflater.java:199) at androidx.appcompat.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:119) at androidx.appcompat.app.AppCompatDelegateImpl.createView(AppCompatDelegateImpl.java:1551) at androidx.appcompat.app.AppCompatDelegateImpl.onCreateView(AppCompatDelegateImpl.java:1602) at io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater$WrapperFactory2ViewCreator.onCreateView(-ViewPumpLayoutInflater.kt:378) at io.github.inflationx.viewpump.internal.-FallbackViewCreationInterceptor.intercept(-FallbackViewCreationInterceptor.kt:14) at io.github.inflationx.viewpump.internal.-InterceptorChain.proceed(-InterceptorChain.kt:30) at io.github.inflationx.calligraphy3.CalligraphyInterceptor.intercept(CalligraphyInterceptor.java:18) at io.github.inflationx.viewpump.internal.-InterceptorChain.proceed(-InterceptorChain.kt:30) at io.github.inflationx.viewpump.ViewPump.inflate(ViewPump.kt:36) at io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater$WrapperFactory2.onCreateView(-ViewPumpLayoutInflater.kt:358) at android.view.LayoutInflater$FactoryMerger.onCreateView(LayoutInflater.java:192) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:769) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727) at android.view.LayoutInflater.rInflate(LayoutInflater.java:858) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821) at android.view.LayoutInflater.inflate(LayoutInflater.java:518) at io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater.inflate(-ViewPumpLayoutInflater.kt:57) at android.view.LayoutInflater.inflate(LayoutInflater.java:426) at io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater.inflate(-ViewPumpLayoutInflater.kt:48) at androidx.fragment.app.Fragment.onCreateView(Fragment.java:1924) at androidx.fragment.app.Fragment.performCreateView(Fragment.java:2963) at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:518) at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:282) at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2189) at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2106) at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:2002) at androidx.fragment.app.FragmentManager$5.run(FragmentManager.java:524) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6349) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:893) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:783)
Not viewpump related, it just appears in the stacktrace because it participates in inflation and that was happening during your OOM.