facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
119.14k stars 24.32k forks source link

[0.67] Android release crash: couldn't find DSO to load: libjscexecutor.so #32928

Closed coolguy001tv closed 2 years ago

coolguy001tv commented 2 years ago

Description

In android release, it will crash. The android log shows that libjscexecutor.so is not found. the detailed log :


2022-01-20 16:47:43.716 726-6084/? E/ResolverController: No valid NAT64 prefix (1532, <unspecified>/0)
2022-01-20 16:47:44.744 9859-9859/? D/DragController: onControllerInterceptTouchEvent ActionDown pos =918, 1655
2022-01-20 16:47:44.747 9859-9859/? D/TouchInteractionService: onInputEvent# ev: MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=918.0, y[0]=1655.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=1706226820, downTime=1706226820, deviceId=6, source=0x1002, displayId=0 }
2022-01-20 16:47:44.809 9859-9859/? D/DragController: onControllerInterceptTouchEvent ActionUp pos =918.0, 1655.0
2022-01-20 16:47:44.815 1316-4866/? D/OemSceneCallBlock: isCallBlockedWithUidIntent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.rn67/.MainActivity bnds=[845,1491][1048,1832] }, ResolveInfo{2516e73 com.rn67/.MainActivity m=0x0}, false
2022-01-20 16:47:44.816 1316-4866/? I/ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.rn67/.MainActivity bnds=[845,1491][1048,1832]} from uid 10047 pid 9859
2022-01-20 16:47:44.820 1316-4866/? E/ANDR-PERF-JNI: com_qualcomm_qtiperformance_native_perf_io_prefetch_start
2022-01-20 16:47:44.825 1316-4866/? D/ActivityTrigger: ActivityTrigger activityPauseTrigger 
2022-01-20 16:47:44.828 9859-9859/? D/BaseDraggingActivity: startActivity bookkeeping intent = Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.rn67/.MainActivity bnds=[845,1491][1048,1832] }
2022-01-20 16:47:44.828 9859-9859/? D/Stats: Intent.getPackage() is null. therefore try to get package name from componentName.getPackageName(): com.rn67
2022-01-20 16:47:44.828 9859-9859/? D/Stats: Intent.getPackage() is null. therefore try to get package name from componentName.getPackageName(): com.rn67
2022-01-20 16:47:44.829 9859-10526/? D/Stats: save stats in background ...
2022-01-20 16:47:44.829 9859-9859/? D/ItemClickHandler: onClick appShortcut, tag = WorkspaceItemInfo(id=848 type=APP container=desktop screen=6 cell(4,4) span(1,1) minSpan(1,1) rank=0 user=UserHandle{0} title=rn67 hidden=false dirty = false newInstallTag=null)
2022-01-20 16:47:44.830 1530-1556/? E/ANDR-IOP: io prefetch is disabled
2022-01-20 16:47:44.830 1316-1478/? E/system_server: Invalid ID 0x00000000.
2022-01-20 16:47:44.830 1316-1316/? V/SettingsProvider: Notifying for 0: content://settings/secure/reminder_exp_learning_time_elapsed
2022-01-20 16:47:44.832 9859-9859/? D/Launcher: onPause# hashcode: 229302063
2022-01-20 16:47:44.832 9859-9859/? I/ShelfLauncherCallbacks: onPause
2022-01-20 16:47:44.832 9859-9922/? I/WeatherProvider: un-subscribe the weather callback: 
2022-01-20 16:47:44.832 1316-1477/? D/OpPowerConsumpStatsInjector: notifyPkgEvent
2022-01-20 16:47:44.833 1316-1477/? D/OpRestartProcessManager: updateSelf :  com.rn67, size : 30
2022-01-20 16:47:44.840 570-570/? E/SELinux: avc:  denied  { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1316 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0
2022-01-20 16:47:44.845 1316-1478/? D/OPDFontHInj: ViewRoot performTraversals. in Splash Screen com.rn67
2022-01-20 16:47:44.846 780-1032/? I/BtGatt.ScanManager: msg.what = 6
2022-01-20 16:47:44.858 9859-9859/? D/Launcher: onWindowFocusChanged# hasFocus: false
2022-01-20 16:47:44.868 727-727/? D/Zygote: Forked child process 6099
2022-01-20 16:47:44.870 1316-1484/? I/ActivityManager: Start proc 6099:com.rn67/u0a671 for activity {com.rn67/com.rn67.MainActivity}
2022-01-20 16:47:44.875 6099-6099/? E/com.rn67: Not starting debugger since process cannot load the jdwp agent.
2022-01-20 16:47:44.879 1316-3502/? D/OnePlusSmartBoostManager: writeHotCount com.rn67, pid=6099
2022-01-20 16:47:44.880 1316-1532/? E/OPPerf: Exception : file not exits :/proc/6099/main_boost_switch
2022-01-20 16:47:44.880 1316-1532/? E/OPPerf: Exception : file not exits :/proc/1316/main_boost_switch
2022-01-20 16:47:44.881 9956-6119/? E/ANDR-RAMBOOST_SERVER: ramboost cmd_len = 71 cmd: iop_start -1 com.rn67 /data/app/com.rn67-A-CO3-oMUXiGdFC9djvLDg== false
2022-01-20 16:47:44.881 9956-6119/? E/ANDR-RAMBOOST_SERVER: is_in_recent_list is TRUE
2022-01-20 16:47:44.881 9956-6119/? E/ANDR-RAMBOOST_SERVER: io prefetch is deactivate
2022-01-20 16:47:44.884 9956-6120/? E/ANDR-RAMBOOST_SERVER: ramboost cmd_len = 73 cmd: iop_start 6099 com.rn67 /data/app/com.rn67-A-CO3-oMUXiGdFC9djvLDg== false
2022-01-20 16:47:44.884 9956-6120/? E/ANDR-RAMBOOST_SERVER: io prefetch Capture is deactivated 
2022-01-20 16:47:44.884 1316-3502/? D/OemSceneModeActivityStack: [scene] evaluateGameModes :  gameMsg.arg1=0 gameMsg.arg2=1
2022-01-20 16:47:44.885 1316-3502/? D/OpQuickReply: setQuickReplyResumed focusedApp AppWindowToken{5dab32e token=Token{e7991a9 ActivityRecord{c454130 u0 com.rn67/.MainActivity t31785}}} pkgName com.rn67
2022-01-20 16:47:44.887 1316-1478/? D/RemoteAnimationController: createAnimationAdapter(): token=AppWindowToken{dbe0df2 token=Token{f224cfd ActivityRecord{a814554 u0 net.oneplus.launcher/.Launcher t29497}}}
2022-01-20 16:47:44.888 1316-1478/? D/RemoteAnimationController: startAnimation
2022-01-20 16:47:44.888 1316-1478/? D/RemoteAnimationController: createAnimationAdapter(): token=AppWindowToken{5dab32e token=Token{e7991a9 ActivityRecord{c454130 u0 com.rn67/.MainActivity t31785}}}
2022-01-20 16:47:44.889 1316-1478/? D/RemoteAnimationController: startAnimation
2022-01-20 16:47:44.889 1316-1478/? D/RemoteAnimationController: goodToGo()
2022-01-20 16:47:44.889 1316-1478/? D/RemoteAnimationController: createAnimations()
2022-01-20 16:47:44.889 1316-1478/? D/RemoteAnimationController:    Add token=AppWindowToken{5dab32e token=Token{e7991a9 ActivityRecord{c454130 u0 com.rn67/.MainActivity t31785}}}
2022-01-20 16:47:44.889 1316-1478/? D/RemoteAnimationController:    Add token=AppWindowToken{dbe0df2 token=Token{f224cfd ActivityRecord{a814554 u0 net.oneplus.launcher/.Launcher t29497}}}
2022-01-20 16:47:44.891 1316-1478/? D/RemoteAnimationController: startAnimation(): Notify animation start:
2022-01-20 16:47:44.891 1316-1478/? I/RemoteAnimationController: Starting remote animation
2022-01-20 16:47:44.891 1316-1478/? I/RemoteAnimationController: token=AppWindowToken{5dab32e token=Token{e7991a9 ActivityRecord{c454130 u0 com.rn67/.MainActivity t31785}}}
    Target:
      mode=0 taskId=31785 isTranslucent=false clipRect=[0,0][1080,2280] contentInsets=[0,80][0,0] prefixOrderIndex=81 position=[0,0] sourceContainerBounds=[0,0][1080,2280]
      windowConfiguration={ mBounds=Rect(0, 0 - 1080, 2280) mAppBounds=Rect(0, 79 - 1080, 2280) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=standard mAlwaysOnTop=undefined mRotation=ROTATION_0}
      leash=Surface(name=Surface(name=AppWindowToken{5dab32e token=Token{e7991a9 ActivityRecord{c454130 u0 com.rn67/.MainActivity t31785}}})/@0x3bc6814 - animation-leash)/@0x6d87861
    token=AppWindowToken{dbe0df2 token=Token{f224cfd ActivityRecord{a814554 u0 net.oneplus.launcher/.Launcher t29497}}}
    Target:
      mode=1 taskId=29497 isTranslucent=false clipRect=[0,0][1080,2280] contentInsets=[0,80][0,0] prefixOrderIndex=77 position=[0,0] sourceContainerBounds=[0,0][1080,2280]
      windowConfiguration={ mBounds=Rect(0, 0 - 1080, 2280) mAppBounds=Rect(0, 79 - 1080, 2280) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=home mAlwaysOnTop=undefined mRotation=ROTATION_0}
      leash=Surface(name=Surface(name=AppWindowToken{dbe0df2 token=Token{f224cfd ActivityRecord{a814554 u0 net.oneplus.launcher/.Launcher t29497}}})/@0xac1063b - animation-leash)/@0xadeff86
2022-01-20 16:47:44.892 9859-9995/? D/LauncherAnimationRunner: onAnimationStart#
2022-01-20 16:47:44.892 1316-1477/? D/Foreground_io: TOP_APP is ProcessRecord{bb73ef4 6099:com.rn67/u0a671} uid is 10671
2022-01-20 16:47:44.893 1316-6122/? D/Foreground_io: Setting fg uid
2022-01-20 16:47:44.893 9859-9859/? D/StateManager: setAnimation# targetState: null, anim: 205384232
2022-01-20 16:47:44.893 1316-6122/? D/Foreground_io: Done
2022-01-20 16:47:44.894 9859-9859/? I/Launcher.Utilities: [BUG 94792] getViewBoundsOnWindow, hotseat - hotseatScaleX = 1.0, hotseatScaleY = 1.0, hotseatTranslationX = 0.0, hotseatTranslationY = 0.0
2022-01-20 16:47:44.895 9859-9859/? D/QuickstepTransition: [OSP-1899] getLauncherContentAnimator: isAppOpening= true, trans= 0.0, -131.0
2022-01-20 16:47:44.895 9859-9859/? D/QuickstepTransition: run DragLayer alpha animation to 1.0
2022-01-20 16:47:44.896 9859-9859/? D/BaseActivity: addForceInvisibleFlag add flag = 2, currentFlag = 2
2022-01-20 16:47:44.897 9859-9859/? D/BaseActivity: Showing call stack: 
        [BaseActivity] QuickstepAppTransitionManagerImpl.java, onAnimationStart, line: 158
2022-01-20 16:47:44.900 6099-6099/? I/Perf: Connecting to perf service.
2022-01-20 16:47:44.900 1316-1477/? D/OpPowerConsumpStatsInjector: notifyPkgEvent
2022-01-20 16:47:44.903 6099-6099/? I/com.rn67: [GL_OOM] ClampGrowthLimit 268435456
2022-01-20 16:47:44.904 6099-6099/? V/Font: Dynamic Font V2 Ignore Call [ Change font:1]
2022-01-20 16:47:44.906 6099-6099/? D/SoLoader: init start
2022-01-20 16:47:44.906 6099-6099/? D/SoLoader: adding system library source: /vendor/lib64
2022-01-20 16:47:44.906 6099-6099/? D/SoLoader: adding system library source: /system/lib64
2022-01-20 16:47:44.906 6099-6099/? D/SoLoader: adding application source: com.facebook.soloader.DirectorySoSource[root = /data/app/com.rn67-A-CO3-oMUXiGdFC9djvLDg==/lib/arm64 flags = 0]
2022-01-20 16:47:44.906 6099-6099/? D/SoLoader: adding backup source from : com.facebook.soloader.ApkSoSource[root = /data/data/com.rn67/lib-main flags = 1]
2022-01-20 16:47:44.906 6099-6099/? D/SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /system/lib64 flags = 2]
2022-01-20 16:47:44.906 6099-6099/? D/SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /vendor/lib64 flags = 2]
2022-01-20 16:47:44.906 6099-6099/? D/SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /data/app/com.rn67-A-CO3-oMUXiGdFC9djvLDg==/lib/arm64 flags = 0]
2022-01-20 16:47:44.907 6099-6099/? D/SoLoader: Preparing SO source: com.facebook.soloader.ApkSoSource[root = /data/data/com.rn67/lib-main flags = 1]
2022-01-20 16:47:44.907 6099-6099/? V/fb-UnpackingSoSource: locked dso store /data/user/0/com.rn67/lib-main
2022-01-20 16:47:44.907 6099-6099/? I/fb-UnpackingSoSource: dso store is up-to-date: /data/user/0/com.rn67/lib-main
2022-01-20 16:47:44.907 6099-6099/? V/fb-UnpackingSoSource: releasing dso store lock for /data/user/0/com.rn67/lib-main
2022-01-20 16:47:44.907 6099-6099/? D/SoLoader: init finish: 4 SO sources prepared
2022-01-20 16:47:44.907 6099-6099/? D/SoLoader: init exiting
2022-01-20 16:47:44.909 6099-6099/? D/SoLoader: init exiting
2022-01-20 16:47:44.909 6099-6099/? D/SoLoader: About to load: libjscexecutor.so
2022-01-20 16:47:44.909 6099-6099/? D/SoLoader: libjscexecutor.so not found on /data/data/com.rn67/lib-main
2022-01-20 16:47:44.909 6099-6099/? D/SoLoader: libjscexecutor.so not found on /data/app/com.rn67-A-CO3-oMUXiGdFC9djvLDg==/lib/arm64
2022-01-20 16:47:44.909 6099-6099/? D/SoLoader: libjscexecutor.so not found on /vendor/lib64
2022-01-20 16:47:44.909 6099-6099/? D/SoLoader: libjscexecutor.so not found on /system/lib64
2022-01-20 16:47:44.910 6099-6099/? E/SoLoader: couldn't find DSO to load: libjscexecutor.so
        SoSource 0: com.facebook.soloader.ApkSoSource[root = /data/data/com.rn67/lib-main flags = 1]
        SoSource 1: com.facebook.soloader.DirectorySoSource[root = /data/app/com.rn67-A-CO3-oMUXiGdFC9djvLDg==/lib/arm64 flags = 0]
        SoSource 2: com.facebook.soloader.DirectorySoSource[root = /vendor/lib64 flags = 2]
        SoSource 3: com.facebook.soloader.DirectorySoSource[root = /system/lib64 flags = 2]
        Native lib dir: /data/app/com.rn67-A-CO3-oMUXiGdFC9djvLDg==/lib/arm64
     result: 0
2022-01-20 16:47:44.910 6099-6099/? D/SoLoader: About to load: libhermes.so
2022-01-20 16:47:44.910 6099-6099/? D/SoLoader: libhermes.so not found on /data/data/com.rn67/lib-main
2022-01-20 16:47:44.910 6099-6099/? D/SoLoader: libhermes.so not found on /data/app/com.rn67-A-CO3-oMUXiGdFC9djvLDg==/lib/arm64
2022-01-20 16:47:44.910 6099-6099/? D/SoLoader: libhermes.so not found on /vendor/lib64
2022-01-20 16:47:44.910 6099-6099/? D/SoLoader: libhermes.so not found on /system/lib64
2022-01-20 16:47:44.911 6099-6099/? E/SoLoader: couldn't find DSO to load: libhermes.so
        SoSource 0: com.facebook.soloader.ApkSoSource[root = /data/data/com.rn67/lib-main flags = 1]
        SoSource 1: com.facebook.soloader.DirectorySoSource[root = /data/app/com.rn67-A-CO3-oMUXiGdFC9djvLDg==/lib/arm64 flags = 0]
        SoSource 2: com.facebook.soloader.DirectorySoSource[root = /vendor/lib64 flags = 2]
        SoSource 3: com.facebook.soloader.DirectorySoSource[root = /system/lib64 flags = 2]
        Native lib dir: /data/app/com.rn67-A-CO3-oMUXiGdFC9djvLDg==/lib/arm64
     result: 0
2022-01-20 16:47:44.911 6099-6099/? W/System.err: java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libhermes.so
2022-01-20 16:47:44.911 6099-6099/? W/System.err:   SoSource 0: com.facebook.soloader.ApkSoSource[root = /data/data/com.rn67/lib-main flags = 1]
2022-01-20 16:47:44.911 6099-6099/? W/System.err:   SoSource 1: com.facebook.soloader.DirectorySoSource[root = /data/app/com.rn67-A-CO3-oMUXiGdFC9djvLDg==/lib/arm64 flags = 0]
2022-01-20 16:47:44.911 6099-6099/? W/System.err:   SoSource 2: com.facebook.soloader.DirectorySoSource[root = /vendor/lib64 flags = 2]
2022-01-20 16:47:44.911 6099-6099/? W/System.err:   SoSource 3: com.facebook.soloader.DirectorySoSource[root = /system/lib64 flags = 2]
2022-01-20 16:47:44.911 6099-6099/? W/System.err:   Native lib dir: /data/app/com.rn67-A-CO3-oMUXiGdFC9djvLDg==/lib/arm64
2022-01-20 16:47:44.911 6099-6099/? W/System.err:  result: 0
2022-01-20 16:47:44.911 6099-6099/? W/System.err:     at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:918)
2022-01-20 16:47:44.911 6099-6099/? W/System.err:     at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:740)
2022-01-20 16:47:44.911 6099-6099/? W/System.err:     at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:654)
2022-01-20 16:47:44.911 6099-6099/? W/System.err:     at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:634)
2022-01-20 16:47:44.911 6099-6099/? W/System.err:     at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:582)
2022-01-20 16:47:44.911 6099-6099/? W/System.err:     at com.facebook.hermes.reactexecutor.HermesExecutor.loadLibrary(HermesExecutor.java:25)
2022-01-20 16:47:44.911 6099-6099/? W/System.err:     at com.facebook.hermes.reactexecutor.HermesExecutor.<clinit>(HermesExecutor.java:19)
2022-01-20 16:47:44.911 6099-6099/? W/System.err:     at com.facebook.hermes.reactexecutor.HermesExecutor.loadLibrary(HermesExecutor.java:23)
2022-01-20 16:47:44.911 6099-6099/? W/System.err:     at com.facebook.react.ReactInstanceManagerBuilder.getDefaultJSExecutorFactory(ReactInstanceManagerBuilder.java:370)
2022-01-20 16:47:44.911 6099-6099/? W/System.err:     at com.facebook.react.ReactInstanceManagerBuilder.build(ReactInstanceManagerBuilder.java:319)
2022-01-20 16:47:44.911 6099-6099/? W/System.err:     at com.facebook.react.ReactNativeHost.createReactInstanceManager(ReactNativeHost.java:95)
2022-01-20 16:47:44.911 6099-6099/? W/System.err:     at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:42)
2022-01-20 16:47:44.911 6099-6099/? W/System.err:     at com.rn67.MainApplication.onCreate(MainApplication.java:47)
2022-01-20 16:47:44.911 6099-6099/? W/System.err:     at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1197)
2022-01-20 16:47:44.911 6099-6099/? W/System.err:     at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6647)
2022-01-20 16:47:44.911 6099-6099/? W/System.err:     at android.app.ActivityThread.access$1600(ActivityThread.java:231)
2022-01-20 16:47:44.911 6099-6099/? W/System.err:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1952)
2022-01-20 16:47:44.911 6099-6099/? W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:107)
2022-01-20 16:47:44.911 6099-6099/? W/System.err:     at android.os.Looper.loop(Looper.java:214)
2022-01-20 16:47:44.911 6099-6099/? W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:7682)
2022-01-20 16:47:44.911 6099-6099/? W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
2022-01-20 16:47:44.911 6099-6099/? W/System.err:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:516)
2022-01-20 16:47:44.911 6099-6099/? W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
2022-01-20 16:47:44.912 6099-6099/? D/AndroidRuntime: Shutting down VM

    --------- beginning of crash
2022-01-20 16:47:44.912 6099-6099/? E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.rn67, PID: 6099
    java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libjscexecutor.so
        SoSource 0: com.facebook.soloader.ApkSoSource[root = /data/data/com.rn67/lib-main flags = 1]
        SoSource 1: com.facebook.soloader.DirectorySoSource[root = /data/app/com.rn67-A-CO3-oMUXiGdFC9djvLDg==/lib/arm64 flags = 0]
        SoSource 2: com.facebook.soloader.DirectorySoSource[root = /vendor/lib64 flags = 2]
        SoSource 3: com.facebook.soloader.DirectorySoSource[root = /system/lib64 flags = 2]
        Native lib dir: /data/app/com.rn67-A-CO3-oMUXiGdFC9djvLDg==/lib/arm64
     result: 0
        at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:918)
        at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:740)
        at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:654)
        at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:634)
        at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:582)
        at com.facebook.react.jscexecutor.JSCExecutor.loadLibrary(JSCExecutor.java:24)
        at com.facebook.react.jscexecutor.JSCExecutor.<clinit>(JSCExecutor.java:20)
        at com.facebook.react.jscexecutor.JSCExecutor.loadLibrary(Unknown Source:0)
        at com.facebook.react.ReactInstanceManagerBuilder.getDefaultJSExecutorFactory(ReactInstanceManagerBuilder.java:352)
        at com.facebook.react.ReactInstanceManagerBuilder.build(ReactInstanceManagerBuilder.java:319)
        at com.facebook.react.ReactNativeHost.createReactInstanceManager(ReactNativeHost.java:95)
        at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:42)
        at com.rn67.MainApplication.onCreate(MainApplication.java:47)
        at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1197)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6647)
        at android.app.ActivityThread.access$1600(ActivityThread.java:231)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1952)
        at android.os.Handler.dispatchMessage(Handler.java:107)
        at android.os.Looper.loop(Looper.java:214)
        at android.app.ActivityThread.main(ActivityThread.java:7682)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:516)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
2022-01-20 16:47:44.914 1316-3502/? W/ActivityTaskManager:   Force finishing activity com.rn67/.MainActivity
2022-01-20 16:47:44.914 1316-6124/? I/DropBoxManagerService: add tag=data_app_crash isTagEnabled=true flags=0x2
2022-01-20 16:47:44.915 1316-3502/? D/OpQuickReply: setQuickReplyResumed focusedApp AppWindowToken{dbe0df2 token=Token{f224cfd ActivityRecord{a814554 u0 net.oneplus.launcher/.Launcher t29497}}} pkgName net.oneplus.launcher
2022-01-20 16:47:44.915 1316-6124/? D/FrameworkEventCollector: recordAppIssue PN: com.rn67
2022-01-20 16:47:44.916 1316-3502/? D/ActivityTrigger: ActivityTrigger activityPauseTrigger 
2022-01-20 16:47:44.916 1316-7598/? D/gwy: OS Event: crash
2022-01-20 16:47:44.916 1316-3502/? D/OpQuickReply: setQuickReplyResumed focusedApp AppWindowToken{dbe0df2 token=Token{f224cfd ActivityRecord{a814554 u0 net.oneplus.launcher/.Launcher t29497}}} pkgName net.oneplus.launcher
2022-01-20 16:47:44.919 1316-1477/? D/OpRestartProcessManager: Duration is too short, ignore : 83 in com.rn67
2022-01-20 16:47:44.920 1316-1475/? I/ActivityManager: Showing crash dialog for package com.rn67 u0
2022-01-20 16:47:44.921 1316-1584/? D/Foreground_io: TOP_APP is ProcessRecord{bffa16e 9859:net.oneplus.launcher/u0a47} uid is 10047
2022-01-20 16:47:44.921 1316-6125/? D/Foreground_io: Setting fg uid
2022-01-20 16:47:44.922 1316-6125/? D/Foreground_io: Done
2022-01-20 16:47:44.923 1316-6124/? D/DropBoxManagerService: Copy /data/system/dropbox/data_app_crash@2022-01-20-16_47_44_922.txt to /data/oem_log/
2022-01-20 16:47:44.924 4086-6080/? D/OPReportService: addMonitorFolder onEvent path=data_app_crash@2022-01-20-16_47_44_922.txt, event:8
2022-01-20 16:47:44.925 1316-1483/? W/BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
2022-01-20 16:47:44.925 1316-1483/? W/BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
2022-0

Version

0.67.0

Output of npx react-native info

System:
    OS: Windows 10 10.0.19042
    CPU: (12) x64 Intel(R) Core(TM) i5-10500 CPU @ 3.10GHz
    Memory: 4.09 GB / 15.83 GB
  Binaries:
    Node: 16.13.2 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.4 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 8.1.2 - C:\Program Files\nodejs\npm.CMD
    Watchman: Not Found
  SDKs:
    Android SDK: Not Found
    Windows SDK: Not Found
  IDEs:
    Android Studio: Version     2020.3.0.0 AI-203.7717.56.2031.7935034
    Visual Studio: Not Found
  Languages:
    Java: 11.0.10 - C:\Program Files\Android\Android Studio\jre\bin\javac.EXE
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2
    react-native: 0.67.0 => 0.67.0
    react-native-windows: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps to reproduce

just use the lastest rn version: npx react-native init rn67 --version 0.67.0 then into the android directory, run: gradlew assembleRelease then grab the app-release.apk and install it via adb. Then it crashed with the log above.

I find this error still exist in 0.67.0RC version( tested in rc6, which will crash), but in 0.66.4, there is no crash.

Further deep in, I find it may be related to this: https://github.com/facebook/react-native/commit/6f126740fa560d7a831979b9f3747baacfb28dba

U may see the conversation below this commit: if i comment the 3 lines, i find the android release won't crash, but as @cortinico said, libjscexecutor.so shouldn't be in release.

So what's the best for me to do?

Snack, code example, screenshot, or link to a repository

No response

kelset commented 2 years ago

There has been another report of this happening: https://github.com/facebook/react-native/issues/32927

I've investigated locally and I can confirm that if you generate a fresh project like so npx react-native init rn67 and do an android release build, that will insta-crash with the error reported about libjscexecutor.so.

We'll look closer into that.

The good news is that I've also noticed that by turning on Hermes the issue disappears (which is probably why we didn't catch it 😢) and the app builds successfully also in production mode:

Screenshot 2022-01-20 at 10 53 03

So for now I recommend you turn on Hermes on Android to address this - bear in mind that Hermes is planned to become the  default engine for React Native.

cc @cortinico & @LZHD

cortinico commented 2 years ago

cc @cortinico & @LZHD

Yup that's definitely a regression, and we probably want to call a point release for this hotfix (which is forthcoming).

cortinico commented 2 years ago

U may see the conversation below this commit: if i comment the 3 lines, i find the android release won't crash, but as @cortinico said, libjscexecutor.so shouldn't be in release.

Thanks for the issue report @coolguy001tv. I was actually wrong as both libjsc and libjscexecutor are both needed for Debug and Release. We were under the wrong assumption that libjscexecutor contained only debug symbols but that's not the case.

Sadly this slipped through the release testing process as we mostly focus our testing on Hermes rather than JSC.

Also as a workaround while we work on a point release, you can still use this in your app/build.gradle to avoid the instacrash:

project.ext.react = [
    enableHermes: false,
+   deleteDebugFilesForVariant: { false }
]
LZHD commented 2 years ago

It works fine, thank you very much

coolguy001tv commented 2 years ago

Thanks for so quick replies. Upgrading to 0.67.1 or add deleteDebugFilesForVariant: { false } are both ok for me. enableHermes: true is also ok in a brand-new rn project. But i met some TypeError: undefined is not a function, js engine: hermes problems in my old project. It shouldn't be discussed here so I'll look deeper. If it still bothers me, I should open another issue.

nriccar commented 2 years ago

Im getting this error even when I enable hermes

mahadevsempire commented 2 years ago

java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libjscexecutor.so Getting this error

MarcelLZ commented 2 years ago

So, I'm getting this error too. =/ I have created a fresh project with version 0.67.4, but when I run in release mode, the app crashes with this error:

java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libjscexecutor.so

aprilmintacpineda commented 2 years ago

Firebase Crashlytics just reported this error to me, this is happening in production, seems already 2 users experienced this:

Here's the stack trace

Fatal Exception: java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libjscexecutor.so
    SoSource 0: com.facebook.soloader.ApkSoSource[root = /data/data/com.myapp/lib-main flags = 1]
    SoSource 1: com.facebook.soloader.DirectorySoSource[root = /data/app/~~mZYDiDBOpKEAJvJTZGzklw==/com.myapp-5zgc0VZZbzZ6MpBkomzrew==/lib/arm64 flags = 0]
    SoSource 2: com.facebook.soloader.DirectorySoSource[root = /vendor/lib64 flags = 2]
    SoSource 3: com.facebook.soloader.DirectorySoSource[root = /system/lib64 flags = 2]
    Native lib dir: /data/app/~~mZYDiDBOpKEAJvJTZGzklw==/com.myapp-5zgc0VZZbzZ6MpBkomzrew==/lib/arm64
 result: 0
       at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:918)
       at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:740)
       at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:654)
       at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:634)
       at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:582)
       at com.facebook.react.jscexecutor.JSCExecutor.loadLibrary(JSCExecutor.java:24)
       at com.facebook.react.jscexecutor.JSCExecutor.<clinit>(JSCExecutor.java:20)
       at com.facebook.react.jscexecutor.JSCExecutor.loadLibrary()
       at com.facebook.react.ReactInstanceManagerBuilder.getDefaultJSExecutorFactory(ReactInstanceManagerBuilder.java:352)
       at com.facebook.react.ReactInstanceManagerBuilder.build(ReactInstanceManagerBuilder.java:319)
       at com.facebook.react.ReactNativeHost.createReactInstanceManager(ReactNativeHost.java:95)
       at expo.modules.ReactNativeHostWrapper.createReactInstanceManager(ReactNativeHostWrapper.kt:33)
       at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:42)
       at com.myapp.MainApplication.onCreate(MainApplication.java:63)
       at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1192)
       at android.app.ActivityThread.handleMakeApplication(ActivityThread.java:7507)
       at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7446)
       at android.app.ActivityThread.access$1400(ActivityThread.java:301)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2148)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loop(Looper.java:246)
       at android.app.ActivityThread.main(ActivityThread.java:8512)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1139)

Device: Brand:samsung Model:Galaxy A21s Orientation: Portrait RAM free: 2.41 GB Disk free: 43 GB

Operating system Version:Android 11 Orientation: Portrait Rooted:No

Crash Date:29 Mar 2022, 22:13:08 App version:0.1.3 (18)

michaelmika commented 2 years ago

@nriccar I get it on react-native 0.69 with hermes activated on release build. Debug build works fine. This should be re-opened.

mary-ng5519 commented 2 years ago

the issue has not been resolved yet, please reopen the ticket

sleaper commented 2 years ago

So, I'm getting this error too. =/ I have created a fresh project with version 0.67.4, but when I run in release mode, the app crashes with this error:

java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libjscexecutor.so

Same for me, please reopen this issue

riorafe commented 2 years ago

@nriccar I get it on react-native 0.69 with hermes activated on release build. Debug build works fine. This should be re-opened.

Hello, if you are experiencing this issue in react-native 0.69+ You can refer to this comment in another thread https://github.com/facebook/react-native/issues/25537#issuecomment-1182498993

Hope it helps!

anhquan291 commented 2 years ago

Did you guy solve the issue on RN 0.68.2. I'm facing the same issue when trying to use Dexguard(with either Hermes enable or not). Even when the libjscexecutor.so is found but still causing the running time error.

java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libjscexecutor.so

Any helps please? Really appreciate that. Thanks

iamarjun commented 2 years ago

The issue still persists

shiva1547 commented 2 years ago

Still getting the issue for 0.67.1, it happens only when I update my app with an in-app update, and after a successful update app crash with the below error, later if I open the app it's working fine

SoLoader: couldn't find DSO to load: libhermes-executor-debug.so

E/SoLoader: couldn't find DSO to load: libjscexecutor.so

Hermes is enabled

mohamed2m2018 commented 2 years ago

I think this should be re-opened

aayushanand99 commented 2 years ago

I am getting this issue on crashlytics on upgrading to 0.68.1, in desperate need of a solution.

stainsmjohnson commented 2 years ago

E/SoLoader: couldn't find DSO to load: libjscexecutor.so caused by: dlopen failed: library "libjsc.so" not found: needed by /data/app/~~MAQLtBH_YH1akJlLHwB6BA==/com.xx.xx.staging1-5oLdcBbfLWDCumShj7vLSw==/lib/arm64/libjscexecutor.so in namespace classloader-namespace result: 0

getting same error on develop mode with flavours enabled. herms enabled.

HarshitMadhav commented 2 years ago

same issue +1

gauravguptaoyo commented 2 years ago

facing same issue, with react native version .66 and hermes enabled

roots-ai commented 2 years ago

Any updates here? Sad to see the state of production level react native repository

TacticCoder commented 2 years ago

Same here: libjscexecutor.so caused by: couldn't find DSO to load: libjsc.so

HarshitMadhav commented 2 years ago

Okay ! Here is my fix for this I was facing this issue,

I managed to fix this "libjsc.so" not found by installing the jsc-android package from npm. Here is the link.

This issue only comes when you have Hermes engine enabled.

Please NOTE : Refer to the docs of this package for proper installation as per your react native version

clean gradle and re run the entire app this issue will be gone.

but for couldn't find DSO to load: libjscexecutor.so still looking into it.

paulmthiebauth commented 2 years ago

Seeing this issue right now with RN 0.68.2

jonesaustindev commented 2 years ago

Seeing this as well upgrading from 0.69.1 to 0.70.4. Have had hermes enabled for quite a while already.

PatrickTSa commented 2 years ago

Any solution here?

I upgraded from 0.67.2 to 0.70.4.

garkuwa commented 2 years ago

same here. RN 0.70.4 with hermes. If I add the following to my android/build.gradle

    configurations.all {
        resolutionStrategy {
            force "com.facebook.react:react-native:0.70.4"
            force "com.facebook.react:hermes-engine:0.70.4"
        }
    }

the app doesn't crash, but the error is still there.

mohdmunaf commented 2 years ago

Solution that worked for me, In app/build.gradle change implementation "com.facebook.react:react-native:0.66.3" to

implementation ("com.facebook.react:react-native") version {
      strictly "0.66.3"
    }
garkuwa commented 1 year ago

for those who're still struggling with this issue while Hermes is on, just refer to just refer to the following comment https://github.com/facebook/react-native/issues/33177#issuecomment-1066604107. You most likely have the custom variation that isn't picked up by hermes, so you have to provide proper settings for hermesFlagsForVariant and deleteDebugFilesForVariant

dariyd commented 1 year ago

This worked for me:

change implementation "com.facebook.react:react-native:0.70.4" to implementation ("com.facebook.react:react-native:0.70.4") { force = true }

and also put force = true to


implementation("com.facebook.react:hermes-engine:0.70.4") { // From node_modules
            force = true
            exclude group:'com.facebook.fbjni'
        }
arushikatiyar commented 1 year ago

U may see the conversation below this commit: if i comment the 3 lines, i find the android release won't crash, but as @cortinico said, libjscexecutor.so shouldn't be in release.

Thanks for the issue report @coolguy001tv. I was actually wrong as both libjsc and libjscexecutor are both needed for Debug and Release. We were under the wrong assumption that libjscexecutor contained only debug symbols but that's not the case.

Sadly this slipped through the release testing process as we mostly focus our testing on Hermes rather than JSC.

Also as a workaround while we work on a point release, you can still use this in your app/build.gradle to avoid the instacrash:

project.ext.react = [
    enableHermes: false,
+   deleteDebugFilesForVariant: { false }
]

this finally worked for me :)