Android crash when Rive animation is mounted/unmounted quickly
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- android, react-native, typescript
- 领域
- mobile
调研方向
Start by testing rive-react-native 9.5.0 on Android with an animation that mounts and unmounts during a quick transition, using the supplied ViewGroup.dispatchGetDisplayList stacktrace as the symptom to investigate. Inspect Android view cleanup and lifecycle handling, then compare behavior with newer versions; done means the crash is reliably reproduced and fixed or its status in a newer release is established.
由索引模型根据 Issue 内容生成。
描述
Hey,
We’re seeing a fairly high-volume crash on Android with rive-react-native 9.5.0.
It seems to happen with a specific loading animation that’s sometimes shown only very briefly (for example during quick transitions). We suspect it might be related to the animation being mounted and then unmounted very quickly, but we haven’t been able to reliably reproduce it locally.
It’s affecting users across all Android OS versions and different devices, no clear pattern.
Stacktrace
java.lang.NullPointerException: Attempt to read from field 'int android.view.View.mViewFlags' on a null object reference in method 'void android.view.ViewGroup.dispatchGetDisplayList()'
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4559)
at android.view.View.updateDisplayListIfDirty(View.java:22125)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4587)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4560)
at android.view.View.updateDisplayListIfDirty(View.java:22125)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4587)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4560)
at android.view.View.updateDisplayListIfDirty(View.java:22125)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4587)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4560)
at android.view.View.updateDisplayListIfDirty(View.java:22125)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4587)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4560)
at android.view.View.updateDisplayListIfDirty(View.java:22125)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4587)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4560)
at android.view.View.updateDisplayListIfDirty(View.java:22125)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4587)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4560)
at android.view.View.updateDisplayListIfDirty(View.java:22125)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4587)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4560)
at android.view.View.updateDisplayListIfDirty(View.java:22125)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4587)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4560)
at android.view.View.updateDisplayListIfDirty(View.java:22125)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4587)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4560)
at android.view.View.updateDisplayListIfDirty(View.java:22125)
at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:695)
at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:701)
at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:799)
at android.view.ViewRootImpl.draw(ViewRootImpl.java:4723)
at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:4424)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3627)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2367)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:9232)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1336)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1344)
at android.view.Choreographer.doCallbacks(Choreographer.java:977)
at android.view.Choreographer.doFrame(Choreographer.java:890)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1319)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7937)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:569)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1019)
Are there any known issues around view cleanup or lifecycle on Android in 9.5.0?
And is this something that may already be fixed in a newer version?
Happy to test anything or provide more info if needed.
Thanks 🙏
- 主要语言
- TypeScript
- 星标
- 786
- 派生
- 81
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
rive-app/rive-react-native 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
rive-app/rive-react-native#433 ·
-
难度 2/5 1-3 小时 新手友好度 74/100
rive-app/rive-react-native#431 · 2 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
rive-app/rive-react-native#448 · 2 条评论 · 1 个 reaction ·
-
[Android] Rive events dispatched off the UI thread can deadlock with Reanimated under Fabric (ANR)可能已有人在做 @Togetic 于 50 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 68/100
rive-app/rive-react-native#444 ·
-
难度 4/5 3-5 天 新手友好度 45/100
rive-app/rive-react-native#441 ·
查看 rive-app/rive-react-native 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
endora-commerce/endora-commerce#397 ·
维护者通常 1 天内回复
-
level/task
难度 2/5 1-3 小时 新手友好度 68/100
wazuh/wazuh-dashboard-plugins#9472 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 63/100
维护者通常 1 天内回复
-
ready-for-agent
难度 2/5 1-3 小时 新手友好度 68/100
xavxyz/bei-shan-lin-shui#57 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
opennextjs/opennextjs-cloudflare#1461 ·
维护者通常 1 天内回复