ANR due to lock on the main thread
dmitry-novikov opened this issue · 2 comments
dmitry-novikov commented
Expected Behavior
No locks should be done on the main thread.
Actual Behavior
"main" tid=1 Blocked
"main" prio=5 tid=1 Blocked
| group="main" sCount=1 dsCount=0 obj=0x77a32f48 self=0xb86b4b10
| sysTid=26425 nice=0 cgrp=default sched=0/0 handle=0xb6f9bbec
| state=S schedstat=( 1755734094 119428960 2884 ) utm=113 stm=62 core=2 HZ=100
| stack=0xbe54f000-0xbe551000 stackSize=8MB
| held mutexes=
at com.leanplum.a.aw.k (SourceFile:3234)
- waiting to lock <0x17f13c18> (a java.lang.Class<com.leanplum.a.aw>) held by thread 41
at com.leanplum.a.aw.i (SourceFile:287)
at com.leanplum.Leanplum.o (SourceFile:1013)
at com.leanplum.Leanplum.b (SourceFile:992)
at com.leanplum.LeanplumActivityHelper.d (SourceFile:216)
at com.leanplum.LeanplumActivityHelper.b (SourceFile:51)
at com.leanplum.LeanplumActivityHelper$2.onActivityResumed (SourceFile:128)
at android.app.Application.dispatchActivityResumed (Application.java:232)
at android.app.Activity.onResume (Activity.java:1405)
at android.support.v4.app.i.onResume (FragmentActivity.java:458)
at com.project.MainActivity.onResume (MainActivity.kt:42)
at android.app.Instrumentation.callActivityOnResume (Instrumentation.java:1285)
at android.app.Activity.performResume (Activity.java:6729)
at android.app.ActivityThread.performResumeActivity (ActivityThread.java:4007)
at android.app.ActivityThread.handleResumeActivity (ActivityThread.java:4083)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1762)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:145)
at android.app.ActivityThread.main (ActivityThread.java:6917)
at java.lang.reflect.Method.invoke! (Native method)
at java.lang.reflect.Method.invoke (Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1404)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1199)
Steps to Reproduce the Problem
—
Specifications
- Version: Leanplum-Android-SDK 3.0.2
- Platform: Android 5.1
- Subsystem:
Enuviel commented
Hi @dmitry-novikov , thanks for reporting this.