LuckSiege / PictureSelector

Picture Selector Library for Android or 图片选择器
Apache License 2.0
13.31k stars 3.01k forks source link

华为nova4,华为mate20,android 10系统,在选择图片的时候,偶现卡住问题? #1489

Closed chenxihoulang closed 2 years ago

chenxihoulang commented 4 years ago

1,在华为的android10手机上选择图片,偶现卡住,有时候选择1张照片,都会卡一会才能返回? 2,在卡住的时候,点击物理返回按键,再滑动一下界面,代码里面的copyPathToAndroidQ继续执行,停止卡住,过一会就返回了 跟踪了下日志:

将PictureImageGridAdapter中的如下方法临时注释掉(注释会有bug哈): MediaUtils.setOrientationAsynchronous(context, image, config.isAndroidQChangeWH, config.isAndroidQChangeVideoWH, null);

在PictureThreadUtils.Task.run方法中添加日志: @Override public void run() { if (isSchedule) { if (runner == null) { if (!state.compareAndSet(NEW, RUNNING)) return; runner = Thread.currentThread(); } else { if (state.get() != RUNNING) return; } } else { if (!state.compareAndSet(NEW, RUNNING)) return; runner = Thread.currentThread();

            Log.e("chw_picture", getName() + ",run: " + runner.getName());
        }
        try {
            long startTime = System.currentTimeMillis();
            Log.e("chw_picture", getName() + "doInBackground: " + startTime);

            final T result = doInBackground();
            if (isSchedule) {
                if (state.get() != RUNNING) return;
                getDeliver().execute(new Runnable() {
                    @Override
                    public void run() {
                        onSuccess(result);
                    }
                });
            } else {
                if (!state.compareAndSet(RUNNING, COMPLETING)) return;
                getDeliver().execute(new Runnable() {
                    @Override
                    public void run() {
                        onSuccess(result);
                        onDone();

                        Log.e("chw_picture", getName() + "done: " + (System.currentTimeMillis() - startTime)
                                + ",thread:" + runner.getName());
                    }
                });
            }
        } catch (InterruptedException ignore) {
            state.compareAndSet(CANCELLED, INTERRUPTED);
        } catch (final Throwable throwable) {
            if (!state.compareAndSet(RUNNING, EXCEPTIONAL)) return;
            getDeliver().execute(new Runnable() {
                @Override
                public void run() {
                    onFail(throwable);
                    onDone();
                }
            });
        }
    }

在拷贝图片的代码处添加日志: long startTime = System.currentTimeMillis(); Log.e("chw_picture", "copyPathToAndroidQ-start,Thread:" + Thread.currentThread().getName());

                        String AndroidQToPath = AndroidQTransformUtils.copyPathToAndroidQ(getContext(),
                                media.getPath(), media.getWidth(), media.getHeight(), media.getMimeType(), config.cameraFileName);
                        media.setAndroidQToPath(AndroidQToPath);

                        Log.e("chw_picture", "copyPathToAndroidQ-end: " + (System.currentTimeMillis() - startTime));

long startTime = System.currentTimeMillis(); Log.e("chw_picture", "copyPathToAndroidQ-copyFile-start");

    // 走普通的文件复制流程,拷贝至应用沙盒内来
    BufferedSource inBuffer = null;
    try {
        Uri uri = Uri.parse(url);
        String encryptionValue = StringUtils.getEncryptionValue(url, width, height);
        String newPath = PictureFileUtils.createFilePath(ctx, encryptionValue, mineType, customFileName);
        File outFile = new File(newPath);
        if (outFile.exists()) {
            Log.e("chw_picture", "copyPathToAndroidQ-exists");
            return newPath;
        }
        inBuffer = Okio.buffer(Okio.source(Objects.requireNonNull(ctx.getContentResolver().openInputStream(uri))));
        boolean copyFileSuccess = PictureFileUtils.bufferCopy(inBuffer, outFile);

        Log.e("chw_picture", "copyPathToAndroidQ-copyFile-end: " + (System.currentTimeMillis() - startTime));
        if (copyFileSuccess) {
            return newPath;
        }
    } catch (Exception e) {
        e.printStackTrace();
    } finally {
        if (inBuffer != null && inBuffer.isOpen()) {
            PictureFileUtils.close(inBuffer);
        }
    }

测试日志如下,初步怀疑原因有可能是: 1,线程池这块的问题,点击选中图片后,用使用线程池获取图片元数据,只有当io-pool-1-thread-16线程返回后,文件拷贝卡住这块才会继续执行 2,拷贝文件和获取文件元数据,contentprovider的文件描述符是否有锁?,几个线程通过contentprovider.openInputStream同时方式同一个文件会不会出现死锁?

2020-06-09 14:34:16.196 25443-25728/com.luck.pictureselector E/chw_picture: run: 60320,io-pool-1-thread-0 2020-06-09 14:34:16.196 25443-25728/com.luck.pictureselector E/chw_picture: doInBackground: 1591684456196 2020-06-09 14:34:16.423 25443-25732/com.luck.pictureselector E/chw_picture: run: 60323,io-pool-1-thread-1 2020-06-09 14:34:16.423 25443-25443/com.luck.pictureselector E/chw_picture: done: 226,thread:60320,io-pool-1-thread-0 2020-06-09 14:34:16.423 25443-25732/com.luck.pictureselector E/chw_picture: doInBackground: 1591684456423 2020-06-09 14:34:16.506 25443-25443/com.luck.pictureselector E/chw_picture: done: 83,thread:60323,io-pool-1-thread-1 2020-06-09 14:34:18.021 25443-25749/com.luck.pictureselector E/chw_picture: run: 60331,io-pool-1-thread-2 2020-06-09 14:34:18.022 25443-25749/com.luck.pictureselector E/chw_picture: doInBackground: 1591684458021 2020-06-09 14:34:18.210 25443-25751/com.luck.pictureselector E/chw_picture: run: 60332,io-pool-1-thread-3 2020-06-09 14:34:18.210 25443-25751/com.luck.pictureselector E/chw_picture: doInBackground: 1591684458210 2020-06-09 14:34:18.430 25443-25756/com.luck.pictureselector E/chw_picture: run: 60333,io-pool-1-thread-4 2020-06-09 14:34:18.430 25443-25756/com.luck.pictureselector E/chw_picture: doInBackground: 1591684458430 2020-06-09 14:34:18.624 25443-25757/com.luck.pictureselector E/chw_picture: run: 60334,io-pool-1-thread-5 2020-06-09 14:34:18.624 25443-25757/com.luck.pictureselector E/chw_picture: doInBackground: 1591684458624 2020-06-09 14:34:18.901 25443-25763/com.luck.pictureselector E/chw_picture: run: 60335,io-pool-1-thread-6 2020-06-09 14:34:18.902 25443-25763/com.luck.pictureselector E/chw_picture: doInBackground: 1591684458901 2020-06-09 14:34:19.098 25443-25765/com.luck.pictureselector E/chw_picture: run: 60336,io-pool-1-thread-7 2020-06-09 14:34:19.098 25443-25765/com.luck.pictureselector E/chw_picture: doInBackground: 1591684459098 2020-06-09 14:34:19.165 25443-25443/com.luck.pictureselector E/chw_picture: done: 66,thread:60336,io-pool-1-thread-7 2020-06-09 14:34:19.290 25443-25767/com.luck.pictureselector E/chw_picture: run: 60337,io-pool-1-thread-8 2020-06-09 14:34:19.291 25443-25767/com.luck.pictureselector E/chw_picture: doInBackground: 1591684459290 2020-06-09 14:34:19.359 25443-25443/com.luck.pictureselector E/chw_picture: done: 68,thread:60337,io-pool-1-thread-8 2020-06-09 14:34:19.422 25443-25771/com.luck.pictureselector E/chw_picture: run: 60338,io-pool-1-thread-9 2020-06-09 14:34:19.423 25443-25771/com.luck.pictureselector E/chw_picture: doInBackground: 1591684459422 2020-06-09 14:34:19.480 25443-25443/com.luck.pictureselector E/chw_picture: done: 58,thread:60338,io-pool-1-thread-9 2020-06-09 14:34:19.699 25443-25776/com.luck.pictureselector E/chw_picture: run: 60339,io-pool-1-thread-10 2020-06-09 14:34:19.699 25443-25776/com.luck.pictureselector E/chw_picture: doInBackground: 1591684459699 2020-06-09 14:34:19.763 25443-25443/com.luck.pictureselector E/chw_picture: done: 64,thread:60339,io-pool-1-thread-10 2020-06-09 14:34:19.820 25443-25778/com.luck.pictureselector E/chw_picture: run: 60340,io-pool-1-thread-11 2020-06-09 14:34:19.821 25443-25778/com.luck.pictureselector E/chw_picture: doInBackground: 1591684459820 2020-06-09 14:34:19.873 25443-25443/com.luck.pictureselector E/chw_picture: done: 53,thread:60340,io-pool-1-thread-11 2020-06-09 14:34:20.011 25443-25781/com.luck.pictureselector E/chw_picture: run: 60341,io-pool-1-thread-12 2020-06-09 14:34:20.011 25443-25781/com.luck.pictureselector E/chw_picture: doInBackground: 1591684460011 2020-06-09 14:34:20.056 25443-25443/com.luck.pictureselector E/chw_picture: done: 45,thread:60341,io-pool-1-thread-12 2020-06-09 14:34:20.264 25443-25785/com.luck.pictureselector E/chw_picture: run: 60342,io-pool-1-thread-13 2020-06-09 14:34:20.264 25443-25785/com.luck.pictureselector E/chw_picture: doInBackground: 1591684460264 2020-06-09 14:34:20.313 25443-25443/com.luck.pictureselector E/chw_picture: done: 49,thread:60342,io-pool-1-thread-13 2020-06-09 14:34:20.538 25443-25786/com.luck.pictureselector E/chw_picture: run: 60343,io-pool-1-thread-14 2020-06-09 14:34:20.539 25443-25786/com.luck.pictureselector E/chw_picture: doInBackground: 1591684460538 2020-06-09 14:34:20.594 25443-25443/com.luck.pictureselector E/chw_picture: done: 56,thread:60343,io-pool-1-thread-14 2020-06-09 14:34:20.788 25443-25788/com.luck.pictureselector E/chw_picture: run: 60344,io-pool-1-thread-15 2020-06-09 14:34:20.789 25443-25788/com.luck.pictureselector E/chw_picture: doInBackground: 1591684460788 2020-06-09 14:34:20.849 25443-25443/com.luck.pictureselector E/chw_picture: done: 61,thread:60344,io-pool-1-thread-15 2020-06-09 14:34:21.047 25443-25789/com.luck.pictureselector E/chw_picture: run: 60345,io-pool-1-thread-16 2020-06-09 14:34:21.048 25443-25789/com.luck.pictureselector E/chw_picture: doInBackground: 1591684461047 2020-06-09 14:34:21.462 25443-25728/com.luck.pictureselector E/chw_picture: run: 60320,io-pool-1-thread-0 2020-06-09 14:34:21.462 25443-25728/com.luck.pictureselector E/chw_picture: doInBackground: 1591684461462 2020-06-09 14:34:21.499 25443-25443/com.luck.pictureselector E/chw_picture: done: 37,thread:60320,io-pool-1-thread-0 2020-06-09 14:34:21.610 25443-25732/com.luck.pictureselector E/chw_picture: run: 60323,io-pool-1-thread-1 2020-06-09 14:34:21.610 25443-25732/com.luck.pictureselector E/chw_picture: doInBackground: 1591684461610 2020-06-09 14:34:21.666 25443-25443/com.luck.pictureselector E/chw_picture: done: 56,thread:60323,io-pool-1-thread-1 2020-06-09 14:34:21.792 25443-25765/com.luck.pictureselector E/chw_picture: run: 60336,io-pool-1-thread-7 2020-06-09 14:34:21.792 25443-25765/com.luck.pictureselector E/chw_picture: doInBackground: 1591684461792 2020-06-09 14:34:21.820 25443-25443/com.luck.pictureselector E/chw_picture: done: 28,thread:60336,io-pool-1-thread-7 2020-06-09 14:34:21.872 25443-25767/com.luck.pictureselector E/chw_picture: run: 60337,io-pool-1-thread-8 2020-06-09 14:34:21.872 25443-25767/com.luck.pictureselector E/chw_picture: doInBackground: 1591684461872 2020-06-09 14:34:21.902 25443-25443/com.luck.pictureselector E/chw_picture: done: 30,thread:60337,io-pool-1-thread-8 2020-06-09 14:34:22.806 25443-25771/com.luck.pictureselector E/chw_picture: run: 60338,io-pool-1-thread-9 2020-06-09 14:34:22.806 25443-25771/com.luck.pictureselector E/chw_picture: doInBackground: 1591684462806 2020-06-09 14:34:22.807 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start 2020-06-09 14:34:22.808 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 14:34:41.051 25443-25443/com.luck.pictureselector E/chw_picture: done: 23029,thread:60331,io-pool-1-thread-2 2020-06-09 14:34:41.061 25443-25443/com.luck.pictureselector E/chw_picture: done: 22630,thread:60333,io-pool-1-thread-4 2020-06-09 14:34:41.062 25443-25443/com.luck.pictureselector E/chw_picture: done: 22851,thread:60332,io-pool-1-thread-3 2020-06-09 14:34:41.072 25443-25443/com.luck.pictureselector E/chw_picture: done: 22447,thread:60334,io-pool-1-thread-5 2020-06-09 14:34:41.078 25443-25443/com.luck.pictureselector E/chw_picture: done: 22176,thread:60335,io-pool-1-thread-6 2020-06-09 14:34:41.083 25443-25443/com.luck.pictureselector E/chw_picture: done: 20035,thread:60345,io-pool-1-thread-16 2020-06-09 14:34:41.319 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 18511 2020-06-09 14:34:41.320 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 18512 2020-06-09 14:34:41.320 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start 2020-06-09 14:34:41.320 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 14:34:41.701 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 381 2020-06-09 14:34:41.701 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 381 2020-06-09 14:34:41.701 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start 2020-06-09 14:34:41.701 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 14:34:41.888 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 186 2020-06-09 14:34:41.888 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 187 2020-06-09 14:34:41.888 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start 2020-06-09 14:34:41.888 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 14:34:42.063 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 174 2020-06-09 14:34:42.063 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 175 2020-06-09 14:34:42.063 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start 2020-06-09 14:34:42.063 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 14:34:42.217 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 154 2020-06-09 14:34:42.217 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 154 2020-06-09 14:34:42.217 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start 2020-06-09 14:34:42.217 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 14:34:42.243 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 26 2020-06-09 14:34:42.243 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 26 2020-06-09 14:34:42.243 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start 2020-06-09 14:34:42.243 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 14:34:42.270 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 26 2020-06-09 14:34:42.270 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 27 2020-06-09 14:34:42.270 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start 2020-06-09 14:34:42.270 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 14:34:42.291 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 21 2020-06-09 14:34:42.291 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 21 2020-06-09 14:34:42.291 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start 2020-06-09 14:34:42.291 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 14:34:42.311 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 20 2020-06-09 14:34:42.311 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 20 2020-06-09 14:34:42.311 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start 2020-06-09 14:34:42.311 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 14:34:42.330 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 19 2020-06-09 14:34:42.330 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 19 2020-06-09 14:34:42.330 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start 2020-06-09 14:34:42.330 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 14:34:42.350 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 19 2020-06-09 14:34:42.350 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 20 2020-06-09 14:34:42.350 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start 2020-06-09 14:34:42.350 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 14:34:42.369 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 19 2020-06-09 14:34:42.369 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 19 2020-06-09 14:34:42.369 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start 2020-06-09 14:34:42.369 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 14:34:42.388 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 19 2020-06-09 14:34:42.388 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 19 2020-06-09 14:34:42.388 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start 2020-06-09 14:34:42.388 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 14:34:42.406 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 18 2020-06-09 14:34:42.406 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 18 2020-06-09 14:34:42.407 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start 2020-06-09 14:34:42.407 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 14:34:42.493 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 86 2020-06-09 14:34:42.493 25443-25771/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 86 2020-06-09 14:34:42.558 25443-25443/com.luck.pictureselector E/chw_picture: done: 19752,thread:60338,io-pool-1-thread-9

换成如下代码,测试10次,每次50张照片,基本都是不到3秒就能返回 public static void executeByIo(final Task task) { // execute(getPoolByTypeAndPriority(TYPE_IO), task); execute((ExecutorService) AsyncTask.THREAD_POOL_EXECUTOR, task); } 2020-06-09 16:35:31.582 16066-16149/com.luck.pictureselector E/chw_picture: androidQ拷贝图片,run: AsyncTask #2 2020-06-09 16:35:31.583 16066-16149/com.luck.pictureselector E/chw_picture: androidQ拷贝图片doInBackground: 1591691731582 2020-06-09 16:35:31.584 16066-16149/com.luck.pictureselector E/chw_picture: totalSize:73128918,Thread:AsyncTask #2 2020-06-09 16:35:31.584 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:31.585 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:31.690 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 105 2020-06-09 16:35:31.690 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 106 2020-06-09 16:35:31.690 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:31.690 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:31.736 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 46 2020-06-09 16:35:31.736 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 46 2020-06-09 16:35:31.736 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:31.736 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:31.773 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 37 2020-06-09 16:35:31.773 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 37 2020-06-09 16:35:31.773 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:31.773 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:31.804 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 31 2020-06-09 16:35:31.804 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 31 2020-06-09 16:35:31.804 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:31.804 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:31.838 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 34 2020-06-09 16:35:31.838 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 34 2020-06-09 16:35:31.839 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:31.839 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:31.880 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 41 2020-06-09 16:35:31.880 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 41 2020-06-09 16:35:31.880 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:31.880 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.022 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 142 2020-06-09 16:35:32.022 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 142 2020-06-09 16:35:32.022 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.022 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.039 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 17 2020-06-09 16:35:32.039 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 17 2020-06-09 16:35:32.039 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.039 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.076 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 37 2020-06-09 16:35:32.076 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 37 2020-06-09 16:35:32.076 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.076 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.103 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 27 2020-06-09 16:35:32.104 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 28 2020-06-09 16:35:32.104 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.104 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.130 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 26 2020-06-09 16:35:32.131 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 26 2020-06-09 16:35:32.131 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.131 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.154 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 23 2020-06-09 16:35:32.154 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 23 2020-06-09 16:35:32.154 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.154 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.176 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 22 2020-06-09 16:35:32.176 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 22 2020-06-09 16:35:32.176 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.176 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.199 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 22 2020-06-09 16:35:32.199 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 23 2020-06-09 16:35:32.199 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.199 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.219 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 20 2020-06-09 16:35:32.219 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 20 2020-06-09 16:35:32.219 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.219 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.241 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 22 2020-06-09 16:35:32.241 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 22 2020-06-09 16:35:32.241 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.241 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.261 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 20 2020-06-09 16:35:32.261 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 20 2020-06-09 16:35:32.262 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.262 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.282 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 20 2020-06-09 16:35:32.282 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 20 2020-06-09 16:35:32.282 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.282 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.300 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 18 2020-06-09 16:35:32.300 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 18 2020-06-09 16:35:32.300 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.301 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.319 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 18 2020-06-09 16:35:32.319 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 19 2020-06-09 16:35:32.319 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.319 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.337 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 18 2020-06-09 16:35:32.337 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 18 2020-06-09 16:35:32.337 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.337 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.355 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 18 2020-06-09 16:35:32.355 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 18 2020-06-09 16:35:32.355 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.355 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.376 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 21 2020-06-09 16:35:32.376 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 21 2020-06-09 16:35:32.376 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.376 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.397 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 21 2020-06-09 16:35:32.397 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 21 2020-06-09 16:35:32.397 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.397 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.416 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 19 2020-06-09 16:35:32.416 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 19 2020-06-09 16:35:32.417 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.417 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.434 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 17 2020-06-09 16:35:32.434 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 18 2020-06-09 16:35:32.434 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.434 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.455 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 21 2020-06-09 16:35:32.455 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 21 2020-06-09 16:35:32.455 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.455 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.476 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 21 2020-06-09 16:35:32.476 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 21 2020-06-09 16:35:32.476 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.476 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.500 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 24 2020-06-09 16:35:32.500 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 24 2020-06-09 16:35:32.500 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.500 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.545 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 45 2020-06-09 16:35:32.545 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 45 2020-06-09 16:35:32.545 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.545 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.563 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 18 2020-06-09 16:35:32.563 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 18 2020-06-09 16:35:32.563 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.563 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.582 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 19 2020-06-09 16:35:32.582 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 19 2020-06-09 16:35:32.582 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.582 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.602 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 20 2020-06-09 16:35:32.603 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 21 2020-06-09 16:35:32.603 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.603 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.622 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 19 2020-06-09 16:35:32.622 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 19 2020-06-09 16:35:32.622 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.622 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.640 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 17 2020-06-09 16:35:32.640 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 18 2020-06-09 16:35:32.640 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.640 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.657 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 16 2020-06-09 16:35:32.657 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 17 2020-06-09 16:35:32.657 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.657 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.689 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 32 2020-06-09 16:35:32.689 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 32 2020-06-09 16:35:32.689 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.689 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.738 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 49 2020-06-09 16:35:32.738 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 49 2020-06-09 16:35:32.738 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.738 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.753 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 15 2020-06-09 16:35:32.753 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 15 2020-06-09 16:35:32.753 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.753 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.859 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 106 2020-06-09 16:35:32.859 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 106 2020-06-09 16:35:32.860 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.860 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:32.888 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 28 2020-06-09 16:35:32.889 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 28 2020-06-09 16:35:32.889 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:32.889 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:33.033 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 144 2020-06-09 16:35:33.033 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 144 2020-06-09 16:35:33.034 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:33.034 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:33.071 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 37 2020-06-09 16:35:33.072 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 38 2020-06-09 16:35:33.072 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:33.072 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:33.101 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 29 2020-06-09 16:35:33.101 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 29 2020-06-09 16:35:33.101 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:33.101 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:33.123 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 22 2020-06-09 16:35:33.123 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 22 2020-06-09 16:35:33.123 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:33.123 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:33.162 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 39 2020-06-09 16:35:33.162 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 39 2020-06-09 16:35:33.162 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:33.162 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:33.203 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 41 2020-06-09 16:35:33.203 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 41 2020-06-09 16:35:33.204 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:33.204 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:33.401 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 197 2020-06-09 16:35:33.401 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 198 2020-06-09 16:35:33.401 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:33.401 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:33.691 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 290 2020-06-09 16:35:33.691 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 290 2020-06-09 16:35:33.691 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-start,Thread:AsyncTask #2 2020-06-09 16:35:33.692 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-start 2020-06-09 16:35:33.746 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-copyFile-end: 55 2020-06-09 16:35:33.746 16066-16149/com.luck.pictureselector E/chw_picture: copyPathToAndroidQ-end: 55 2020-06-09 16:35:33.842 16066-16066/com.luck.pictureselector E/chw_picture: androidQ拷贝图片done: 2260,thread:AsyncTask #2

lovemelon2017 commented 4 years ago

看不懂

chenxihoulang commented 4 years ago

看不懂

就是我在一些关键代码上下添加了些日志,用来定位问题,上面的日志分两块 将线程池换成AsyncTask,测试了几次,没有复现

初步怀疑原因有可能是: 1,线程池这块的问题,点击选中图片后,用使用线程池获取图片元数据,只有当io-pool-1-thread-16线程返回后,文件拷贝卡住这块才会继续执行 2,拷贝文件和获取文件元数据,contentprovider的文件描述符是否有锁?,几个线程通过contentprovider.openInputStream同时方式同一个文件会不会出现死锁?

cuibg commented 4 years ago

@luck1991 @LuckSiege 这个问题说的非常详细,望能够解决