Crash on SO Loader
See original GitHub issue- I have searched existing issues and this is not a duplicate
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:
- Created 3 years ago
- Comments:7
Top GitHub Comments
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.Thanks for your hints. Let me try tomorrow