Android: INSTRUMENTATION_FAILED on the first snapshot after a boot or restore is not retried
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 57/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- android, typescript
- 领域
- mobile-dev, testing
调研方向
Start at the snapshot capture flow and trace the failure path that reports android_snapshot_helper_session_exited_before_ready and performs the runtime reset. Check how INSTRUMENTATION_FAILED is classified and where a retry can happen inside capture. Done means this failure is retried once after the reset, while other failures retain their existing behavior.
由索引模型根据 Issue 内容生成。
描述
What happens. On an emulator that has just finished booting, or just had /data restored, the first snapshot fails about 1 time in 10:
Android snapshot helper failed before returning parseable output: android.util.AndroidException: INSTRUMENTATION_FAILED: com.callstack.agentdevice.snapshothelper/...SnapshotInstrumentation
The helper is installed and current (android_snapshot_helper_install_decision says reason: current, and the sha matches). The session first exits with android_snapshot_helper_session_exited_before_ready, then the fallback capture fails within about 200 ms. The next snapshot works, every time we looked.
Version. 0.21.31, Android 36 emulator.
Proposal. Treat INSTRUMENTATION_FAILED as retriable once inside the capture, after the runtime reset that already happens in the failure path. We run that as a local patch; the error is already reported as retriable: true, so the caller's only other option is to repeat the command itself.
- 主要语言
- TypeScript
- 星标
- 5.2k
- 派生
- 359
- 平均合并
- 13 小时 32 分钟
- 30 天内合并 PR
- 671
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
callstack/agent-device 的其他 Issue
-
bug ready-for-agent
难度 2/5 1-3 小时 新手友好度 77/100
callstack/agent-device#4018 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
callstack/agent-device#1869 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 43/100
callstack/agent-device#4110 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 35/100
callstack/agent-device#4107 ·
维护者通常 1 天内回复
-
needs-triage
难度 5/5 一周以上 新手友好度 25/100
callstack/agent-device#4106 · 1 条评论 ·
维护者通常 1 天内回复
查看 callstack/agent-device 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
Northeastern-Electric-Racing/FinishLine#4660 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
mihaip/infinite-mac#475 ·
-
Let TypeScript accept an initial object in ReactiveDict可能已有人在做 @yograj-vijay-yadav 今天认领。 未关闭bug good first issue help wanted workshop
难度 2/5 1-3 小时 新手友好度 92/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 83/100
marmelab/atomic-crm#401 ·
维护者通常 1 天内回复
-
account: profile
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 5 天内回复