Large number of RemoteServiceExceptions in Google's cast MediaNotificationService

前端 未结 3 914
甜味超标
甜味超标 2021-02-08 02:00

In the last ~24 hours, we\'ve seen a few thousand crashes within Google\'s MediaNotificationService:

Fatal Exception: android.app.RemoteServiceExcep         


        
3条回答
  •  孤城傲影
    2021-02-08 02:27

    It looks like a known issue:

    Issue occured only on HUAWEI devices with Android 9 : P20 pro, P30 pro, P20 lite, P30, P20, Honor View 10, Mate 20 pro

    Cast SDK version : Android Sender 16.2.0 (I checked release notes of Android Sender 17.1.0 but no bug fixes)

    Here is the crash log from fabric :

    Fatal Exception: android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{3ac0035 u0 com.google.android.gms.cast.framework.media.MediaNotificationService}
           at android.app.ActivityThread$H.handleMessage + 2126(ActivityThread.java:2126)
           at android.os.Handler.dispatchMessage + 112(Handler.java:112)
           at android.os.Looper.loop + 216(Looper.java:216)
           at android.app.ActivityThread.main + 7625(ActivityThread.java:7625)
           at java.lang.reflect.Method.invoke(Method.java)
           at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run + 524(RuntimeInit.java:524)
           at com.android.internal.os.ZygoteInit.main + 987(ZygoteInit.java:987)
    

    that a Google engineer says is fixed:

    We have a fix for this and that should be released by the next Android Cast client library release.

    but they don't know when the fix will be released:

    So far we don't have a solid date when the next release will be scheduled. We will update it here or else please do check here https://developers.google.com/cast/docs/release-notes

    The release notes don't mention a fix for this.

    I'll update this answer if I find anything further.

    Update

    This is fixed. See Anjaneesh's answer.

    Update

    There are some issues with 18.0.0. See rednaz's answer. Also, commenters on the issue are still experiencing crashes with Samsung and Huawei platforms, but at greatly decreased rates. I filed a new issue about this.

提交回复
热议问题