android anr in notifications

we’ve been seeing this lockup often on one of our test devices when we install it over an existing install.  the following 2 stack traces is what google is reporting

  #00 pc 0000000000017758 /system/lib/libc.so (syscall+28)

#01 pc 00000000000b653d /system/lib/libart.so (_ZN3art17ConditionVariable16WaitHoldingLocksEPNS_6ThreadE+92)

#02 pc 00000000003f13bb /system/lib/libart.so (_ZN3artL12GoToRunnableEPNS_6ThreadE+230)

#03 pc 00000000003f12ab /system/lib/libart.so (_ZN3art12JniMethodEndEjPNS_6ThreadE+8)

#04 pc 00000000006bf835 /system/framework/arm/boot-framework.oat (Java_android_os_BinderProxy_transactNative__ILandroid_os_Parcel_2Landroid_os_Parcel_2I+152)

at android.os.BinderProxy.transactNative (Native method)

at android.os.BinderProxy.transact (Binder.java:628)

at android.app.INotificationManager$Stub$Proxy.enqueueNotificationWithTag (INotificationManager.java:899)

at android.app.NotificationManager.notifyAsUser (NotificationManager.java:336)

at android.app.NotificationManager.notify (NotificationManager.java:292)

at com.ansca.corona.notifications.NotificationServices.postSystemNotification (NotificationServices.java:476)

  • locked <0x0633aebb> (a java.lang.Class<com.ansca.corona.notifications.NotificationServices>)

at com.ansca.corona.notifications.NotificationServices.postAndUpdateCollectionWith (NotificationServices.java:359)

  • locked <0x0633aebb> (a java.lang.Class<com.ansca.corona.notifications.NotificationServices>)

at com.ansca.corona.notifications.NotificationServices.post (NotificationServices.java:323)

  • locked <0x0633aebb> (a java.lang.Class<com.ansca.corona.notifications.NotificationServices>)

at com.ansca.corona.notifications.NotificationServices.<init> (NotificationServices.java:69)

  • locked <0x0633aebb> (a java.lang.Class<com.ansca.corona.notifications.NotificationServices>)

at com.ansca.corona.notifications.GoogleCloudMessagingServices.onReceivedNotification (GoogleCloudMessagingServices.java:456)

at com.ansca.corona.notifications.GoogleCloudMessagingServices.process (GoogleCloudMessagingServices.java:405)

at com.ansca.corona.notifications.GoogleCloudMessagingBroadcastReceiver.onReceive (GoogleCloudMessagingBroadcastReceiver.java:21)

at android.app.ActivityThread.handleReceiver (ActivityThread.java:3350)

at android.app.ActivityThread.-wrap20 (ActivityThread.java)

at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1734)

at android.os.Handler.dispatchMessage (Handler.java:102)

at android.os.Looper.loop (Looper.java:154)

at android.app.ActivityThread.main (ActivityThread.java:6688)

at java.lang.reflect.Method.invoke! (Native method)

at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1468)

at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1358)

  at com.ansca.corona.notifications.NotificationSettingsCollection.getById (NotificationSettingsCollection.java:78)

at com.ansca.corona.notifications.NotificationServices.postAndUpdateCollectionWith (NotificationServices.java:362)

  • locked <0x07bc16cb> (a java.lang.Class<com.ansca.corona.notifications.NotificationServices>)

at com.ansca.corona.notifications.NotificationServices.post (NotificationServices.java:323)

  • locked <0x07bc16cb> (a java.lang.Class<com.ansca.corona.notifications.NotificationServices>)

at com.ansca.corona.notifications.NotificationServices.<init> (NotificationServices.java:69)

  • locked <0x07bc16cb> (a java.lang.Class<com.ansca.corona.notifications.NotificationServices>)

at com.ansca.corona.SystemStartupBroadcastReceiver.onReceive (SystemStartupBroadcastReceiver.java:27)

at android.app.ActivityThread.handleReceiver (ActivityThread.java:3309)

at android.app.ActivityThread.-wrap20 (ActivityThread.java)

at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1715)

at android.os.Handler.dispatchMessage (Handler.java:102)

at android.os.Looper.loop (Looper.java:154)

at android.app.ActivityThread.main (ActivityThread.java:6682)

at java.lang.reflect.Method.invoke! (Native method)

at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1520)

at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1410)

Anyone have any insight into how we can fix this issue?

How do we reproduce it? Are there specific steps you’re getting your test device to crash?

not sure how you can reproduce it.  it happens every time on one of our devs samsung phones whenever he installs the game from the store. all we do is upload a new beta, he downloads it and launches and it locks up.  the only way to get the app to work is uninstall then reinstall.

Hey, [member=‘rich.stupek’]. Is this still an issue? Would there be opportunity to get adb logcat output from this time, to see what is going on? Or what your app is doing?

How do we reproduce it? Are there specific steps you’re getting your test device to crash?

not sure how you can reproduce it.  it happens every time on one of our devs samsung phones whenever he installs the game from the store. all we do is upload a new beta, he downloads it and launches and it locks up.  the only way to get the app to work is uninstall then reinstall.

Hey, [member=‘rich.stupek’]. Is this still an issue? Would there be opportunity to get adb logcat output from this time, to see what is going on? Or what your app is doing?