-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fatal Exception: java.lang.ArrayIndexOutOfBoundsException #3856
Comments
Got the same issue in my project. Since I added Reanimated to my project, I have been seeing crashes in my logs with indexOutOfBounds on Android. I have tried versions
|
same here |
Hey, could someone provide a repo to reproduce this issue? Without repro, this is hard to fix :/ |
We're also experiencing this crash. It seems to happen randomly. |
Hey i'm experiencing a very similar crash :
|
Same here, experiencing same crash -
|
Any update? reanimated version: 2.14.4 |
Hey, not sure but I am not facing this issue anymore after I stop using LayoutAnimation.configreNext method to animate my header. I think that was experimental in Android so maybe creating issue with reanimated package. |
Issue seems to be fixed with v3. |
Anyone else who was facing it can confirm v3 fixed it for them? |
@pierroo facing the same issue in android with v3 too. |
Thanks for sharing @Jscripter-pk , that's a bummer. |
@pierroo If you are going to production then I prefer not going with v3 for now. But if it is side project then it's ok |
I just realized that my error crashes are exactly the same as yours @sebastianMagnaldi ; with the " at android.view.ViewGroup.removeViewsInternal" |
still experiencing this with v3 unfortunately |
i have a similar issue, same crash log, experiencing this on 2.3.1 |
Can we reopen @Willham12 ? Since v3 is still facing the issue as mentioned by @Jscripter-pk |
Same issue :/ |
Same issue here with 3.3.0 in Android after upgrading to Expo SDK 49. iOS is ok. |
I could find a way out of these crashes. |
Same issue here with 3.3.0 and RN 0.72 and Expo SDK. It happenes only in the wild, never appeared in our testruns or in browserstack. I have removed all entering and exiting Animations and also the call to the old LayoutAnimation.configureNext which i was still using. I also had one useAnimationProps animation that was triggered after a setTimeout on screen render. Maybe this setTimeout was causing issues when navigating between screens. I will give an update if the crashes are going down with the applied fixes. |
any update on that issue ? we're also experiencing ArrayIndexOutOfBoundsException with version 2.14.4, although our stack trace looks different:
We have multiple error messages for this exception, such as:
In addition we have another crash with the following stack trace, not sure if it's related: JSApplicationIllegalArgumentException Unsupported node type: null
I didn't find any reference to this other crash. we started to see these crashes more frequently after upgrading @sentry/react-native in order to solve frequent native crashes related to latest android update, that are still under investigation by Sentry: facebook/react-native#39505 I don't see how this could be related, but there wasn't any other significant change between our versions. I should also mention that we don't use this library explicitly anywhere in our code, it is used only by react-navigation. Can someone confirm that upgrading to any specific version (2.* or 3.*) fixed the issue ? |
Still getting crash react-native-reanimated: "^3.7.1", Fatal Exception: java.lang.IndexOutOfBoundsException |
Facing the same issue, the crashes are increasing rapidly. |
hi @Willham12 can we consider to re-open this issue? we still don't know how to fix this, i got same issue
|
Hi anyone got a fix for this issue? Still happening for me. We can't seem to reproduce. Very random
|
We saw this bug show up when we released the latest version of our app. We upgraded This normally shouldn't be an issue, as I am going to explicitly disable |
Hi @BakkerTom - Thanks for the update. Please do let us know once you verify it in production. Meanwhile here is my stack trace. This is an intermittent issue. Not all Android devices experiencing this issue. None of our test devices can replicate this issue. Also, this app crash happens at the app startup.
|
Because it doubled our crash rate on android (Multiple type of errors occured), we removed all of LayoutAnimation from our app, and replaced it with standard withTiming/withSpring Animations. I think it`s not ready for android yet. |
@BakkerTom / @Harisene Did you have any luck with this? We're getting a similar crash after upgrading
|
@RobCrossland1 Not yet. |
Description
Steps to reproduce
idk
Snack or a link to a repository
https://snack.expo.dev/1234
Reanimated version
3.0.0-rc8
React Native version
0.70.5
Platforms
Android
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Paper (Old Architecture)
Build type
Release mode
Device
Real device
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: