-
-
Notifications
You must be signed in to change notification settings - Fork 68
Closed as not planned
Labels
nitro-coreIssue is related to the Nitro Modules core runtime/C++ codebaseIssue is related to the Nitro Modules core runtime/C++ codebase
Description
What happened?
I'm trying to add react-native-turbo-modules to a project that already has react-native-reanimated 4, but when I try to open the app I get the same error as reported in the issue below. According to the comments, it seems that compatibility depends on this project being updated.
Reanimated Version: 4.2.0
software-mansion/react-native-reanimated#8725
Reproduceable Code
I dont have native codeRelevant log output
12-09 18:42:53.684 13483 13508 I Nitro.JSICache: Destroying JSICache...
12-09 18:42:53.685 13483 13508 W unknown:ReactNative: Tried to enqueue runnable on already finished thread: 'v_native... dropping Runnable.
12-09 18:42:53.686 13483 13508 W unknown:ReactNative: Tried to enqueue runnable on already finished thread: 'v_native... dropping Runnable.
12-09 18:42:53.686 13483 13508 W System.err: java.lang.NoSuchFieldException: No field mIsFinished in class Lcom/facebook/react/bridge/queue/MessageQueueThreadImpl; (declaration of 'com.facebook.react.bridge.queue.MessageQueueThreadImpl' appears in /data/app/~~XFkdt9qxvA9pd-woFRbfrQ==/com.whisper-Xwe4dBghCpQGpGEOevT6lw==/base.apk!classes20.dex)
12-09 18:42:53.686 13483 13508 W System.err: at java.lang.Class.getDeclaredField(Native Method)
12-09 18:42:53.686 13483 13508 W System.err: at com.swmansion.worklets.WorkletsMessageQueueThreadBase.quitSynchronous(WorkletsMessageQueueThreadBase.java:55)
12-09 18:42:53.686 13483 13508 W System.err: at com.facebook.jni.HybridData$Destructor.deleteNative(Native Method)
12-09 18:42:53.686 13483 13508 W System.err: at com.facebook.jni.HybridData$Destructor.destruct(HybridData.java:82)
12-09 18:42:53.686 13483 13508 W System.err: at com.facebook.jni.HybridData.resetNative(HybridData.java:48)
12-09 18:42:53.686 13483 13508 W System.err: at com.facebook.react.runtime.ReactInstance.destroy(ReactInstance.kt:423)
12-09 18:42:53.686 13483 13508 W System.err: at com.facebook.react.runtime.ReactHostImpl.getOrCreateDestroyTask$lambda$62(ReactHostImpl.kt:1487)
12-09 18:42:53.686 13483 13508 W System.err: at com.facebook.react.runtime.ReactHostImpl.$r8$lambda$xpeTQfuVN0XbBBJsIsVmA6wzF00(Unknown Source:0)
12-09 18:42:53.686 13483 13508 W System.err: at com.facebook.react.runtime.ReactHostImpl$$ExternalSyntheticLambda30.then(D8$$SyntheticClass:0)
12-09 18:42:53.686 13483 13508 W System.err: at com.facebook.react.runtime.internal.bolts.Task$Companion.completeAfterTask$lambda$5(Task.kt:394)
12-09 18:42:53.686 13483 13508 W System.err: at com.facebook.react.runtime.internal.bolts.Task$Companion.$r8$lambda$IPpysnehFwANEiW061YzapkMdoE(Unknown Source:0)
12-09 18:42:53.686 13483 13508 W System.err: at com.facebook.react.runtime.internal.bolts.Task$Companion$$ExternalSyntheticLambda4.run(D8$$SyntheticClass:0)
12-09 18:42:53.686 13483 13508 W System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)
12-09 18:42:53.686 13483 13508 W System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:651)
12-09 18:42:53.686 13483 13508 W System.err: at java.lang.Thread.run(Thread.java:1119)
12-09 18:42:53.694 13483 13483 W unknown:BridgelessReact: ReactHost{0}.raiseSoftException(onWindowFocusChange(hasFocus = "false")): Tried to access onWindowFocusChange while context is not ready
12-09 18:42:53.694 13483 13483 E unknown:ReactHost: Unhandled SoftException
12-09 18:42:53.694 13483 13483 E unknown:ReactHost: com.facebook.react.bridge.ReactNoCrashSoftException: raiseSoftException(onWindowFocusChange(hasFocus = "false")): Tried to access onWindowFocusChange while context is not ready
12-09 18:42:53.694 13483 13483 E unknown:ReactHost: at com.facebook.react.runtime.ReactHostImpl.raiseSoftException(ReactHostImpl.kt:826)
12-09 18:42:53.694 13483 13483 E unknown:ReactHost: at com.facebook.react.runtime.ReactHostImpl.raiseSoftException$default(ReactHostImpl.kt:817)
12-09 18:42:53.694 13483 13483 E unknown:ReactHost: at com.facebook.react.runtime.ReactHostImpl.onWindowFocusChange(ReactHostImpl.kt:619)
12-09 18:42:53.694 13483 13483 E unknown:ReactHost: at com.facebook.react.ReactDelegate.onWindowFocusChanged(ReactDelegate.kt:232)
12-09 18:42:53.694 13483 13483 E unknown:ReactHost: at com.facebook.react.ReactActivityDelegate.onWindowFocusChanged(ReactActivityDelegate.java:236)
12-09 18:42:53.694 13483 13483 E unknown:ReactHost: at com.facebook.react.ReactActivity.onWindowFocusChanged(ReactActivity.java:158)
12-09 18:42:53.694 13483 13483 E unknown:ReactHost: at androidx.appcompat.view.WindowCallbackWrapper.onWindowFocusChanged(WindowCallbackWrapper.java:124)
12-09 18:42:53.694 13483 13483 E unknown:ReactHost: at com.android.internal.policy.DecorView.onWindowFocusChanged(DecorView.java:1818)
12-09 18:42:53.694 13483 13483 E unknown:ReactHost: at android.view.View.dispatchWindowFocusChanged(View.java:16952)
12-09 18:42:53.694 13483 13483 E unknown:ReactHost: at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:1530)
12-09 18:42:53.694 13483 13483 E unknown:ReactHost: at android.view.ViewRootImpl.dispatchFocusEvent(ViewRootImpl.java:4872)
12-09 18:42:53.694 13483 13483 E unknown:ReactHost: at android.view.ViewRootImpl.handleWindowFocusChanged(ViewRootImpl.java:4776)
12-09 18:42:53.694 13483 13483 E unknown:ReactHost: at android.view.ViewRootImpl.-$$Nest$mhandleWindowFocusChanged(Unknown Source:0)
12-09 18:42:53.694 13483 13483 E unknown:ReactHost: at android.view.ViewRootImpl$ViewRootHandler.handleMessageImpl(ViewRootImpl.java:7016)
12-09 18:42:53.694 13483 13483 E unknown:ReactHost: at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:6926)
12-09 18:42:53.694 13483 13483 E unknown:ReactHost: at android.os.Handler.dispatchMessage(Handler.java:110)
12-09 18:42:53.694 13483 13483 E unknown:ReactHost: at android.os.Looper.loopOnce(Looper.java:248)
12-09 18:42:53.694 13483 13483 E unknown:ReactHost: at android.os.Looper.loop(Looper.java:338)
12-09 18:42:53.694 13483 13483 E unknown:ReactHost: at android.app.ActivityThread.main(ActivityThread.java:9067)
12-09 18:42:53.694 13483 13483 E unknown:ReactHost: at java.lang.reflect.Method.invoke(Native Method)
12-09 18:42:53.694 13483 13483 E unknown:ReactHost: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:593)
12-09 18:42:53.694 13483 13483 E unknown:ReactHost: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:932)
12-09 18:42:53.699 13483 13508 W unknown:BridgelessReact: ReactHost{0}.getOrCreateDestroyTask(): Resetting start task ref
12-09 18:42:53.699 13483 13508 W unknown:BridgelessReact: ReactHost{0}.getOrCreateDestroyTask(): Resetting destroy task ref
12-09 18:42:53.726 678 812 I ImeTracker: com.whisper:59cdde45: onRequestHide at ORIGIN_SERVER reason HIDE_UNSPECIFIED_WINDOW fromUser false
12-09 18:42:53.727 13483 13483 D InsetsController: hide(ime(), fromIme=false)
12-09 18:42:53.727 13483 13483 I ImeTracker: com.whisper:59cdde45: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
12-09 18:42:53.727 1386 1386 I GoogleInputMethodService: GoogleInputMethodService.onFinishInput():2043
12-09 18:42:53.728 1386 1386 I Module : DeviceLockedStatusModuleProvider$Module.updateDeviceLockedStatus():100 repeatCheckTimes = 0, locked = false
12-09 18:42:53.728 678 1161 I ImeTracker: system_server:7b88cfb2: onRequestHide at ORIGIN_SERVER reason IME_REQUESTED_CHANGED_LISTENER fromUser false
12-09 18:42:53.728 678 727 I ImeTracker: system_server:7b88cfb2: onCancelled at PHASE_SERVER_SHOULD_HIDE
12-09 18:42:53.729 1386 1386 I GoogleInputMethodService: GoogleInputMethodService.onStartInput():1293 onStartInput(EditorInfo{EditorInfo{packageName=com.whisper, inputType=0, inputTypeString=NULL, enableLearning=false, autoCorrection=false, autoComplete=false, imeOptions=0, privateImeOptions=null, actionName=UNSPECIFIED, actionLabel=null, initialSelStart=-1, initialSelEnd=-1, initialCapsMode=0, label=null, fieldId=0, fieldName=null, extras=null, hintText=null, hintLocales=[]}}, false)
12-09 18:42:53.729 1386 1386 I EmojiCompatManager: EmojiCompatManager.getEmojiCompatIfLoaded():343 EmojiCompat.init() was never called.
12-09 18:42:53.729 1386 1386 I EmojiCompatManager: java.lang.IllegalStateException: EmojiCompat is not initialized. Please call EmojiCompat.init() first
12-09 18:42:53.729 1386 1386 I EmojiCompatManager: at asx.p(PG:6)
12-09 18:42:53.729 1386 1386 I EmojiCompatManager: at axb.b(PG:13)
12-09 18:42:53.729 1386 1386 I EmojiCompatManager: at jnr.b(PG:2)
12-09 18:42:53.729 1386 1386 I EmojiCompatManager: at jnr.c(PG:4)
12-09 18:42:53.729 1386 1386 I EmojiCompatManager: at jnr.f(PG:3)
12-09 18:42:53.729 1386 1386 I EmojiCompatManager: at jnx.c(PG:3)
12-09 18:42:53.729 1386 1386 I EmojiCompatManager: at kif.cz(PG:47)
12-09 18:42:53.729 1386 1386 I EmojiCompatManager: at lhl.run(PG:1025)
12-09 18:42:53.729 1386 1386 I EmojiCompatManager: at jaf.execute(PG:12)
12-09 18:42:53.729 1386 1386 I EmojiCompatManager: at nco.v(PG:13)
12-09 18:42:53.729 1386 1386 I EmojiCompatManager: at lhn.m(PG:96)
12-09 18:42:53.729 1386 1386 I EmojiCompatManager: at lhn.k(PG:25)
12-09 18:42:53.729 1386 1386 I EmojiCompatManager: at kgn.onStartInput(PG:250)
12-09 18:42:53.729 1386 1386 I EmojiCompatManager: at android.inputmethodservice.InputMethodService.doStartInput(InputMethodService.java:3521)
12-09 18:42:53.729 1386 1386 I EmojiCompatManager: at android.inputmethodservice.InputMethodService$InputMethodImpl.startInput(InputMethodService.java:879)
12-09 18:42:53.729 1386 1386 I EmojiCompatManager: at android.inputmethodservice.InputMethodService$InputMethodImpl.dispatchStartInput(InputMethodService.java:908)
12-09 18:42:53.729 1386 1386 I EmojiCompatManager: at android.inputmethodservice.IInputMethodWrapper.executeMessage(IInputMethodWrapper.java:201)
12-09 18:42:53.729 1386 1386 I EmojiCompatManager: at com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:44)
12-09 18:42:53.729 1386 1386 I EmojiCompatManager: at android.os.Handler.dispatchMessage(Handler.java:110)
12-09 18:42:53.729 1386 1386 I EmojiCompatManager: at android.os.Looper.loopOnce(Looper.java:248)
12-09 18:42:53.729 1386 1386 I EmojiCompatManager: at android.os.Looper.loop(Looper.java:338)
12-09 18:42:53.729 1386 1386 I EmojiCompatManager: at android.app.ActivityThread.main(ActivityThread.java:9067)
12-09 18:42:53.729 1386 1386 I EmojiCompatManager: at java.lang.reflect.Method.invoke(Native Method)
12-09 18:42:53.729 1386 1386 I EmojiCompatManager: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:593)
12-09 18:42:53.729 1386 1386 I EmojiCompatManager: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:932)
12-09 18:42:53.729 1386 1386 I Module : DeviceLockedStatusModuleProvider$Module.updateDeviceLockedStatus():100 repeatCheckTimes = 1, locked = false
12-09 18:42:53.730 678 1161 W PackageConfigPersister: App-specific configuration not found for packageName: com.whisper and userId: 0
12-09 18:42:59.521 1061 1235 D SatelliteController: iisInCarrierRoamingNbIotNtn: satellite is disabled
12-09 18:43:09.522 1061 1235 D SatelliteController: iisInCarrierRoamingNbIotNtn: satellite is disabled
12-09 18:43:19.522 1061 1235 D SatelliteController: iisInCarrierRoamingNbIotNtn: satellite is disabled
12-09 18:43:21.193 1514 1832 I bbax : (REDACTED) getHotwordActive::active query: %s, watch: %s, devices connected: %sDevice
All
Nitro Modules Version
0.31.10
Nitrogen Version
No response
Can you reproduce this issue in the Nitro Example app here?
Yes, I can reproduce the same issue in the Example app here
Additional information
- I am using Expo
- I am using nitrogen
- I have read and followed the Troubleshooting Guide.
- I created a reproduction PR to reproduce this issue here in the nitro repo. (See Contributing for more information)
- I searched for similar issues in this repository and found none.
Metadata
Metadata
Assignees
Labels
nitro-coreIssue is related to the Nitro Modules core runtime/C++ codebaseIssue is related to the Nitro Modules core runtime/C++ codebase