facebook / facebook/litho

Crash on SO Loader

Open
#657 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
7.8k
Forks
768
PR merge metrics
No merged PRs in 30d

Description

- [X] I have searched [existing issues](https://github.com/facebook/litho/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. (YogaNative.java:15)
com.facebook.yoga.YogaNative.jni_YGConfigNew (YogaNative.java)
com.facebook.yoga.YogaConfig. (YogaConfig.java:20)
com.facebook.yoga.YogaConfigFactory.create (YogaConfigFactory.java:5)
com.facebook.litho.yoga.LithoYogaFactory.createYogaConfig (LithoYogaFactory.java:26)
com.facebook.litho.NodeConfig. (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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.