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

FATAL EXCEPTION: libjsctooling.so not found in React Native (Reanimated + SoLoader) #49869

Open
rodrigomatosc opened this issue Mar 6, 2025 · 3 comments
Labels
API: Animated Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue.

Comments

@rodrigomatosc
Copy link

Description

The application crashes on startup due to a missing shared object (libjsctooling.so). This issue occurs when loading native libraries via SoLoader in React Native, particularly with Reanimated.

Steps to reproduce

yarn android

React Native Version

0.78.0

Affected Platforms

Runtime - Android

Output of npx @react-native-community/cli info

OS: macOS 14.5
  CPU: (14) arm64 Apple M3 Max
  Memory: 113.83 MB / 36.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 18.20.3
    path: ~/.nvm/versions/node/v18.20.3/bin/node
  Yarn:
    version: 1.22.22
    path: ~/.nvm/versions/node/v18.20.3/bin/yarn
  npm:
    version: 10.7.0
    path: ~/.nvm/versions/node/v18.20.3/bin/npm
  Watchman:
    version: 2024.10.28.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods: Not Found
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.5
      - iOS 17.5
      - macOS 14.5
      - tvOS 17.5
      - visionOS 1.2
      - watchOS 10.5
  Android SDK:
    API Levels:
      - "31"
      - "32"
      - "33"
      - "34"
      - "34"
      - "35"
      - "35"
    Build Tools:
      - 28.0.3
      - 30.0.2
      - 30.0.3
      - 31.0.0
      - 33.0.1
      - 33.0.2
      - 34.0.0
      - 35.0.0
    System Images:
      - android-35 | Google Play ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2024.2 AI-242.23726.103.2422.12816248
  Xcode:
    version: 15.4/15F31d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.11
    path: /usr/bin/javac
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli":
    installed: 15.1.3
    wanted: 15.1.3
  react:
    installed: 19.0.0
    wanted: 19.0.0
  react-native:
    installed: 0.78.0
    wanted: 0.78.0
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: false
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Stacktrace or Logs

Failed to create NativeModule 'ReanimatedModule' (Ask Gemini)
                                                                                                    com.facebook.soloader.SoLoaderDSONotFoundError: couldn't find DSO to load: libjsctooling.so
                                                                                                    	existing SO sources: 
                                                                                                    		SoSource 0: ApplicationSoSource[DirectorySoSource[root = /data/app/com.apli.app-nYR7ui_B-XrF3LRwmZwuxQ==/lib/arm64 flags = 0]]
                                                                                                    		SoSource 1: DirectApkSoSource[root = [/data/app/com.apli.app-nYR7ui_B-XrF3LRwmZwuxQ==/base.apk!/lib/arm64-v8a]]
                                                                                                    		SoSource 2: DirectorySoSource[root = /system/lib64 flags = 3]
                                                                                                    		SoSource 3: DirectorySoSource[root = /vendor/lib64 flags = 3]
                                                                                                    	Native lib dir: /data/app/com.apli.app-nYR7ui_B-XrF3LRwmZwuxQ==/lib/arm64
                                                                                                    
                                                                                                    	at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1216)
                                                                                                    	at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:1078)
                                                                                                    	at com.facebook.soloader.SoLoader.loadDependency(SoLoader.java:920)
                                                                                                    	at com.facebook.soloader.DirectApkSoSource.loadDependencies(DirectApkSoSource.java:166)
                                                                                                    	at com.facebook.soloader.DirectApkSoSource.loadLibrary(DirectApkSoSource.java:76)
                                                                                                    	at com.facebook.soloader.SoLoader.loadLibraryFromSoSource(SoLoader.java:1246)
                                                                                                    	at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1210)
                                                                                                    	at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:1078)
                                                                                                    	at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:943)
                                                                                                    	at com.facebook.soloader.SoLoader.loadLibraryOnAndroid(SoLoader.java:859)
                                                                                                    	at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:842)
                                                                                                    	at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:812)
                                                                                                    	at com.swmansion.worklets.WorkletsModule.<clinit>(WorkletsModule.java:22)
                                                                                                    	at com.swmansion.reanimated.ReanimatedPackage.getModule(ReanimatedPackage.java:44)
                                                                                                    	at com.facebook.react.BaseReactPackage$ModuleHolderProvider.get(BaseReactPackage.kt:129)
                                                                                                    	at com.facebook.react.BaseReactPackage$ModuleHolderProvider.get(BaseReactPackage.kt:125)
                                                                                                    	at com.facebook.react.bridge.ModuleHolder.create(ModuleHolder.java:186)
                                                                                                    	at com.facebook.react.bridge.ModuleHolder.getModule(ModuleHolder.java:151)
                                                                                                    	at com.facebook.react.bridge.NativeModuleRegistry.getModule(NativeModuleRegistry.java:148)
                                                                                                    	at com.facebook.react.bridge.CatalystInstanceImpl.getNativeModule(CatalystInstanceImpl.java:482)
                                                                                                    	at com.facebook.react.bridge.CatalystInstanceImpl.getNativeModule(CatalystInstanceImpl.java:458)
                                                                                                    	at com.facebook.react.bridge.BridgeReactContext.getNativeModule(BridgeReactContext.java:131)
                                                                                                    	at com.swmansion.reanimated.ReanimatedModule.<init>(ReanimatedModule.java:70)
                                                                                                    	at com.swmansion.reanimated.ReanimatedPackage.getModule(ReanimatedPackage.java:45)
                                                                                                    	at com.facebook.react.BaseReactPackage$ModuleHolderProvider.get(BaseReactPackage.kt:129)
                                                                                                    	at com.facebook.react.BaseReactPackage$ModuleHolderProvider.get(BaseReactPackage.kt:125)
                                                                                                    	at com.facebook.react.bridge.ModuleHolder.create(ModuleHolder.java:186)
                                                                                                    	at com.facebook.react.bridge.ModuleHolder.getModule(ModuleHolder.java:151)
                                                                                                    	at com.facebook.react.bridge.NativeModuleRegistry.getModule(NativeModuleRegistry.java:148)
                                                                                                    	at com.facebook.react.bridge.CatalystInstanceImpl.getNativeModule(CatalystInstanceImpl.java:482)
                                                                                                    	at com.facebook.react.bridge.CatalystInstanceImpl.getNativeModule(CatalystInstanceImpl.java:458)
                                                                                                    	at com.facebook.react.bridge.BridgeReactContext.getNativeModule(BridgeReactContext.java:131)
                                                                                                    	at com.swmansion.reanimated.layoutReanimation.ReaLayoutAnimator.maybeInit(ReaLayoutAnimator.java:35)
                                                                                                    	at com.swmansion.reanimated.layoutReanimation.ReaLayoutAnimator.isLayoutAnimationEnabled(ReaLayoutAnimator.java:191)
                                                                                                    	at com.swmansion.reanimated.layoutReanimation.ReanimatedNativeHierarchyManager.isLayoutAnimationDisabled(ReanimatedNativeHierarchyManager.java:92)
                                                                                                    	at com.swmansion.reanimated.layoutReanimation.ReanimatedNativeHierarchyManager.manageChildren(ReanimatedNativeHierarchyManager.java:148)
                                                                                                    	at com.facebook.react.uimanager.UIViewOperationQueue$ManageChildrenOperation.execute(UIViewOperationQueue.java:193)
                                                                                                    	at com.facebook.react.uimanager.UIViewOperationQueue$1.run(UIViewOperationQueue.java:880)
                                                                                                    	at com.facebook.react.uimanager.UIViewOperationQueue.f

Reproducer

https://github.com/rodrigomatosc

Screenshots and Videos

No response

@react-native-bot react-native-bot added Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. API: Animated labels Mar 6, 2025
@react-native-bot
Copy link
Collaborator

Warning

Missing reproducer: We could not detect a reproducible example in your issue report. Please provide either:

@cipolleschi
Copy link
Contributor

@cortinico can you have a look at this?

@cortinico
Copy link
Contributor

@rodrigomatosc without repro we can't have a look. I suspect you're invoking some SoLoader.init() in a custom way.

Can you provide more context on your setup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API: Animated Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue.
Projects
None yet
Development

No branches or pull requests

4 participants