Fresco: java.lang.RuntimeException: Could not initialize SoLoader

Created on 8 Aug 2018  路  4Comments  路  Source: facebook/fresco

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
bug

Most helpful comment

It looks like ZTE has modified Android for whatever reason that prevents us from loading native libraries through SoLoader (https://github.com/facebook/soloader). The line where this is failing is here: https://github.com/facebook/SoLoader/blob/master/java/com/facebook/soloader/FileLocker.java#L35

I've created an issue for SoLoader here: https://github.com/facebook/SoLoader/issues/15

All 4 comments

Hi,

Does it happen for one user or for all devices of this kind?

From what we can tell, it looks like every user that has this device is running into this issue.

It looks like ZTE has modified Android for whatever reason that prevents us from loading native libraries through SoLoader (https://github.com/facebook/soloader). The line where this is failing is here: https://github.com/facebook/SoLoader/blob/master/java/com/facebook/soloader/FileLocker.java#L35

I've created an issue for SoLoader here: https://github.com/facebook/SoLoader/issues/15

My Notebook-2.xlsx
There are some errors in our app group by device.
Hope this can help you some.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rhettor picture rhettor  路  3Comments

cococool picture cococool  路  4Comments

stephen-workpop picture stephen-workpop  路  4Comments

ykostova picture ykostova  路  3Comments

goodev picture goodev  路  4Comments