Android IndexOutOfBoundsException Crash
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 20/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- android, react-native
- Lĩnh vực
- mobile-dev
Hướng nghiên cứu
Báo cáo không nêu tệp nào trong repository, không có test cũng như demo có thể tái hiện. Hãy bắt đầu bằng việc điều tra luồng điều hướng Android cho React Native Navigation 7.28.0 với React Native 0.68.2, sử dụng stack trace của ViewTreeObserver làm triệu chứng ban đầu; hoàn tất khi tái hiện được crash hoặc thêm một regression test và xác nhận rằng việc điều hướng không còn gây crash.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
🐛 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.
- Ngôn ngữ chính
- MDX
- Star
- 13.2k
- Fork
- 2.6k
- Merge trung bình
- 2 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của wix/react-native-navigation
-
needs triage triage: documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
wix/react-native-navigation#8343 · 1 bình luận ·
-
[Fix] searchBar `focus:` true ignored on mergeOptions when searchController already existsCó thể đã có người làm @IsaacIsrael đã nhận 159 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
wix/react-native-navigation#8318 ·
-
Build Failed with RN 0.87Đang mởneeds triage type: accepted/bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
wix/react-native-navigation#8365 · 2 bình luận ·
-
`showOverlay` creates a scene-less `UIWindow`, so overlays never appear under UIScene lifecycleCó thể đã có người làm @yedidyak đã nhận 4 ngày trước. Đang mởplatform: iOS type: accepted/bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
wix/react-native-navigation#8345 · 2 bình luận · 2 reaction ·
-
platform: iOS type: accepted/bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
wix/react-native-navigation#8340 ·
Tất cả issue của wix/react-native-navigation
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
customerio/customerio-flutter#441 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Keyboard crashes Chrome tabsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Julow/Unexpected-Keyboard#1490 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
unconfirmed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
thunderbird/thunderbird-android#11893 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
linkwarden/linkwarden#1891 ·
Maintainer thường phản hồi trong vòng 1 ngày