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

bug: FATAL EXCEPTION: mqt_native_modules #1724

Closed
thereis opened this issue Nov 16, 2021 · 5 comments
Closed

bug: FATAL EXCEPTION: mqt_native_modules #1724

thereis opened this issue Nov 16, 2021 · 5 comments
Labels
BugBash 31.03 Close when stale The issue will be closed automatically if it remains inactive Platform: Android This issue is specific to Android

Comments

@thereis
Copy link

thereis commented Nov 16, 2021

Description

Currently the app is throwing an error after reloading the app from a code-push update.

Screenshots

None.

Steps To Reproduce

  1. Update the app code push bundle
  2. Face the error

Expected behavior

Not crash

Actual behavior

Crashing

Snack or minimal code example

--------- beginning of crash
11-16 17:18:32.047  3736  3850 E AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
11-16 17:18:32.047  3736  3850 E AndroidRuntime: Process: ev.sandbox, PID: 3736
11-16 17:18:32.047  3736  3850 E AndroidRuntime: com.facebook.react.bridge.JSApplicationIllegalArgumentException: Could find root view for a given ancestor with tag 5483
11-16 17:18:32.047  3736  3850 E AndroidRuntime: 	at com.swmansion.gesturehandler.react.RNGestureHandlerModule.tryInitializeHandlerForReactRootView(RNGestureHandlerModule.java:577)
11-16 17:18:32.047  3736  3850 E AndroidRuntime: 	at com.swmansion.gesturehandler.react.RNGestureHandlerModule.attachGestureHandler(RNGestureHandlerModule.java:487)
11-16 17:18:32.047  3736  3850 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
11-16 17:18:32.047  3736  3850 E AndroidRuntime: 	at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
11-16 17:18:32.047  3736  3850 E AndroidRuntime: 	at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:188)
11-16 17:18:32.047  3736  3850 E AndroidRuntime: 	at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
11-16 17:18:32.047  3736  3850 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:938)
11-16 17:18:32.047  3736  3850 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:99)
11-16 17:18:32.047  3736  3850 E AndroidRuntime: 	at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
11-16 17:18:32.047  3736  3850 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:246)
11-16 17:18:32.047  3736  3850 E AndroidRuntime: 	at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:226)
11-16 17:18:32.047  3736  3850 E AndroidRuntime: 	at java.lang.Thread.run(Thread.java:923)

Package versions

  • React: 17.0.2
  • React Native: 0.66.2
  • React Native Gesture Handler: ^1.10.3
@federicot
Copy link

related #1675

@kkafar
Copy link
Member

kkafar commented Mar 31, 2022

Hi @thereis
It seems that your problem should be resolved with this PR. Can you confirm this works for you now?

@kkafar kkafar added Close when stale The issue will be closed automatically if it remains inactive BugBash 31.03 labels Mar 31, 2022
@thereis
Copy link
Author

thereis commented Mar 31, 2022

@kkafar I will test it today and I will let you know about it! Thanks for replying the ticket!

@github-actions github-actions bot removed the Close when stale The issue will be closed automatically if it remains inactive label Mar 31, 2022
@kkafar kkafar added the Close when stale The issue will be closed automatically if it remains inactive label Apr 5, 2022
@FadiAboMsalam
Copy link

I have same issue with latest "react-native-gesture-handler": "^2.3.2" and latest "react-native-code-push": "^7.0.4",

any suggestions on this ?

@github-actions github-actions bot removed the Close when stale The issue will be closed automatically if it remains inactive label Apr 11, 2022
@j-piasecki
Copy link
Member

@FadiAboMsalam Could you try upgrading to Gesture Handler 2.4?

@j-piasecki j-piasecki added the Close when stale The issue will be closed automatically if it remains inactive label Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BugBash 31.03 Close when stale The issue will be closed automatically if it remains inactive Platform: Android This issue is specific to Android
Projects
None yet
Development

No branches or pull requests

5 participants