Unity-Technologies / com.unity.mobile.notifications

Mobile Notifications Package
https://docs.unity3d.com/Packages/com.unity.mobile.notifications@2.1/manual/index.html
Other
131 stars 42 forks source link

ANR:com.unity.androidnotifications.UnityNotificationManager (has extras) #209

Closed davidliudawei closed 1 year ago

davidliudawei commented 2 years ago

Hi, here is the anr error , Broadcast of Intent { flg=0x10008010 cmp=com.vdimensionltd.animalrevoltbattlesimulator/com.unity.androidnotifications.UnityNotificationManager (has extras) }

00 pc 0000000000458f1c /apex/com.android.art/lib64/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits >&, int, BacktraceMap, char const, art::ArtMethod, void, bool)+120)

00 pc 00000000006f98a8 /apex/com.android.art/lib64/libart.so (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits >&, bool, BacktraceMap*, bool) const+252)

00 pc 0000000000701380 /apex/com.android.art/lib64/libart.so (art::DumpCheckpoint::Run(art::Thread*)+304)

00 pc 0000000000311180 /apex/com.android.art/lib64/libart.so (art::ThreadList::RunCheckpoint(art::Closure, art::Closure)+628)

00 pc 00000000006e088c /apex/com.android.art/lib64/libart.so (art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits >&, bool)+476)

00 pc 00000000006dedc0 /apex/com.android.art/lib64/libart.so (art::ThreadList::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits >&)+360)

00 pc 00000000006de65c /apex/com.android.art/lib64/libart.so (art::Runtime::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits >&)+188)

00 pc 00000000004178bc /apex/com.android.art/lib64/libart.so (art::SignalCatcher::HandleSigQuit()+456)

00 pc 0000000000416c38 /apex/com.android.art/lib64/libart.so (art::SignalCatcher::Run(void*)+256)

00 pc 00000000000b6a74 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+264)

00 pc 0000000000053310 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68)

vaidasma commented 2 years ago

Hey , could you include info such as: • Package version you've used • Device and OS that you've used • Steps to reproduce this issue (or preferably even a repro project)

aurimasc commented 1 year ago

Please try using package version 2.1.0 and reopen if problem still exists.

ngolagani commented 1 year ago

We are on package version 2.1.1 and still seeing ANR related to Unity Notifications. There are the different kinds of ANR happening on our game.

unavailable - com.unity.androidnotifications.UnityNotificationUtilities.deserializeNotification
Broadcast of Intent { cmp=com.ea.tsb/com.unity.androidnotifications.UnityNotificationManager }
Native method - android.os.MessageQueue.nativePollOnce
Broadcast of Intent { cmp=com.ea.tsb/com.unity.androidnotifications.UnityNotificationManager }
android.app.Instrumentation.callApplicationOnCreate
Broadcast of Intent { cmp=com.ea.tsb/com.unity.androidnotifications.UnityNotificationManager }
Native method - java.lang.Thread.sleep
Broadcast of Intent { cmp=com.ea.tsb/com.unity.androidnotifications.UnityNotificationManager }
Native method - android.os.MessageQueue.nativePollOnce
Broadcast of Intent { act=android.intent.action.BOOT_COMPLETED cmp=com.ea.tsb/com.unity.androidnotifications.UnityNotificationRestartOnBootReceiver }
Native method - jdk.internal.misc.Unsafe.park
Broadcast of Intent { cmp=com.ea.tsb/com.unity.androidnotifications.UnityNotificationManager }