Android IndexOutOfBoundsException Crash
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 20/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- android, react-native
- 領域
- mobile-dev
調査の方向性
この報告には、リポジトリのファイル、テスト、再現可能なデモが記載されていません。まず、ViewTreeObserver のスタックトレースを初期症状として、React Native 0.68.2 での React Native Navigation 7.28.0 の Android ナビゲーションパスを調査してください。クラッシュを再現するか、回帰テストを追加し、ナビゲーションでクラッシュしなくなったことを確認できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
🐛 Bug Report
After updating to v7.28.0 and React Native 0.68.2 we started seeing Android java.lang.IndexOutOfBoundsException: crashes in prod.
Have you read the Contributing Guidelines on issues?
Yes
To Reproduce
I am not entirely sure how to reproduce it, but looking at the breadcrumb we have, it crashes as soon as a users navigates to new a screen. It's random on what screen it is, and is not always the same screen.
Expected behavior
The app doesn't crash
Actual Behavior
java.lang.IndexOutOfBoundsException: Index: 7, Size: 7
at java.util.ArrayList.get(ArrayList.java:437)
at android.view.ViewTreeObserver$CopyOnWriteArray$Access.get(ViewTreeObserver.java:1291)
at android.view.ViewTreeObserver.dispatchOnGlobalLayout(ViewTreeObserver.java:1080)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:4093)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2919)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:10491)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1108)
at android.view.Choreographer.doCallbacks(Choreographer.java:866)
at android.view.Choreographer.doFrame(Choreographer.java:797)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1092)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8669)
at java.lang.reflect.Method.invoke(Method.java:-2)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
The index and size change between crash to crash, but are always equal to each other.
7, 10, 13, 18, 19, 21, 59...
Your Environment
- React Native Navigation version: 7.28.0
- React Native version: 0.68.2
- Platform(s) (iOS, Android, or both?): Android, OS 8 - 13
- Device info (Simulator/Device? OS version? Debug/Release?): Production release, all sorts of pyshical devices
Reproducible Demo
N/A
Are you willing to resolve this issue by submitting a Pull Request?
- ✖️ Yes, I have the time, and I know how to start.
- ✅ Yes, I have the time, but I don't know how to start. I would need guidance.
- ✖️ No, I don’t have the time and I’m okay to wait for the community / maintainers to resolve this issue.
- 主要言語
- MDX
- スター
- 13.2k
- フォーク
- 2.6k
- 平均マージ
- 2日 10時間
- マージ済み PR(30日)
- 6
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
wix/react-native-navigation のほかの issue
-
needs triage triage: documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
wix/react-native-navigation#8343 · コメント 1 件 ·
-
[Fix] searchBar `focus:` true ignored on mergeOptions when searchController already exists対応中かも @IsaacIsrael が 158 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
wix/react-native-navigation#8318 ·
-
needs triage type: accepted/bug
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
wix/react-native-navigation#8365 · コメント 2 件 ·
-
`showOverlay` creates a scene-less `UIWindow`, so overlays never appear under UIScene lifecycle対応中かも @yedidyak が 4 日前に担当しました。 オープンplatform: iOS type: accepted/bug
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
wix/react-native-navigation#8345 · コメント 2 件 · リアクション 2 件 ·
-
platform: iOS type: accepted/bug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
wix/react-native-navigation#8340 ·
wix/react-native-navigation の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
Julow/Unexpected-Keyboard#1490 ·
メンテナーはふだん 4 日以内に返信
-
unconfirmed
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
thunderbird/thunderbird-android#11893 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
linkwarden/linkwarden#1891 ·
メンテナーはふだん 1 日以内に返信
-
Type: Possible bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
AntennaPod/AntennaPod#8887 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
work/tech-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
bcgov/bc-wallet-mobile#5035 ·
メンテナーはふだん 2 日以内に返信