致命异常:java.lang.SecurityException:!@Too在Firebase中注册了许多警报(500)

编程入门 行业动态 更新时间:2024-10-18 12:21:17
本文介绍了致命异常:java.lang.SecurityException:!@Too在Firebase中注册了许多警报(500)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

致命异常:java.lang.SecurityException:! @Too许多警报(500)注册从pid 27251 uid 11383 在android.os.Parcel.readException(Parcel.java:1620)在android.os.Parcel.readException(Parcel.java:1573 ) at android.app.IAlarmManager $存根$ Proxy.set(IAlarmManager.java:217)在android.app.AlarmManager.setImpl(AlarmManager.java:484)在android。 app.AlarmManager.set(AlarmManager.java:260),位于com.google.firebase.iid.FirebaseInstanceIdService.zzagl(未知源),位于com.google.firebase.iid.FirebaseInstanceIdService.zzd(未知源),位于com.google.firebase.iid.FirebaseInstanceIdService.zza(未知源),位于com.google.firebase.iid.FirebaseInstanceIdService.zzm(未知源),位于com.google .firebase.iid.zzb $ 2.run(未知源)在java.util.concurrent.Threa在线程式中,我们可以使用线程来调用线程。线程池中的线程可以是线程,线程,线程,线程,线程,线程,线程,线程等。 818)

正如您所看到的,崩溃位于Firebase库内。我读了其他的答案,但所有这些都是关于在代码中使用警报,如一个。我只使用Firebase库进行消息,分析和远程配置。

compilecom.google.firebase:firebase-core :$ firebaseLibVersion compilecom.google.firebase:firebase-config:$ firebaseLibVersion compilecom.google.firebase:firebase-messaging:$ firebaseLibVersion ext { firebaseLibVersion ='9.6.1'}

只有在三星设备,如预期的那样。所以,我知道为什么它在三星设备上发生,但我不知道如何解决这个问题。

a href =groups.google/d/msg/firebase-talk/Q_zycHnTGu0/tIF1pQFsBwAJ =noreferrer> firebase-talk邮件列表:

我们发现了这个错误的原因。同步(未)订阅的主题列表时,FCM SDK可能会卡住。在subscribeToTopic / unsubscribeFromTopic操作期间,设备处于脱机状态时可能会发生该错误,并可能导致特定三星设备上的电池电量耗尽和应用程序崩溃。退出此状态的唯一方法是将手机连接到互联网,并打开应用程序以允许主题列表与服务器同步。

我们已经接近修复,但由于我们的发布周期,我们将不会有至少几个星期在您的手中有一个新的SDK。现在,您可以按照Mihir的建议降级到9.4.0。

I am getting following crash:

Fatal Exception: java.lang.SecurityException: !@Too many alarms (500) registered from pid 27251 uid 11383 at android.os.Parcel.readException(Parcel.java:1620) at android.os.Parcel.readException(Parcel.java:1573) at android.app.IAlarmManager$Stub$Proxy.set(IAlarmManager.java:217) at android.app.AlarmManager.setImpl(AlarmManager.java:484) at android.app.AlarmManager.set(AlarmManager.java:260) at com.google.firebase.iid.FirebaseInstanceIdService.zzagl(Unknown Source) at com.google.firebase.iid.FirebaseInstanceIdService.zzd(Unknown Source) at com.google.firebase.iid.FirebaseInstanceIdService.zza(Unknown Source) at com.google.firebase.iid.FirebaseInstanceIdService.zzm(Unknown Source) at com.google.firebase.iid.zzb$2.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818)

As you can see crash is inside Firebase library. I read other answers but all of them are about usage of Alarms inside the code, like this one. I am using just Firebase libraries for messages, analytics, and remote config.

compile "com.google.firebase:firebase-core:$firebaseLibVersion" compile "com.google.firebase:firebase-config:$firebaseLibVersion" compile "com.google.firebase:firebase-messaging:$firebaseLibVersion" ext { firebaseLibVersion = '9.6.1' }

Problems are happening only on Samsung devices, as expected. So, I know why it's happening on Samsung devices, but I don't know how to fix it.

解决方案

From the firebase-talk mailing list:

We've found the cause of this bug. The FCM SDK can get stuck while syncing the (un)subscribed list of topics. The bug can happen when the device is offline during the subscribeToTopic / unsubscribeFromTopic operations and can lead to battery draining and app crashes on specific Samsung devices. The only way to exit this state is to connect the phone to the internet and open the app to allow the topics list to sync with the server.

We are close to a fix, but due to our release cycle, we won't have a new SDK in your hands for at least a few weeks. For now, you can downgrade to 9.4.0 as Mihir suggested.

更多推荐

致命异常:java.lang.SecurityException:!@Too在Firebase中注册了许多警报(500)

本文发布于:2023-11-27 04:01:35,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:警报   异常   java   SecurityException   lang

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!