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 "com.facebook.soloader.SysUtil.dumbDeleteRecursive"

See original GitHub issue

Starting from May 21, most of our users’ devices began to crash with an error:

java.lang.RuntimeException: 
  at android.app.ActivityThread.handleBindApplication (ActivityThread.java:7409)
  at android.app.ActivityThread.access$2400 (ActivityThread.java:251)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2284)
  at android.os.Handler.dispatchMessage (Handler.java:110)
  at android.os.Looper.loop (Looper.java:219)
  at android.app.ActivityThread.main (ActivityThread.java:8393)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:513)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1055)
Caused by: java.lang.RuntimeException: 
  at com.facebook.soloader.SoLoader.init (SoLoader.java:214)
  at com.ultimateguitar.ugpro.MainApplication.onCreate (MainApplication.java:163)
  at android.app.Instrumentation.callApplicationOnCreate (Instrumentation.java:1202)
  at android.app.ActivityThread.handleBindApplication (ActivityThread.java:7393)
Caused by: java.io.IOException: 
  at com.facebook.soloader.SysUtil.dumbDeleteRecursive (SysUtil.java:119)
  at com.facebook.soloader.UnpackingSoSource.deleteUnmentionedFiles (UnpackingSoSource.java:207)
  at com.facebook.soloader.UnpackingSoSource.regenerate (UnpackingSoSource.java:264)
  at com.facebook.soloader.UnpackingSoSource.refreshLocked (UnpackingSoSource.java:321)
  at com.facebook.soloader.UnpackingSoSource.prepare (UnpackingSoSource.java:414)
  at com.facebook.soloader.SoLoader.initSoSources (SoLoader.java:322)
  at com.facebook.soloader.SoLoader.init (SoLoader.java:200)
  at com.facebook.soloader.SoLoader.init (SoLoader.java:182)
  at com.facebook.soloader.SoLoader.init (SoLoader.java:212)

We tested different ideas starting with targetSDKVersion=30 and different versions of the RN.

  • react-native 0.63.3
  • Android App Bundle
  • Android 9, 10, 11

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:11
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

9reactions
nahuelbcommented, May 31, 2021

Also having the same issue on my last android release (released on May 19), I am using react native 0.64.1.

Stacktrace:

caused by: java.io.IOException: could not delete: /data/user/0/app.puramente.app/lib-0/libevent-2.1.so
        at com.facebook.soloader.SysUtil.dumbDeleteRecursive(SysUtil.java:119)
        at com.facebook.soloader.UnpackingSoSource.deleteUnmentionedFiles(UnpackingSoSource.java:207)
        at com.facebook.soloader.UnpackingSoSource.regenerate(UnpackingSoSource.java:264)
        at com.facebook.soloader.UnpackingSoSource.refreshLocked(UnpackingSoSource.java:321)
        at com.facebook.soloader.UnpackingSoSource.prepare(UnpackingSoSource.java:414)
        at com.facebook.soloader.SoLoader.initSoSources(SoLoader.java:322)
        at com.facebook.soloader.SoLoader.init(SoLoader.java:200)
        at com.facebook.soloader.SoLoader.init(SoLoader.java:182)
        at com.facebook.soloader.SoLoader.init(SoLoader.java:212)
        at app.puramente.app.MainApplication.onCreate(MainApplication.java:79)
        at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1158)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6266)
        at android.app.ActivityThread.access$1200(ActivityThread.java:240)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1797)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:214)
        at android.app.ActivityThread.main(ActivityThread.java:7094)
        at java.lang.reflect.Method.invoke(Method.java:-2)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)

Some stuff I realized:

  • Only happens when the user updates the app to the new version, fresh downloads work fine.
  • If the user having the crash, uninstalls and re-installs the app, it works.
  • If the user goes to the Android settings and clears the cache of the app, it is also fixed.

Edit I was able to fix the problem by adding this to my root build.gradle:

allprojects {
    repositories {
        ....stuff

        configurations.all {
            resolutionStrategy {
                force "com.facebook.soloader:soloader:0.10.1"
	    }
        }
    }
}

And also this to my app/build.gradle:

implementation 'com.facebook.soloader:soloader:0.10.1+'
4reactions
JeffGuKangcommented, Nov 12, 2021

It was a very critical issue. It is happened when we deploy application with RN version downgrade from 0.66.1 to 0.64.1.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React-Native error on deployment update in google playstore ...
This is an issue with respect to react-native. It has been resolved in the version RN 0.68.0. Here is the documentation to the...
Read more >
Joe Sandbox Cloud Basic - Analysis Report 37342
Source: com.facebook.soloader.SysUtil;->dumbDeleteRecursive:15, API Calls in same method context: File.listFiles,File.delete. Source: okhttp3.internal.io.
Read more >
리액트 네이티브[React Native] 한국 사용자 그룹 | 리엑트 ... - Facebook
Crash "com.facebook.soloader.SysUtil.dumbDeleteRecursive" · Issue #77 · facebook/SoLoader. Starting from May 21, most of our users' devices began to crash ...
Read more >
Facebook SoLoader Statistics & Issues - Codesti
Crash "com.facebook.soloader.SysUtil.dumbDeleteRecursive", open, 8, 2021-05-29, 2022-11-25, -. Android app bundle crashes of soloader, closed ...
Read more >
Soloader IO exception - bytemeta
When the user updates my app, it's showing this error and the app is crashing. ... SysUtil.dumbDeleteRecursive (SysUtil.java) at com.facebook.soloader.
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