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

ANR Crash Broadcast of Intent (Lots of this) #587

Closed
UberMC opened this issue Jul 20, 2018 · 1 comment
Closed

ANR Crash Broadcast of Intent (Lots of this) #587

UberMC opened this issue Jul 20, 2018 · 1 comment

Comments

@UberMC
Copy link

UberMC commented Jul 20, 2018

Description:
Android
All API verisons on android
Represents 50% of my ANR crashes. about 0.2% affected.

Cluster Reports Impacted users Last reported  
Broadcast of Intent { act=android.intent.action.SCREEN_ON flg=0x50200010 (has extras) }(no location available) 14 9 Today, 11:45 AM  
   
Android 7.0 4
Android 8.0 4
Android 5.1 3
Android 6.0 2
Others 1
   
HUAWEI Y6 2018 (HWATU-QG) 3
Galaxy Tab4 8.0 (milletlte) 3
Moto G (3rd Gen) (osprey_uds) 2
Galaxy Tab A 10.1 (gtaxlwifi) 1
Others 5

CrashStack:
https://imgur.com/a/BiCIchi

ANR Broadcast of Intent { act=android.intent.action.SCREEN_OFF flg=0x50000010 }
Represents 50% of my ANR crashes.

Environment
React-native [email protected]
Google Libs 11.8
React-native 0.55.4

Not sure how to reproduce.
The "OSH_NetworkHandlerThread" (tid=19) thread is in waiting state.

`
"main" tid=1 Blocked
"main" prio=5 tid=1 Blocked
| group="main" sCount=1 dsCount=0 obj=0x750d42a0 self=0xb8b04c88
| sysTid=10695 nice=-4 cgrp=default sched=0/0 handle=0xb6fceb34
| state=S schedstat=( 3753497323 809691799 7040 ) utm=299 stm=76 core=0 HZ=100
| stack=0xbe4cd000-0xbe4cf000 stackSize=8MB
| held mutexes=
at com.onesignal.UserStateSynchronizer.getToSyncUserState (UserStateSynchronizer.java:115)

  • waiting to lock <0x0ff7c7d8> (a com.onesignal.UserStatePushSynchronizer) held by thread 19
    at com.onesignal.UserStateSynchronizer.getRegistrationId (UserStateSynchronizer.java:31)
    at com.onesignal.OneSignalStateSynchronizer.getRegistrationId (OneSignalStateSynchronizer.java:123)
    at com.onesignal.OneSignal$3.complete (OneSignal.java:776)
    at com.onesignal.PushRegistratorAbstractGoogle.isValidProjectNumber (PushRegistratorAbstractGoogle.java:141)
    at com.onesignal.PushRegistratorAbstractGoogle.registerForPush (PushRegistratorAbstractGoogle.java:50)
    at com.onesignal.OneSignal.registerForPushToken (OneSignal.java:768)
    at com.onesignal.OneSignal.makeAndroidParamsRequest (OneSignal.java:802)
    at com.onesignal.OneSignal.startRegistrationOrOnSession (OneSignal.java:730)
    at com.onesignal.OneSignal.onAppFocus (OneSignal.java:1119)
    at com.onesignal.ActivityLifecycleHandler.handleFocus (ActivityLifecycleHandler.java:120)
    at com.onesignal.ActivityLifecycleHandler.onActivityResumed (ActivityLifecycleHandler.java:74)
    at com.onesignal.ActivityLifecycleListener.onActivityResumed (ActivityLifecycleListener.java:48)
    at android.app.Application.dispatchActivityResumed (Application.java:214)
    at android.app.Activity.onResume (Activity.java:1211)
    at com.facebook.react.ReactActivity.onResume (ReactActivity.java:63)
    at android.app.Instrumentation.callActivityOnResume (Instrumentation.java:1281)
    at android.app.Activity.performResume (Activity.java:6320)
    at android.app.ActivityThread.performResumeActivity (ActivityThread.java:3110)
    at android.app.ActivityThread.handleResumeActivity (ActivityThread.java:3152)
    at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1398)
    at android.os.Handler.dispatchMessage (Handler.java:102)
    at android.os.Looper.loop (Looper.java:148)
    at android.app.ActivityThread.main (ActivityThread.java:5443)
    at java.lang.reflect.Method.invoke! (Native method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:728)
    at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:618)
    "OSH_NetworkHandlerThread" tid=19 Waiting
    "OSH_NetworkHandlerThread" prio=5 tid=19 Waiting
    | group="main" sCount=1 dsCount=0 obj=0x12cc7350 self=0xb9ae6190
    | sysTid=10899 nice=0 cgrp=default sched=0/0 handle=0x9d7e3930
    | state=S schedstat=( 16727444 31707659 109 ) utm=0 stm=1 core=3 HZ=100
    | stack=0x9d6e1000-0x9d6e3000 stackSize=1038KB
    | held mutexes=
    at java.lang.Object.wait! (Native method)
  • waiting on <0x0c075233> (a java.lang.Object)
    at java.lang.Thread.join (Thread.java:724)
  • locked <0x0c075233> (a java.lang.Object)
    at com.onesignal.OneSignalRestClient.makeRequest (OneSignalRestClient.java:110)
    at com.onesignal.OneSignalRestClient.postSync (OneSignalRestClient.java:86)
    at com.onesignal.UserStateSynchronizer.doCreateOrNewSession (UserStateSynchronizer.java:283)
    at com.onesignal.UserStateSynchronizer.internalSyncUserState (UserStateSynchronizer.java:191)
    at com.onesignal.UserStateSynchronizer.syncUserState (UserStateSynchronizer.java:160)
  • locked <0x0ff7c7d8> (a com.onesignal.UserStatePushSynchronizer)
    at com.onesignal.UserStateSynchronizer$NetworkHandlerThread$1.run (UserStateSynchronizer.java:69)
    at android.os.Handler.handleCallback (Handler.java:746)
    at android.os.Handler.dispatchMessage (Handler.java:95)
    at android.os.Looper.loop (Looper.java:148)
    at android.os.HandlerThread.run (HandlerThread.java:61)
    "FlurryAgent" tid=9 Native
    "FlurryAgent" prio=5 tid=9 Native
    | group="main" sCount=1 dsCount=0 obj=0x12c69a00 self=0xb9a5a588
    | sysTid=10708 nice=0 cgrp=default sched=0/0 handle=0xa376e930
    | state=S schedstat=( 223721724 108317711 710 ) utm=11 stm=11 core=1 HZ=100
    | stack=0xa366c000-0xa366e000 stackSize=1038KB
    | held mutexes=
    #00 pc 0000000000043d14 /system/lib/libc.so (__epoll_pwait+20)
    Add some methods #1 pc 000000000001972f /system/lib/libc.so (epoll_pwait+26)
    android app crash with react-native-maps #2 pc 000000000001973d /system/lib/libc.so (epoll_wait+6)
    Sample project or better documentation #3 pc 0000000000012da3 /system/lib/libutils.so (_ZN7android6Looper9pollInnerEi+102)
    Get the current playerid/userid #4 pc 000000000001301f /system/lib/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+130)
    symbol(s) not found for architecture arm64 #5 pc 0000000000083dbd /system/lib/libandroid_runtime.so (_ZN7android18NativeMessageQueue8pollOnceEP7_JNIEnvP8_jobjecti+22)
    Add OneSignal.framework to linking process in example project #6 pc 0000000000000585 /system/framework/arm/boot.oat (Java_android_os_MessageQueue_nativePollOnce__JI+96)
    at android.os.MessageQueue.nativePollOnce (Native method)
    at android.os.MessageQueue.next (MessageQueue.java:323)
    at android.os.Looper.loop (Looper.java:135)
    at android.os.HandlerThread.run (HandlerThread.java:61)
    "OSH_WritePrefs" tid=10 Native
    "OSH_WritePrefs" prio=5 tid=10 Native
    | group="main" sCount=1 dsCount=0 obj=0x12c5e3c0 self=0xb9bcaea0
    | sysTid=10886 nice=0 cgrp=default sched=0/0 handle=0x9da7d930
    | state=S schedstat=( 11800630 71131033 165 ) utm=0 stm=1 core=2 HZ=100
    | stack=0x9d97b000-0x9d97d000 stackSize=1038KB
    | held mutexes=
    #00 pc 0000000000043d14 /system/lib/libc.so (__epoll_pwait+20)
    Add some methods #1 pc 000000000001972f /system/lib/libc.so (epoll_pwait+26)
    android app crash with react-native-maps #2 pc 000000000001973d /system/lib/libc.so (epoll_wait+6)
    Sample project or better documentation #3 pc 0000000000012da3 /system/lib/libutils.so (_ZN7android6Looper9pollInnerEi+102)
    Get the current playerid/userid #4 pc 000000000001301f /system/lib/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+130)
    symbol(s) not found for architecture arm64 #5 pc 0000000000083dbd /system/lib/libandroid_runtime.so (_ZN7android18NativeMessageQueue8pollOnceEP7_JNIEnvP8_jobjecti+22)
    Add OneSignal.framework to linking process in example project #6 pc 0000000000000585 /system/framework/arm/boot.oat (Java_android_os_MessageQueue_nativePollOnce__JI+96)
    at android.os.MessageQueue.nativePollOnce (Native method)
    at android.os.MessageQueue.next (MessageQueue.java:323)
    at android.os.Looper.loop (Looper.java:135)
    at android.os.HandlerThread.run (HandlerThread.java:61)
    "mqt_js" tid=16 Native
    "mqt_js" prio=5 tid=16 Native
    | group="main" sCount=1 dsCount=0 obj=0x130defa0 self=0xb8c31438
    | sysTid=10727 nice=0 cgrp=default sched=0/0 handle=0xa08e1930
    | state=S schedstat=( 3703415056 264719378 792 ) utm=358 stm=12 core=1 HZ=100
    | stack=0xa07df000-0xa07e1000 stackSize=1038KB
    | held mutexes=
    #00 pc 0000000000043d14 /system/lib/libc.so (__epoll_pwait+20)
    Add some methods #1 pc 000000000001972f /system/lib/libc.so (epoll_pwait+26)
    android app crash with react-native-maps #2 pc 000000000001973d /system/lib/libc.so (epoll_wait+6)
    Sample project or better documentation #3 pc 0000000000012da3 /system/lib/libutils.so (_ZN7android6Looper9pollInnerEi+102)
    Get the current playerid/userid #4 pc 000000000001301f /system/lib/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+130)
    symbol(s) not found for architecture arm64 #5 pc 0000000000083dbd /system/lib/libandroid_runtime.so (_ZN7android18NativeMessageQueue8pollOnceEP7_JNIEnvP8_jobjecti+22)
    Add OneSignal.framework to linking process in example project #6 pc 0000000000000585 /system/framework/arm/boot.oat (Java_android_os_MessageQueue_nativePollOnce__JI+96)
    at android.os.MessageQueue.nativePollOnce (Native method)
    at android.os.MessageQueue.next (MessageQueue.java:323)
    at android.os.Looper.loop (Looper.java:135)
    at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run (MessageQueueThreadImpl.java:192)
    at java.lang.Thread.run (Thread.java:818)
    "mqt_native_modules" tid=17 Native
    "mqt_native_modules" prio=5 tid=17 Native
    | group="main" sCount=1 dsCount=0 obj=0x131090a0 self=0xb8c31ab8
    | sysTid=10728 nice=0 cgrp=default sched=0/0 handle=0xa07d7930
    | state=S schedstat=( 185109266 148924532 438 ) utm=18 stm=0 core=3 HZ=100
    | stack=0xa06d5000-0xa06d7000 stackSize=1038KB
    | held mutexes=
    #00 pc 0000000000043d14 /system/lib/libc.so (__epoll_pwait+20)
    Add some methods #1 pc 000000000001972f /system/lib/libc.so (epoll_pwait+26)
    android app crash with react-native-maps #2 pc 000000000001973d /system/lib/libc.so (epoll_wait+6)
    Sample project or better documentation #3 pc 0000000000012da3 /system/lib/libutils.so (_ZN7android6Looper9pollInnerEi+102)
    Get the current playerid/userid #4 pc 000000000001301f /system/lib/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+130)
    symbol(s) not found for architecture arm64 #5 pc 0000000000083dbd /system/lib/libandroid_runtime.so (_ZN7android18NativeMessageQueue8pollOnceEP7_JNIEnvP8_jobjecti+22)
    Add OneSignal.framework to linking process in example project #6 pc 0000000000000585 /system/framework/arm/boot.oat (Java_android_os_MessageQueue_nativePollOnce__JI+96)
    at android.os.MessageQueue.nativePollOnce (Native method)
    at android.os.MessageQueue.next (MessageQueue.java:323)
    at android.os.Looper.loop (Looper.java:135)
    at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run (MessageQueueThreadImpl.java:192)
    at java.lang.Thread.run (Thread.java:818)
    "FocusHandlerThread" tid=18 Native
    "FocusHandlerThread" prio=5 tid=18 Native
    | group="main" sCount=1 dsCount=0 obj=0x12c5e510 self=0xb9af39a0
    | sysTid=10887 nice=0 cgrp=default sched=0/0 handle=0x9d959930
    | state=S schedstat=( 19794680 65329477 202 ) utm=1 stm=0 core=3 HZ=100
    | stack=0x9d857000-0x9d859000 stackSize=1038KB
    | held mutexes=
    #00 pc 0000000000043d14 /system/lib/libc.so (__epoll_pwait+20)
    Add some methods #1 pc 000000000001972f /system/lib/libc.so (epoll_pwait+26)
    android app crash with react-native-maps #2 pc 000000000001973d /system/lib/libc.so (epoll_wait+6)
    Sample project or better documentation #3 pc 0000000000012da3 /system/lib/libutils.so (_ZN7android6Looper9pollInnerEi+102)
    Get the current playerid/userid #4 pc 000000000001301f /system/lib/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+130)
    symbol(s) not found for architecture arm64 #5 pc 0000000000083dbd /system/lib/libandroid_runtime.so (_ZN7android18NativeMessageQueue8pollOnceEP7_JNIEnvP8_jobjecti+22)
    Add OneSignal.framework to linking process in example project #6 pc 0000000000000585 /system/framework/arm/boot.oat (Java_android_os_MessageQueue_nativePollOnce__JI+96)
    at android.os.MessageQueue.nativePollOnce (Native method)
    at android.os.MessageQueue.next (MessageQueue.java:323)
    at android.os.Looper.loop (Looper.java:135)
    at android.os.HandlerThread.run (HandlerThread.java:61)
    "LooperProvider" tid=34 Native
    "LooperProvider" prio=5 tid=34 Native
    | group="main" sCount=1 dsCount=0 obj=0x12e9e700 self=0xb9ad65f8
    | sysTid=10987 nice=0 cgrp=default sched=0/0 handle=0x93d41930
    | state=S schedstat=( 12594743 67084167 161 ) utm=0 stm=1 core=3 HZ=100
    | stack=0x93c3f000-0x93c41000 stackSize=1038KB
    | held mutexes=
    #00 pc 0000000000043d14 /system/lib/libc.so (__epoll_pwait+20)
    Add some methods #1 pc 000000000001972f /system/lib/libc.so (epoll_pwait+26)
    android app crash with react-native-maps #2 pc 000000000001973d /system/lib/libc.so (epoll_wait+6)
    Sample project or better documentation #3 pc 0000000000012da3 /system/lib/libutils.so (_ZN7android6Looper9pollInnerEi+102)
    Get the current playerid/userid #4 pc 000000000001301f /system/lib/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+130)
    symbol(s) not found for architecture arm64 #5 pc 0000000000083dbd /system/lib/libandroid_runtime.so (_ZN7android18NativeMessageQueue8pollOnceEP7_JNIEnvP8_jobjecti+22)
    Add OneSignal.framework to linking process in example project #6 pc 0000000000000585 /system/framework/arm/boot.oat (Java_android_os_MessageQueue_nativePollOnce__JI+96)
    at android.os.MessageQueue.nativePollOnce (Native method)
    at android.os.MessageQueue.next (MessageQueue.java:323)
    at android.os.Looper.loop (Looper.java:135)
    at android.os.HandlerThread.run (HandlerThread.java:61)
    `
@Nightsd01
Copy link
Contributor

@UberMC Should be fixed in 3.2.6! Thank you for posting such a detailed issue, it made it way easier to fix!

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