question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ANR from ViewPump.init(ViewPump.builder()

See original GitHub issue

My app gets sometimes an ANR from that line ViewPump.init(ViewPump.builder()

looking like this:

“main” prio=5 tid=1 Runnable | group=“main” sCount=0 dsCount=0 flags=0 obj=0x72b266f0 self=0x7c85cc3a00 | sysTid=25641 nice=0 cgrp=default sched=0/0 handle=0x7c8a49c9b0 | state=R schedstat=( 1753354711 262386751 2208 ) utm=30 stm=145 core=0 HZ=100 | stack=0x7ff109e000-0x7ff10a0000 stackSize=8MB | held mutexes= “mutator lock”(shared held)

Not sure it’s actually the framworks fault but maybe anyone knows what this means

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
dirol90commented, Aug 8, 2020

Same problem is I use version 1.0 work older devices like honor or Xiaomi, but in this case, I have a problem with all-new phones with android 10, and if I use 2.0.3 version I get crash on old devices

android.view.InflateException: Binary XML file line #17 in.com.engage./abc_screen_simple: Binary XML file line #17 in.com.engage./abc_screen_simple: Error inflating class android.support.v7.widget.FitWindowsLinearLayout

4reactions
Rufimcommented, Jan 7, 2020

I get same bug on one of my devices


  java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/core/os/BuildCompat;
        at io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater.<init>(-ViewPumpLayoutInflater.kt:25)
        at io.github.inflationx.viewpump.ViewPumpContextWrapper$inflater$2.invoke(ViewPumpContextWrapper.kt:25)
        at io.github.inflationx.viewpump.ViewPumpContextWrapper$inflater$2.invoke(ViewPumpContextWrapper.kt:22)
        at kotlin.UnsafeLazyImpl.getValue(Lazy.kt:81)
        at io.github.inflationx.viewpump.ViewPumpContextWrapper.getInflater(ViewPumpContextWrapper.kt)
        at io.github.inflationx.viewpump.ViewPumpContextWrapper.getSystemService(ViewPumpContextWrapper.kt:31)
        at android.view.LayoutInflater.from(LayoutInflater.java:232)
        at android.view.ContextThemeWrapper.getSystemService(ContextThemeWrapper.java:167)
        at android.app.Activity.getSystemService(Activity.java:5593)
        at android.view.LayoutInflater.from(LayoutInflater.java:232)
        at com.android.internal.policy.PhoneWindow.<init>(PhoneWindow.java:305)
        at com.android.internal.policy.PhoneWindow.<init>(PhoneWindow.java:316)
        at android.app.Activity.attach(Activity.java:6606)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2600)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2733)
        at android.app.ActivityThread.-wrap12(ActivityThread.java)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1480)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:154)
        at android.app.ActivityThread.main(ActivityThread.java:6146)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
     Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.core.os.BuildCompat" on path: DexPathList[[zip file "/data/app/ru.samlib.client-1/base.apk"],nativeLibraryDirectories=[/data/app/ru.samlib.client-1/lib/arm, /system/lib, /vendor/lib]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
        at io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater.<init>(-ViewPumpLayoutInflater.kt:25) 
        at io.github.inflationx.viewpump.ViewPumpContextWrapper$inflater$2.invoke(ViewPumpContextWrapper.kt:25) 
        at io.github.inflationx.viewpump.ViewPumpContextWrapper$inflater$2.invoke(ViewPumpContextWrapper.kt:22) 
        at kotlin.UnsafeLazyImpl.getValue(Lazy.kt:81) 
        at io.github.inflationx.viewpump.ViewPumpContextWrapper.getInflater(ViewPumpContextWrapper.kt) 
        at io.github.inflationx.viewpump.ViewPumpContextWrapper.getSystemService(ViewPumpContextWrapper.kt:31) 
        at android.view.LayoutInflater.from(LayoutInflater.java:232) 
        at android.view.ContextThemeWrapper.getSystemService(ContextThemeWrapper.java:167) 
        at android.app.Activity.getSystemService(Activity.java:5593) 
        at android.view.LayoutInflater.from(LayoutInflater.java:232) 
        at com.android.internal.policy.PhoneWindow.<init>(PhoneWindow.java:305) 
        at com.android.internal.policy.PhoneWindow.<init>(PhoneWindow.java:316) 
        at android.app.Activity.attach(Activity.java:6606) 
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2600) 
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2733) 
        at android.app.ActivityThread.-wrap12(ActivityThread.java) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1480) 
        at android.os.Handler.dispatchMessage(Handler.java:102) 
        at android.os.Looper.loop(Looper.java:154) 
        at android.app.ActivityThread.main(ActivityThread.java:6146) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755) 
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use builder method in io.github.inflationx.viewpump ...
Best Java code snippets using io.github.inflationx.viewpump.ViewPump.builder (Showing top 10 results out ... onCreate(); ViewPump.init(ViewPump.builder() .
Read more >
io.github.inflationx.viewpump.ViewPump#init
onCreate(); ViewPump.init(ViewPump.builder() .addInterceptor(new CalligraphyInterceptor( new CalligraphyConfig.Builder() .
Read more >
Calligraphy Custom fonts in Android the easy w @codeKK ...
onCreate(); ViewPump.init(ViewPump.builder() . ... CalligraphyConfig but the library will apply no default font and use the default attribute of R.attr.
Read more >
Index (viewpump 1.0.0 API) - AppDoc
A B C F G I N O P R S T V W. A. addInterceptor(Interceptor) - Method in class io.github.inflationx.viewpump.ViewPump.Builder · attrs()...
Read more >
android - while upgrading target sdk to 29 am getting crash in ...
Added font files and part of the code that will replace with the ... onCreate(savedInstanceState); ViewPump.init(ViewPump.builder() .
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found