App icon indicating copy to clipboard operation
App copied to clipboard

[$1000] Identify source and fix crash: `com.facebook.soloader.SoLoader.doLoadLibraryBySoName`

Open melvin-bot[bot] opened this issue 1 year ago • 31 comments

Fatal Exception: java.lang.UnsatisfiedLinkError

couldn't find DSO to load: libhermes.so

SoSource 0: com.facebook.soloader.ApkSoSource[root = /data/data/com.expensify.chat/lib-main flags = 1]
SoSource 1: com.facebook.soloader.DirectorySoSource[root = /data/app/~~TQymoaD6lIwlgPXCQPi3Tw==/com.expensify.chat-dV5g1giPTUH-ZkSuaAJlog==/lib/arm64 flags = 0]
SoSource 2: com.facebook.soloader.DirectorySoSource[root = /vendor/lib64 flags = 2]
SoSource 3: com.facebook.soloader.DirectorySoSource[root = /system/lib64 flags = 2]
Native lib dir: /data/app/~~TQymoaD6lIwlgPXCQPi3Tw==/com.expensify.chat-dV5g1giPTUH-ZkSuaAJlog==/lib/arm64

result: 0

SoLoader.java line 918 com.facebook.soloader.SoLoader.doLoadLibraryBySoName

Number of Crashes: 76

Device Information

  • Platforms: Android
  • App Versions: 1.1.82-5
  • Devices: samsung SM-A326B 11

Stacktraces

Android 1.1.82-5
com.facebook.soloader.SoLoader.doLoadLibraryBySoName (SoLoader.java:918)
com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl (SoLoader.java:740)
com.facebook.soloader.SoLoader.loadLibraryBySoName (SoLoader.java:654)
com.facebook.soloader.SoLoader.loadLibrary (SoLoader.java:634)
com.facebook.soloader.SoLoader.loadLibrary (SoLoader.java:582)
com.facebook.hermes.reactexecutor.HermesExecutor.<clinit> (HermesExecutor.java:20)
com.facebook.hermes.reactexecutor.HermesExecutorFactory.create (HermesExecutorFactory.java:29)
com.facebook.react.ReactInstanceManager$5.run (ReactInstanceManager.java:1066)
java.lang.Thread.run (Thread.java:923)

Internal Firebase Info

💥 DO NOT EDIT THIS SECTION 💥

Crash IDs: 3851f750a3551753cfd665e72607ec8b Exception: couldn't find DSO to load: libhermes.so SoSource 0: com.facebook.soloader.ApkSoSource[root = /data/data/com.expensify.chat/lib-main flags = 1] SoSource 1: com.facebook.soloader.DirectorySoSource[root = /data/app/~~TQymoaD6lIwlgPXCQPi3Tw==/com.expensify.chat-dV5g1giPTUH-ZkSuaAJlog==/lib/arm64 flags = 0] SoSource 2: com.facebook.soloader.DirectorySoSource[root = /vendor/lib64 flags = 2] SoSource 3: com.facebook.soloader.DirectorySoSource[root = /system/lib64 flags = 2] Native lib dir: /data/app/~~TQymoaD6lIwlgPXCQPi3Tw==/com.expensify.chat-dV5g1giPTUH-ZkSuaAJlog==/lib/arm64 result: 0

melvin-bot[bot] avatar Jul 12 '22 20:07 melvin-bot[bot]

Eep! 4 days overdue now. Issues have feelings too...

melvin-bot[bot] avatar Jul 18 '22 19:07 melvin-bot[bot]

Still overdue 6 days?! Let's take care of this!

melvin-bot[bot] avatar Jul 20 '22 19:07 melvin-bot[bot]

Triggered auto assignment to @dylanexpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

melvin-bot[bot] avatar Aug 03 '22 19:08 melvin-bot[bot]

Update coming today!

dylanexpensify avatar Aug 09 '22 08:08 dylanexpensify

@marcaaron could I get an updated title for this issue so I could get it on Upwork? Thanks man!

dylanexpensify avatar Aug 10 '22 10:08 dylanexpensify

All of these can probably just be renamed to Identify source and fix crash: [crash name]

marcaaron avatar Aug 10 '22 18:08 marcaaron

Nice, thanks man!

dylanexpensify avatar Aug 11 '22 09:08 dylanexpensify

Internal: https://www.upwork.com/ab/applicants/1557661553099186176/job-details External: https://www.upwork.com/jobs/~0144dd7c56faead9c1

dylanexpensify avatar Aug 11 '22 09:08 dylanexpensify

Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel (Exported)

melvin-bot[bot] avatar Aug 11 '22 09:08 melvin-bot[bot]

Triggered auto assignment to @luacmartins (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

melvin-bot[bot] avatar Aug 11 '22 09:08 melvin-bot[bot]

Looking for proposals

luacmartins avatar Aug 22 '22 07:08 luacmartins

I'm focused on offline first and N7 issues this week. Gonna try to get to this next week.

luacmartins avatar Aug 31 '22 06:08 luacmartins

doubled

dylanexpensify avatar Sep 05 '22 08:09 dylanexpensify

doubled

dylanexpensify avatar Sep 14 '22 10:09 dylanexpensify

Seems this is not occurring on the latest version. From the issue description, the last time issue occurred on version 1.1.82-5 which is a lot older. Maybe we should wait for some time before doubling this further as it might already be fixed, thanks!

cc: @luacmartins @dylanexpensify

Santhosh-Sellavel avatar Sep 14 '22 10:09 Santhosh-Sellavel

Ah nice catch, sounds good @Santhosh-Sellavel !

dylanexpensify avatar Sep 14 '22 10:09 dylanexpensify

Latest version in which this error occurred is 1.1.97-7 and latest crash happened on Sep 12, 2022, 6:00:09 AM. There's an open issue in the RN repo for this error.

luacmartins avatar Sep 14 '22 15:09 luacmartins

an open issue in the https://github.com/facebook/react-native/issues/23764 for this error.

But the last activity is on Dec 2021.

Latest version in which this error occurred is 1.1.97-7 and the latest crash happened on Sep 12, 2022, 6:00:09 AM.

Where did you see that?

Santhosh-Sellavel avatar Sep 14 '22 15:09 Santhosh-Sellavel

But the last activity is on Dec 2021. Yea, there hasn't been any activity on that issue.

Where did you see that? On our Crashlytics dashboard 🙃

luacmartins avatar Sep 14 '22 15:09 luacmartins

On our Crashlytics dashboard 🙃

Can you share the logs here, and why it's not updated here?

Santhosh-Sellavel avatar Sep 14 '22 15:09 Santhosh-Sellavel

Not sure why it wasn't updated. Here's the stack trace (no logs):

Fatal Exception: java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libjscexecutor.so
	SoSource 0: com.facebook.soloader.DirectorySoSource[root = /data/app/~~cqKIJ67vMBRtn_tjVV5m0w==/com.expensify.chat-G3yPNATzxhxLZvKrY84HhQ==/lib/arm64 flags = 0]
	SoSource 1: com.facebook.soloader.DirectApkSoSource[root = null]
	SoSource 2: com.facebook.soloader.DirectorySoSource[root = /system/lib64 flags = 2]
	SoSource 3: com.facebook.soloader.DirectorySoSource[root = /vendor/lib64 flags = 2]
	Native lib dir: /data/app/~~cqKIJ67vMBRtn_tjVV5m0w==/com.expensify.chat-G3yPNATzxhxLZvKrY84HhQ==/lib/arm64
 result: 0
       at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1098)
       at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:914)
       at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:826)
       at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:773)
       at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:743)
       at com.facebook.react.jscexecutor.JSCExecutor.loadLibrary(JSCExecutor.java:24)
       at com.facebook.react.jscexecutor.JSCExecutor.<clinit>(JSCExecutor.java:20)
       at com.facebook.react.jscexecutor.JSCExecutor.loadLibrary()
       at com.facebook.react.ReactInstanceManagerBuilder.getDefaultJSExecutorFactory(ReactInstanceManagerBuilder.java:351)
       at com.facebook.react.ReactInstanceManagerBuilder.build(ReactInstanceManagerBuilder.java:318)
       at com.facebook.react.ReactNativeHost.createReactInstanceManager(ReactNativeHost.java:95)
       at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:42)
       at com.expensify.chat.MainApplication.onCreate(MainApplication.java:79)
       at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1211)
       at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7506)
       at android.app.ActivityThread.access$1600(ActivityThread.java:310)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2281)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loopOnce(Looper.java:226)
       at android.os.Looper.loop(Looper.java:313)
       at android.app.ActivityThread.main(ActivityThread.java:8663)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)

luacmartins avatar Sep 14 '22 20:09 luacmartins

Still looking for proposals

luacmartins avatar Sep 23 '22 16:09 luacmartins

46 more crashes here https://github.com/Expensify/App/issues/11378 in v1.2.8-0

Thanks to @Santhosh-Sellavel for noticing the duplicate

rushatgabhane avatar Sep 28 '22 20:09 rushatgabhane

@dylanexpensify Maybe we should double this because it's still happening on latest version. https://github.com/Expensify/App/issues/11378

rushatgabhane avatar Sep 28 '22 20:09 rushatgabhane

trying to find steps to replicate the crash

rushatgabhane avatar Sep 29 '22 16:09 rushatgabhane

@rushatgabhane mind sharing the steps you are taking to try to reproduce this?

luacmartins avatar Oct 03 '22 21:10 luacmartins

@luacmartins don't have any steps. couldn't replicate this issue.

Totally spitballing - I think you just need to start the app on a Samsung A32 running Android 11.

rushatgabhane avatar Oct 03 '22 21:10 rushatgabhane

Any updates here @luacmartins @rushatgabhane

dylanexpensify avatar Oct 12 '22 08:10 dylanexpensify

@dylanexpensify We are still looking for steps to reproduce & proposals

Santhosh-Sellavel avatar Oct 12 '22 12:10 Santhosh-Sellavel

Not overdue

dylanexpensify avatar Oct 21 '22 08:10 dylanexpensify