Skip to content
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

Exception in native call from JS: tearDown RNGestureHandlerRootHelper.kt:53 only in Android #3157

Open
kzog opened this issue Oct 15, 2024 · 2 comments
Labels
Close when stale The issue will be closed automatically if it remains inactive Missing repro Platform: Android This issue is specific to Android

Comments

@kzog
Copy link

kzog commented Oct 15, 2024

Description

During development each application's fast refresh or reloading app through Metro directly results in exception. Everything seems to work fine except that. Dismissing is possible and then application refreshes correctly, without any errors this one time. Each following refresh ends with the same exception. It only happens in Android, iOS refreshes without issues.

[GESTURE HANDLER] Initialize gesture handler for root view com.facebook.react.ReactRootView{1946926 V.E...... ......ID 0,0-1080,2163 #1}
[GESTURE HANDLER] Tearing down gesture handler registered for root view com.facebook.react.ReactRootView{1946926 V.E...... ........ 0,0-1080,2163}

Exception in native call
java.lang.NullPointerException
	at com.swmansion.gesturehandler.react.RNGestureHandlerRootHelper.tearDown(RNGestureHandlerRootHelper.kt:53)
	at com.swmansion.gesturehandler.react.RNGestureHandlerModule.invalidate(RNGestureHandlerModule.kt:489)
	at com.facebook.react.turbomodule.core.TurboModuleManager.onCatalystInstanceDestroy(TurboModuleManager.java:327)
	at com.facebook.react.bridge.CatalystInstanceImpl$1$1.run(CatalystInstanceImpl.java:379)
	at android.os.Handler.handleCallback(Handler.java:1000)
	at android.os.Handler.dispatchMessage(Handler.java:104)
	at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
	at android.os.Looper.loopOnce(Looper.java:242)
	at android.os.Looper.loop(Looper.java:362)
	at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:228)
	at java.lang.Thread.run(Thread.java:1012)

Could not find generated setter for class com.swmansion.gesturehandler.react.RNGestureHandlerRootViewManager
Could not find generated setter for class com.swmansion.gesturehandler.react.RNGestureHandlerButtonViewManager

Steps to reproduce

  1. run Android app without Expo
  2. reload it manually or by fast refresh

Snack or a link to a repository

N/A

Gesture Handler version

2.17.1

React Native version

0.72.12

Platforms

Android

JavaScript runtime

None

Workflow

React Native (without Expo)

Architecture

Fabric (New Architecture)

Build type

Debug mode

Device

Real device

Device model

moto g54

Acknowledgements

Yes

Copy link

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?

@github-actions github-actions bot added Missing repro Platform: Android This issue is specific to Android labels Oct 15, 2024
@m-bert
Copy link
Contributor

m-bert commented Oct 15, 2024

Hi @kzog! Could you please provide a reproduction?

@m-bert m-bert added the Close when stale The issue will be closed automatically if it remains inactive label Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Close when stale The issue will be closed automatically if it remains inactive Missing repro Platform: Android This issue is specific to Android
Projects
None yet
Development

No branches or pull requests

2 participants