question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash on SO Loader

See original GitHub issue

Version

//Litho implementation “com.facebook.litho:litho-core:$versions.lithoVersion” implementation “com.facebook.litho:litho-widget:$versions.lithoVersion” kapt “com.facebook.litho:litho-processor:$versions.lithoVersion” implementation ‘com.facebook.soloader:soloader:0.5.1’ implementation “com.facebook.litho:litho-fresco:$versions.lithoVersion” testImplementation “com.facebook.litho:litho-testing:$versions.lithoVersion” implementation “com.facebook.litho:litho-sections-core:$versions.lithoVersion” implementation “com.facebook.litho:litho-sections-widget:$versions.lithoVersion” compileOnly “com.facebook.litho:litho-sections-annotations:$versions.lithoVersion” kapt “com.facebook.litho:litho-sections-processor:$versions.lithoVersion” where lithoVersion = lithoVersion : ‘0.34.0’

Issues and Steps to Reproduce

generated from a prod app, stacktrace via Firebase.

Expected Behavior

Should not crash

Link to Code

Caused by java.lang.UnsatisfiedLinkError
couldn't find DSO to load: libyoga.so caused by: couldn't find DSO to load: libfb.so caused by: com.facebook.jni.HybridData$Destructor
com.facebook.soloader.SoLoader.doLoadLibraryBySoName (SoLoader.java:738)
com.facebook.soloader.SoLoader.loadLibraryBySoName (SoLoader.java:591)
com.facebook.soloader.SoLoader.loadLibrary (SoLoader.java:529)
com.facebook.soloader.SoLoader.loadLibrary (SoLoader.java:484)
com.facebook.yoga.YogaNative.<clinit> (YogaNative.java:15)
com.facebook.yoga.YogaNative.jni_YGConfigNew (YogaNative.java)
com.facebook.yoga.YogaConfig.<init> (YogaConfig.java:20)
com.facebook.yoga.YogaConfigFactory.create (YogaConfigFactory.java:5)
com.facebook.litho.yoga.LithoYogaFactory.createYogaConfig (LithoYogaFactory.java:26)
com.facebook.litho.NodeConfig.<clinit> (NodeConfig.java:45)
com.facebook.litho.InternalNodeUtils.create (InternalNodeUtils.java:26)
com.facebook.litho.Column.resolve (Column.java:90)
com.facebook.litho.Layout.create (Layout.java:167)
com.facebook.litho.Layout.create (Layout.java:119)
com.facebook.litho.Layout.createAndMeasureComponent (Layout.java:76)
com.facebook.litho.LayoutState.calculate (LayoutState.java:1444)
com.facebook.litho.ComponentTree$LayoutStateFuture.calculateLayoutStateInternal (ComponentTree.java:2456)
com.facebook.litho.ComponentTree$LayoutStateFuture.access$2700 (ComponentTree.java:2374)
com.facebook.litho.ComponentTree$LayoutStateFuture$1.call (ComponentTree.java:2434)
com.facebook.litho.ComponentTree$LayoutStateFuture$1.call (ComponentTree.java:2426)
java.util.concurrent.FutureTask.run (FutureTask.java:266)
com.facebook.litho.ComponentTree$LayoutStateFuture.runAndGet (ComponentTree.java:2545)
com.facebook.litho.ComponentTree.calculateLayoutState (ComponentTree.java:2339)
com.facebook.litho.ComponentTree.measure (ComponentTree.java:1061)
com.facebook.litho.LithoView.performLayout (LithoView.java:412)
com.facebook.litho.ComponentHost.onLayout (ComponentHost.java:799)
android.view.View.layout (View.java:22085)

This is not happening in my .apk bundle but aab bundle

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

3reactions
Junaid-Sakibcommented, May 6, 2020

For now adding: android.bundle.enableUncompressedNativeLibs=false to my gradle.properties seems to resolve the issue for me. With great hope I had added Litho to my production code, only to face this issue and a bit of disappointment.

2reactions
wooyukitcommented, May 6, 2020

Thanks for your hints. Let me try tomorrow

Read more comments on GitHub >

github_iconTop Results From Across the Web

SoLoader causes crashes on migration to an Android 12 device
Install an app which uses SoLoader on the first device and open the app to load the libraries. Factory reset the second device...
Read more >
How to fix apps with bad SoLoader versions - Google Help
One or more of your apps contain a defective version of the SoLoader SDK, which causes your app to crash, thus harming its...
Read more >
React Native: App crashes on start due to SoLoader issue
Add configurations.all section to android/build.gradle file. This solved the issue for me. don't forget to run .
Read more >
Crashes | Android Developers
An Android app crashes whenever there's an unexpected exit caused by an ... #03 pc 000000000001e4fd /system/lib/libc.so (__start_thread).
Read more >
Crash: error while loading shared libraries: libxslt.so.1: cannot ...
Crash : error while loading shared libraries: libxslt.so.1: cannot open shared object file: No such file or directory.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found