markzhai / markzhai/react-native-preloader

java.lang.UnsatisfiedLinkError: dlopen failed: "/data/data/com.github.markzhai.react.preloader.demo/lib-main/libgnustl_shared.so" is 32-bit instead of 64-bit

Open
#6 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
54
Forks
10
PR merge metrics
No merged PRs in 30d

Description

FATAL EXCEPTION: main
Process: com.github.markzhai.react.preloader.demo, PID: 15636
java.lang.UnsatisfiedLinkError: dlopen failed: "/data/data/com.github.markzhai.react.preloader.demo/lib-main/libgnustl_shared.so" is 32-bit instead of 64-bit
at java.lang.Runtime.load(Runtime.java:344)
at java.lang.System.load(System.java:1079)
at com.facebook.soloader.DirectorySoSource.loadLibraryFrom(DirectorySoSource.java:71)
at com.facebook.soloader.DirectorySoSource.loadLibrary(DirectorySoSource.java:42)
at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:299)
at com.facebook.soloader.DirectorySoSource.loadLibraryFrom(DirectorySoSource.java:65)
at com.facebook.soloader.DirectorySoSource.loadLibrary(DirectorySoSource.java:42)
at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:299)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:247)
at com.facebook.jni.Countable.(Countable.java:22)
at com.facebook.react.bridge.ReactBridge.staticInit(ReactBridge.java:39)
at com.facebook.react.bridge.NativeMap.(NativeMap.java:22)
at com.facebook.react.JSCConfig$1.getConfigMap(JSCConfig.java:14)
at com.facebook.react.XReactInstanceManagerImpl.recreateReactContextInBackgroundFromBundleLoader(XReactInstanceManagerImpl.java:415)
at com.facebook.react.XReactInstanceManagerImpl.recreateReactContextInBackgroundInner(XReactInstanceManagerImpl.java:411)
at com.facebook.react.XReactInstanceManagerImpl.createReactContextInBackground(XReactInstanceManagerImpl.java:355)
at com.facebook.react.ReactRootView.startReactApplication(ReactRootView.java:215)
at com.github.markzhai.react.preloader.ReactPreLoader.init(ReactPreLoader.java:58)
at com.github.markzhai.react.preloader.demo.MainActivity.onCreate(MainActivity.java:32)
at android.app.Activity.performCreate(Activity.java:6367)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1110)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2397)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2504)
at android.app.ActivityThread.access$900(ActivityThread.java:165)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1368)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:150)
at android.app.ActivityThread.main(ActivityThread.java:5546)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:794)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:684)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the crash from the demo entry point in MainActivity.onCreate and trace the call through ReactPreLoader.init. Inspect how lib-main/libgnustl_shared.so is packaged and loaded alongside the React Native SoLoader path, paying attention to the 32-bit versus 64-bit mismatch. Done means the demo starts without this UnsatisfiedLinkError.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java, react-native
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.