Skip to content

Handler with tag 1 does not exists #3654

@Bezaatay

Description

@Bezaatay

Description

I am experiencing this issue in my published application. All users who encountered the crash experienced it on the first screen. As a developer, I am unable to reproduce the error, but the fatal error is as follows:

RNGestureHandlerModule.attachGestureHandler

Fatal Exception: com.facebook.react.bridge.JSApplicationIllegalArgumentException: Handler with tag 1 does not exists
at com.swmansion.gesturehandler.react.RNGestureHandlerModule.attachGestureHandler(RNGestureHandlerModule.kt:398)
at java.lang.reflect.Method.invoke(Method.java)
at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:188)
at com.facebook.jni.NativeRunnable.run(NativeRunnable.java)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
at android.os.Looper.loopOnce(Looper.java:210)
at android.os.Looper.loop(Looper.java:299)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:228)
at java.lang.Thread.run(Thread.java:1012)

Steps to reproduce

I cannot reproduce the same issue in my published application. The problem only occurs on the first screen within the first 1-8 seconds after launching the app.

A link to a Gist, an Expo Snack or a link to a repository based on this template that reproduces the bug.

Gesture Handler version

2.12.1

React Native version

0.70.6

Platforms

Android

JavaScript runtime

Hermes

Workflow

React Native (without Expo)

Architecture

Old

Build type

Release mode

Device

Real device

Device model

all devices

Acknowledgements

Yes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions