facebook / facebook/fresco

java.lang.RuntimeException: Could not initialize SoLoader

Open
#2,176 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Kotlin
Stars
17.2k
Forks
3.7k
PR merge metrics
No merged PRs in 30d

Description

### Description
When initializing Fresco on app start:
Caused by java.io.FileNotFoundException: /data/user/0/com.remind101/lib-main/dso_lock: open failed: EACCES (Permission denied)
at libcore.io.IoBridge.open(IoBridge.java:452)
at java.io.FileOutputStream.(FileOutputStream.java:87)
at java.io.FileOutputStream.(FileOutputStream.java:72)
at com.facebook.soloader.FileLocker.(FileLocker.java:28)
at com.facebook.soloader.FileLocker.lock(FileLocker.java:24)
at com.facebook.soloader.UnpackingSoSource.prepare(UnpackingSoSource.java:393)
at com.facebook.soloader.SoLoader.initImpl(SoLoader.java:211)
at com.facebook.soloader.SoLoader.init(SoLoader.java:120)
at com.facebook.soloader.SoLoader.init(SoLoader.java:104)
at com.facebook.drawee.backends.pipeline.Fresco.initialize(Fresco.java:63)
at com.facebook.drawee.backends.pipeline.Fresco.initialize(Fresco.java:46)
Caused by android.system.ErrnoException: open failed: EACCES (Permission denied)
at libcore.io.Posix.open(Posix.java)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
at libcore.io.IoBridge.open(IoBridge.java:438)
at java.io.FileOutputStream.(FileOutputStream.java:87)
at java.io.FileOutputStream.(FileOutputStream.java:72)
at com.facebook.soloader.FileLocker.(FileLocker.java:28)
at com.facebook.soloader.FileLocker.lock(FileLocker.java:24)
at com.facebook.soloader.UnpackingSoSource.prepare(UnpackingSoSource.java:393)
at com.facebook.soloader.SoLoader.initImpl(SoLoader.java:211)
at com.facebook.soloader.SoLoader.init(SoLoader.java:120)
at com.facebook.soloader.SoLoader.init(SoLoader.java:104)
at com.facebook.drawee.backends.pipeline.Fresco.initialize(Fresco.java:63)
at com.facebook.drawee.backends.pipeline.Fresco.initialize(Fresco.java:46)

### Reproduction
This is happening in production, but we have not be able to reproduce this ourselves with the emulator. Crashlytics is catching this crash on exactly one device, ZTE Grand X Max 2. It happens when the application is first opened.

### Additional Information

* Fresco version: 1.8.1
* Platform version: ZTE Grand X Max 2 api level 23

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.