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

library "libjsi.so" not found #36971

Closed
mohitarora777 opened this issue Apr 19, 2023 · 10 comments
Closed

library "libjsi.so" not found #36971

mohitarora777 opened this issue Apr 19, 2023 · 10 comments
Labels
Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Stale There has been a lack of activity on this issue and it may be closed soon. Type: Upgrade Issue Issues reported from upgrade issue form

Comments

@mohitarora777
Copy link

mohitarora777 commented Apr 19, 2023

New Version

0.71.6

Old Version

0.66.3

Build Target(s)

Android 13 simulator release build

Output of react-native info

Screenshot 2023-04-19 at 12 08 47 PM

Issue and Reproduction Steps

I have a brownfield app where react native resides as a submodule and is a part of DFM. As soon as DFM is installed app crashes with the following error:-

 FATAL EXCEPTION: main
                                                                                                    Process: in.mohalla.video, PID: 12611
                                                                                                    java.lang.UnsatisfiedLinkError: dlopen failed: library "libjsi.so" not found: needed by /data/app/~~FBWqsEXiVrZEQBNAGRpuLg==/in.mohalla.video-Iro1c6OplDT4BYbzDJIizw==/lib/arm64/libhermes.so in namespace classloader-namespace
                                                                                                    	at java.lang.Runtime.loadLibrary0(Runtime.java:1077)
                                                                                                    	at java.lang.Runtime.loadLibrary0(Runtime.java:998)
                                                                                                    	at java.lang.System.loadLibrary(System.java:1661)
                                                                                                    	at mf.c.loadLibrary(Unknown Source:0)
                                                                                                    	at mf.a.b(SourceFile:9)
                                                                                                    	at com.facebook.soloader.SoLoader.k(SourceFile:10)
                                                                                                    	at com.facebook.hermes.reactexecutor.HermesExecutor.<clinit>(SourceFile:7)
                                                                                                    	at com.facebook.react.x.d(SourceFile:290)
                                                                                                    	at vp1.n.a(SourceFile:77)
                                                                                                    	at vp1.n$a.invokeSuspend(Unknown Source:11)
                                                                                                    	at dv0.a.resumeWith(SourceFile:9)
                                                                                                    	at gy0.a0.E0(Unknown Source:6)
                                                                                                    	at by0.a.resumeWith(SourceFile:23)
                                                                                                    	at dv0.a.resumeWith(SourceFile:37)
                                                                                                    	at by0.t0.run(SourceFile:111)
                                                                                                    	at android.os.Handler.handleCallback(Handler.java:942)
                                                                                                    	at android.os.Handler.dispatchMessage(Handler.java:99)
                                                                                                    	at android.os.Looper.loopOnce(Looper.java:201)
                                                                                                    	at android.os.Looper.loop(Looper.java:288)
                                                                                                    	at android.app.ActivityThread.main(ActivityThread.java:7898)
                                                                                                    	at java.lang.reflect.Method.invoke(Native Method)
                                                                                                    	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
                                                                                                    	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
                                                                                                    	Suppressed: by0.r0: [k2{Cancelling}@a254e1b, Dispatchers.Main]

On Reopening it works fine. Happening on some devices, not all.

@mohitarora777 mohitarora777 added Needs: Triage 🔍 Type: Upgrade Issue Issues reported from upgrade issue form labels Apr 19, 2023
@cortinico
Copy link
Contributor

I have a brownfield app where react native resides as a submodule and is a part of DFM. As soon as DFM is installed app crashes with the following error:-

What is DFM?

@mohitarora777
Copy link
Author

Dynamic Feature modules. react is downloaded on demand, and is not included in the base apk.

@github-actions github-actions bot added Needs: Attention Issues where the author has responded to feedback. and removed Needs: Author Feedback labels Apr 19, 2023
@cortinico
Copy link
Contributor

We can't help you much here sadly. The best would be for you to ask on StackOverflow or on other venues.
The apps needs libjsi.so to run. It's included inside the React Native library. If your setup is stripping it, that's outside of our control.

@cortinico cortinico added Needs: Author Feedback and removed Needs: Attention Issues where the author has responded to feedback. labels Apr 19, 2023
@mohitarora777
Copy link
Author

I don't think this is the issue with the setup, a lot of other folks are also reporting the similar issues which has been closed with the comment that these issues are fixed in v0.71. But these are still occurring after upgrading.

#35374 (comment)

@github-actions github-actions bot added Needs: Attention Issues where the author has responded to feedback. and removed Needs: Author Feedback labels Apr 19, 2023
@cortinico
Copy link
Contributor

I don't think this is the issue with the setup, a lot of other folks are also reporting the similar issues which has been closed with the comment that these issues are fixed in v0.71. But these are still occurring after upgrading.

Can you share a reproducer using this template?
https://github.com/react-native-community/reproducer-react-native

I'll be more than happy to fix this crash if it's happening consistently

@cortinico cortinico added Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. and removed Needs: Attention Issues where the author has responded to feedback. labels Apr 20, 2023
@github-actions
Copy link

⚠️ Missing Reproducible Example
ℹ️ It looks like your issue is missing a reproducible example. Please provide a Snack or a repository that demonstrates the issue you are reporting in a minimal, complete, and reproducible manner.

@pkpardeep482
Copy link

pkpardeep482 commented Apr 25, 2023

I am facing the same issues and using the React-native app as a dynamic module.
Getting same error : java.lang.UnsatisfiedLinkError: dlopen failed: library "libjsi.so" not found. I am using react-native 0.67.4

Even when I analyse the bundle, my module contains libjsi.so inside lib folder.
Let me know if there is any solution

@github-actions
Copy link

This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days.

@github-actions github-actions bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label May 19, 2023
@github-actions
Copy link

This issue was closed because it has been stalled for 7 days with no activity.

@github-actions
Copy link

This issue was closed because the author hasn't provided the requested feedback after 7 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Stale There has been a lack of activity on this issue and it may be closed soon. Type: Upgrade Issue Issues reported from upgrade issue form
Projects
None yet
Development

No branches or pull requests

3 participants