Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug ANR at UnityAdsSourceFile - com.safedk.android.internal.partials.UnityAdsVideoBridge.VideoViewStop

Discussion in 'Unity Ads & User Acquisition' started by DarkCooker, Sep 9, 2022.

  1. DarkCooker

    DarkCooker

    Joined:
    Jan 7, 2015
    Posts:
    119
    Hi All,

    We experienced a high ANR alert from Google Play due to UnityAdsSourceFile
    I really have no idea how to fix this such ANR as this is reported by Google Play console.
    I can't replicate myself. And don't know what to do. Please help ;(

    Here are details:
    We use Unity version 2020.3.33
    Input dispatching timed out
    UnityAdsSourceFile - com.safedk.android.internal.partials.UnityAdsVideoBridge.VideoViewStop

    Main Thread:
    #00 pc 0x0000000000048488 /system/lib/libc.so (__ioctl)
    #00 pc 0x000000000001aaef /system/lib/libc.so (ioctl)
    #00 pc 0x000000000003cd65 /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool))
    #00 pc 0x000000000003d757 /system/lib/libbinder.so (android::IPCThreadState::waitForResponse(android::parcel*, int*))
    #00 pc 0x000000000003666d /system/lib/libbinder.so (android::BpBinder::transact(unsigned int, android::parcel const&, android::parcel*, unsigned int))
    #00 pc 0x000000000008e16d /system/lib/libmedia.so
    #00 pc 0x000000000008467d /system/lib/libmedia.so (android::MediaPlayer::disconnect())
    #00 pc 0x000000000002c1dd /system/lib/libmedia_jni.so
    #00 pc 0x0000000000a5d8af /data/dalvik-cache/arm/system@<EMAIL_ADDRESS> (Java_android_media_MediaPlayer__1release__)
    at android.media.MediaPlayer._release (Native method)
    at android.media.MediaPlayer.release (MediaPlayer.java:1694)
    at android.widget.VideoView.stopPlayback (VideoView.java:300)
    at com.safedk.android.internal.partials.UnityAdsVideoBridge.VideoViewStop (UnityAdsSourceFile:53)
    at com.unity3d.services.ads.adunit.h.a (VideoPlayerHandler.java:5)
    at com.unity3d.services.ads.adunit.AdUnitActivity.a (AdUnitActivity.java:32)
    at com.unity3d.services.ads.api.AdUnit$a.run (AdUnit.java:3)
    at android.os.Handler.handleCallback (Handler.java:751)
    at android.os.Handler.dispatchMessage (Handler.java:95)
    at android.os.Looper.loop (Looper.java:154)
    at android.app.ActivityThread.main (ActivityThread.java:6165)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:888)
    at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:778)

    "Signal Catcher" tid=3 Runnable
    #00 pc 0x0000000000351ba1 /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, int, BacktraceMap*, char const*, art::ArtMethod*, void*))
    #00 pc 0x00000000003323a5 /system/lib/libart.so (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool, BacktraceMap*) const)
    #00 pc 0x00000000003443c1 /system/lib/libart.so (art::DumpCheckpoint::Run(art::Thread*))
    #00 pc 0x000000000033e3cb /system/lib/libart.so (art::ThreadList::RunCheckpoint(art::Closure*))
    #00 pc 0x000000000033e0c7 /system/lib/libart.so (art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool))
    #00 pc 0x000000000033de1f /system/lib/libart.so (art::ThreadList::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char>>&))
    #00 pc 0x00000000003232b5 /system/lib/libart.so (art::Runtime::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char>>&))
    #00 pc 0x0000000000327d3b /system/lib/libart.so (art::SignalCatcher::HandleSigQuit())
    #00 pc 0x0000000000326ead /system/lib/libart.so (art::SignalCatcher::Run(void*))
    #00 pc 0x0000000000046ed3 /system/lib/libc.so (__pthread_start(void*))
    #00 pc 0x0000000000019aed /system/lib/libc.so (__start_thread)

    "UnityMain" tid=30 Native
    #00 pc 0x0000000000048348 /system/lib/libc.so (__epoll_pwait)
    #00 pc 0x0000000000019e9d /system/lib/libc.so (epoll_pwait)
    #00 pc 0x0000000000019ecd /system/lib/libc.so (epoll_wait)
    #00 pc 0x0000000000011def /system/lib/libutils.so (android::Looper::pollInner(int))
    #00 pc 0x0000000000011ceb /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**))
    #00 pc 0x0000000000092c79 /system/lib/libandroid_runtime.so (android::NativeMessageQueue::pollOnce(_JNIEnv*, _jobject*, int))
    #00 pc 0x0000000000bff265 /data/dalvik-cache/arm/system@<EMAIL_ADDRESS> (Java_android_os_MessageQueue_nativePollOnce__JI)
    at android.os.MessageQueue.nativePollOnce (Native method)
    at android.os.MessageQueue.next (MessageQueue.java:323)
    at android.os.Looper.loop (Looper.java:136)
    at com.unity3d.player.UnityPlayer$e.run (unavailable)
     
    Last edited: Sep 9, 2022