react-native-reanimated icon indicating copy to clipboard operation
react-native-reanimated copied to clipboard

App crash at startup - constructor is not callable

Open Master-Antonio opened this issue 3 weeks ago • 5 comments

Description

Image

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: %s

Steps to reproduce

Cant

Snack or a link to a repository

cant

Reanimated version

4.2.0

Worklets version

0.7.1

React Native version

0.82.1

Platforms

Android

JavaScript runtime

Hermes

Workflow

React Native CLI

Architecture

New Architecture (Fabric renderer)

Reanimated feature flags

None

React Native release level

None

Build type

No response

Device

No response

Host machine

None

Device model

No response

Acknowledgements

Yes

Master-Antonio avatar Dec 09 '25 18:12 Master-Antonio

Hi @Master-Antonio, it seems that you are trying to use Nitro Modules and react-native-worklets. Currently there's no version of react-native-nitro-modules that works with react-native-worklets but it should be coming soon.

tjzel avatar Dec 09 '25 19:12 tjzel

Hi @Master-Antonio, it seems that you are trying to use Nitro Modules and react-native-worklets. Currently there's no version of react-native-nitro-modules that works with react-native-worklets but it should be coming soon.

So you confirm that this is the problem? This error is so mysterious — I don’t know what causes it, and I haven’t found anything else besides that log.

In case do you have a ETA, because at the moment im stuck with my developing. Thank you so much.

"react-native-nitro-modules": "^0.31.10",

Master-Antonio avatar Dec 09 '25 20:12 Master-Antonio

I'm not a developer of react-native-nitro-modules so I suggest asking on their GitHub

tjzel avatar Dec 11 '25 11:12 tjzel

@Master-Antonio I was at this same error and it took a while to solve can you share the version of react you are using , also what you use nitro for , I do not know about nitro but it was a version mismatch for me, also for me i had some logs output that S is undefined / not a function, which is something react-native is calling that is only in react >19, but not present in react 18

WayneFilmalter avatar Dec 12 '25 16:12 WayneFilmalter

Hey - I don't think this is coming from Nitro (replied in https://github.com/mrousavy/nitro/issues/1104#issuecomment-3669410531)

I think @WayneFilmalter's theory could be true - I had similar issues, essentially babel fails to transpile things properly if you have version mismatches.

mrousavy avatar Dec 18 '25 09:12 mrousavy