-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Android: pointerIndex out of range #30320
Comments
Facing same issue for past few releases |
BUMP |
+1 |
+1 any update ? |
+1 |
Have the same issue, there is a mistake in |
We resolved this issue via writing a patch for react native gesture handler. "react-native": "0.62.2", diff --git a/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerEnabledRootView.java b/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerEnabledRootView.java
index 0a39034..257d343 100644
--- a/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerEnabledRootView.java
+++ b/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerEnabledRootView.java
@@ -33,10 +33,17 @@ public class RNGestureHandlerEnabledRootView extends ReactRootView {
@Override
public boolean dispatchTouchEvent(MotionEvent ev) {
- if (mGestureRootHelper != null && mGestureRootHelper.dispatchTouchEvent(ev)) {
- return true;
+ try {
+ if (mGestureRootHelper != null && mGestureRootHelper.dispatchTouchEvent(ev)) {
+ return true;
+ }
+ if (super.dispatchTouchEvent(ev)) {
+ return true;
+ }
+ } catch (IllegalArgumentException e) {
+ e.printStackTrace();
}
- return super.dispatchTouchEvent(ev);
+ return false;
}
/** |
that's a workaround rather then a fix :) |
yes it is a workaround, temporary solution :( |
+1 |
try-catch block around call which intermittently throws an IllegalArgumentException Resolves Issues: - software-mansion#1679 - facebook/react-native#30320
Anyone could fix this issue? |
Any news? |
Fix sentry crash report facebook/react-native#30320
Fix sentry crash report facebook/react-native#30320
Having the same issue in production |
Update: The issue continues. This issue was fixed in react-native-gesture-handler 2.4.0 Release notes: https://github.com/software-mansion/react-native-gesture-handler/releases/tag/2.4.0 |
I leave here the patch for react-native-gesture-handler: 2.5.0 react-native-gesture-handler+2.5.0.patch
|
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
Description
All I get is crashlytics log, it appears on some users
React Native version:
Steps To Reproduce
I cannot guess how to reproduce the error
Expected Results
No crash happen
Snack, code example, screenshot, or link to a repository:
N/A
The text was updated successfully, but these errors were encountered: