IllegalArgumentException: org.chromium.components.minidump_uploader.CrashFileManager

In my developer console, sometimes I see a surge in the following failure:

java.lang.IllegalArgumentException
org.chromium.components.minidump_uploader.CrashFileManager.<init>

java.lang.RuntimeException: 
  at android.os.AsyncTask$3.done (AsyncTask.java:309)
  at java.util.concurrent.FutureTask.finishCompletion (FutureTask.java:354)
  at java.util.concurrent.FutureTask.setException (FutureTask.java:223)
  at java.util.concurrent.FutureTask.run (FutureTask.java:242)
  at android.os.AsyncTask$SerialExecutor$1.run (AsyncTask.java:234)
  at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1113)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:588)
  at java.lang.Thread.run (Thread.java:818)
Caused by: java.lang.IllegalArgumentException: 
  at org.chromium.components.minidump_uploader.CrashFileManager.<init> (CrashFileManager.java:43)
  at org.chromium.android_webview.AwBrowserProcess$1.doInBackground (AwBrowserProcess.java:7)
  at android.os.AsyncTask$2.call (AsyncTask.java:295)
  at java.util.concurrent.FutureTask.run (FutureTask.java:237)
  at android.os.AsyncTask$SerialExecutor$1.run (AsyncTask.java:234)
  at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1113)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:588)
  at java.lang.Thread.run (Thread.java:818)

Is this not under my control? None of the above crash reports are actually directly related to any method or class in my project, so I have no idea where to look. In addition, I do not see any of these errors at all for weeks, and then suddenly bursts after a couple of hours, and then back to nothing:

enter image description here

The spikes do not match any that I recognize, for example. new release version. This tells me that I can’t do anything, although it’s annoying because it seems to be fueling Android Vitals stats. In addition, crashes come from a number of versions and devices of Android.

EDIT, , :

enter image description here

EDIT2... ... , ( Android Vitals):

enter image description here

EDIT3... aaargh! ( ... ):

enter image description here

+4
1

: , , catch , , zip, zip , , , catch, , .

. catch, .

 private   void deleteCache(Context context) {
    try {
        File dir = context.getCacheDir();
        deleteDir(dir);
    } catch (Exception ignore) {
    }
}

private   boolean deleteDir(File dir) {
    if (dir != null && dir.isDirectory()) {
        String[] children = dir.list();
        for (String aChildren : children) {
            boolean success = deleteDir(new File(dir, aChildren));
            if (!success) {
                return false;
            }
        }
        return dir.delete();
    } else
        return dir != null && dir.isFile() && dir.delete();
}
0

Source: https://habr.com/ru/post/1691876/


All Articles