Android app bundle crashes of soloader
See original GitHub issueAll of ours Android apps (React-Native) provided with app bundle (.aab) experiencing with much amount of soloader crashes. Different devices, different OS versions. Can not reproduce it on our testing devices Switching to separate apps is not an options since starting from August 2021 app bundle is required.
react versions:
"react": "17.0.1",
"react-native": "0.64.0", (soloader version 0.9.0 here)
Stacktrace 1:
java.io.IOException at (Unknown Source)
com.facebook.soloader.g.<init> (or com.facebook.soloader.FileLocker.<init>)
java.lang.RuntimeException: Unable to create application chat.roulette.MainApplication: java.lang.RuntimeException: java.io.IOException: Resource deadlock would occur
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6853)
at android.app.ActivityThread.access$1400(ActivityThread.java:246)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1955)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:236)
at android.app.ActivityThread.main(ActivityThread.java:7876)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
Caused by: java.lang.RuntimeException: java.io.IOException: Resource deadlock would occur
at com.facebook.soloader.SoLoader.g(Unknown Source)
at chat.roulette.MainApplication.onCreate(Unknown Source)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1193)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6848)
... 8 more
Caused by: java.io.IOException: Resource deadlock would occur
at sun.nio.ch.FileDispatcherImpl.lock0(Native Method)
at sun.nio.ch.FileDispatcherImpl.lock(FileDispatcherImpl.java:115)
at sun.nio.ch.FileChannelImpl.lock(FileChannelImpl.java:1139)
at java.nio.channels.FileChannel.lock(FileChannel.java:1053)
at com.facebook.soloader.g.<init>(Unknown Source)
at com.facebook.soloader.g.c(Unknown Source)
at com.facebook.soloader.n.b(Unknown Source)
at com.facebook.soloader.SoLoader.i(Unknown Source)
at com.facebook.soloader.SoLoader.f(Unknown Source)
at com.facebook.soloader.SoLoader.e(Unknown Source)
at com.facebook.soloader.SoLoader.g(Unknown Source)
... 11 more
Stacktrace 2: (little bit different)
java.lang.RuntimeException: Unable to create application chat.roulette.MainApplication: java.lang.RuntimeException: java.io.IOException: Resource deadlock would occur
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5506)
at android.app.ActivityThread.-wrap2(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1595)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:203)
at android.app.ActivityThread.main(ActivityThread.java:6251)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1073)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:934)
Caused by: java.lang.RuntimeException: java.io.IOException: Resource deadlock would occur
at com.facebook.soloader.SoLoader.g(Unknown Source)
at chat.roulette.MainApplication.onCreate(Unknown Source)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1024)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5503)
... 8 more
Caused by: java.io.IOException: Resource deadlock would occur
at sun.nio.ch.FileDispatcherImpl.lock0(Native Method)
at sun.nio.ch.FileDispatcherImpl.lock(FileDispatcherImpl.java:99)
at sun.nio.ch.FileChannelImpl.lock(FileChannelImpl.java:1026)
at java.nio.channels.FileChannel.lock(FileChannel.java:875)
at com.facebook.soloader.g.<init>(Unknown Source)
at com.facebook.soloader.g.c(Unknown Source)
at com.facebook.soloader.n.b(Unknown Source)
at com.facebook.soloader.SoLoader.i(Unknown Source)
at com.facebook.soloader.SoLoader.f(Unknown Source)
at com.facebook.soloader.SoLoader.e(Unknown Source)
... 12 more
Issue Analytics
- State:
- Created 2 years ago
- Reactions:5
- Comments:23 (6 by maintainers)
Top Results From Across the Web
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 signed build crash immediately after open on ...
My app is crashing when I try to run on my device with the signed release ... your JS bundle * bundleAssetName: "index.android.bundle", ......
Read more >Crashes | Android Developers
An Android app crashes whenever there's an unexpected exit caused by an unhandled exception or signal. An app that is written using Java...
Read more >SoLoader is a native code loader for Android.
Android app bundle crashes of soloader. "react": "17.0.1", "react-native": "0.64.0", (soloader version 0.9.0 here) java.io.IOException at (Unknown Source) ...
Read more >Crashing app (my own TKCompanionApp) after updates
android.bundle' is packaged correctly for release. 10-24 18:05:26.097 13454 13477 E AndroidRuntime: at com.facebook.react.bridge.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@simpleton We would also really benefit from a new version as soon as possible. Right now users with new S21 and similar are unable to open our app, and the base just gets larger and larger…
I am happy to help if I can assist in any way with the release.
I’m gonna to create simplified version of our app (cause NDA a need to remove all API, images, js logic, screens – im sure it’s not important regarding the issue. All native libs will be left)
But anyway i don’t know how to reproduce it. It happens within 2-3% of users. Seems like not much but has large impact for app rating at stores