Reaction-native IllegalStateException: слишком много распознавателей - PullRequest
0 голосов
/ 23 января 2020

Я использую библиотеку реагировать на родные жесты, и в Crashlythics я получаю следующий отчет cra sh только для android:

Fatal Exception: java.lang.IllegalStateException: Too many recognizers
       at com.swmansion.gesturehandler.GestureHandlerOrchestrator.recordHandlerIfNotPresent(GestureHandlerOrchestrator.java:373)
       at com.swmansion.gesturehandler.GestureHandlerOrchestrator.recordViewHandlersForPointer(GestureHandlerOrchestrator.java:389)
       at com.swmansion.gesturehandler.GestureHandlerOrchestrator.traverseWithPointerEvents(GestureHandlerOrchestrator.java:466)
       at com.swmansion.gesturehandler.GestureHandlerOrchestrator.extractGestureHandlers(GestureHandlerOrchestrator.java:403)
       at com.swmansion.gesturehandler.GestureHandlerOrchestrator.onTouchEvent(GestureHandlerOrchestrator.java:97)
       at com.swmansion.gesturehandler.react.RNGestureHandlerRootHelper.dispatchTouchEvent(RNGestureHandlerRootHelper.java:121)
       at com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView.dispatchTouchEvent(RNGestureHandlerEnabledRootView.java:36)
       at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3222)
       at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2845)
       at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3222)
       at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2845)
       at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3222)
       at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2845)
       at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3222)
       at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2845)
       at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3222)
       at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2845)
       at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:697)
       at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1879)
       at android.app.Activity.dispatchTouchEvent(Activity.java:3487)
       at androidx.appcompat.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:69)
       at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:655)
       at android.view.View.dispatchPointerEvent(View.java:13732)
       at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:6131)
       at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:5909)
       at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5358)
       at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5411)
       at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5377)
       at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:5536)
       at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5385)
       at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:5593)
       at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5358)
       at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5411)
       at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5377)
       at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5385)
       at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5358)
       at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:8420)
       at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:8353)
       at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:8306)
       at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:8535)
       at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:198)
       at android.os.MessageQueue.nativePollOnce(MessageQueue.java)
       at android.os.MessageQueue.next(MessageQueue.java:326)
       at android.os.Looper.loop(Looper.java:181)
       at android.app.ActivityThread.main(ActivityThread.java:7050)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)

Я пытался воспроизвести его, но я не мог, кто-нибудь есть идеи, что может вызвать эту ошибку?

Я догадывался о слишком большом количестве ударов или жестов одновременно, но я не мог воспроизвести это таким образом.

реакции-нативный 0.59.5

реакции-нативный-жест-обработчик: 1.1.0

...