App crashes when selecting large image with expo-image-picker

Please provide the following:

  1. SDK Version: 39.0.5
  2. Platforms(Android/iOS/web/all): Android

On some huawei devices, when user is trying to select large image (~3MB or more) the app crashes instantly.

I use expo-image-picker module.

This is the error message returned in logcat:

2020-12-08 21:52:03.960 12008-12055/? E/ResponseCache: unable to read cache
    java.io.FileNotFoundException: /data/user/0/com.google.android.apps.docs/cache/gms_cache (No such file or directory)
        at java.io.FileInputStream.open0(Native Method)
        at java.io.FileInputStream.open(FileInputStream.java:231)
        at java.io.FileInputStream.<init>(FileInputStream.java:165)
        at lto.a(PG:3)
        at ltn.b(Unknown Source:5)
        at com.google.android.apps.docs.drive.DriveApplication.lambda$onCreate$2$DriveApplication(Unknown Source:55)
        at dhr.run(Unknown Source:2)
        at vmd.d(PG:5)
        at vjp.f(PG:1)
        at vmk$a.run(Unknown Source:2)
        at vjz$a.run(PG:2)
        at vqc.run(PG:2)
        at vqc.call(Unknown Source:0)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
        at java.util.concurrent.ThreadPoolExecutor.processTask(ThreadPoolExecutor.java:1187)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:784)
2020-12-08 21:52:03.962 12008-12022/? E/MemoryLeakMonitorManager: MemoryLeakMonitor.jar is not exist!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.