Spike of Firebase Performance Monitoring init ANR errors

未关闭
#8,243 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
42/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
android, firebase, java

调研方向

从 FirebasePerfEarly 初始化堆栈跟踪开始,并将报告的 Firebase Performance Monitoring 22.0.1 行为与链接的 Android 发行说明进行比较。确认初始化 ANR 是否可以复现,并确定此次激增是否由该 SDK 路径引起;完成的标准是已有记录在案的原因和可执行的解决方案,或已确认不存在 Firebase SDK 问题。

由索引模型根据 Issue 内容生成。

描述

api: performance

In the last couple of days we see a spike in ANRs in the step of initializing Firebase performance monitoring

main (waiting):tid=1 systid=29612 
       at com.google.firebase.perf.FirebasePerfEarly.<init>(FirebasePerfEarly.java:60)
       at com.google.firebase.perf.FirebasePerfRegistrar.lambda$getComponents$0(FirebasePerfRegistrar.java:75)
       at com.google.firebase.perf.FirebasePerfRegistrar$$ExternalSyntheticLambda1.create(D8$$SyntheticClass)
       at com.google.firebase.tracing.ComponentMonitor.lambda$processRegistrar$0(ComponentMonitor.java:38)
       at com.google.firebase.tracing.ComponentMonitor$$ExternalSyntheticLambda0.create(D8$$SyntheticClass)
       at com.google.firebase.components.ComponentRuntime.lambda$discoverComponents$0$com-google-firebase-components-ComponentRuntime(ComponentRuntime.java:160)
       at com.google.firebase.components.ComponentRuntime$$ExternalSyntheticLambda2.get(D8$$SyntheticClass)
       at com.google.firebase.components.Lazy.get(Lazy.java:53)
       at com.google.firebase.components.ComponentRuntime.doInitializeEagerComponents(ComponentRuntime.java:322)
       at com.google.firebase.components.ComponentRuntime.initializeEagerComponents(ComponentRuntime.java:312)
       at com.google.firebase.FirebaseApp.initializeAllApis(FirebaseApp.java:607)
       at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:300)
       at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:264)
       at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:249)

Firebase Status Dashboard https://status.firebase.google.com/summary doesn't show any new incidents so maybe this is something about our code but we didn't do any updates to Firebase in the meantime.

is there a known issue? We are already on 22.0.1 of the firebase performance monitoring library which, looking at the release notes, seems to provide a fix for ANR errors on init.

Thank you for your support.

主要语言
Java
星标
2.6k
派生
733
平均合并
2 天 15 小时
30 天内合并 PR
72

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

firebase/firebase-android-sdk 的其他 Issue

查看 firebase/firebase-android-sdk 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。