wlfcolin / file-downloader

FileDownloader, powerful http/https file download tool on Android
Apache License 2.0
384 stars 152 forks source link

java.util.ConcurrentModificationException #23

Open hrob opened 7 years ago

hrob commented 7 years ago

创建200+个任务概率性出现以下问题:

java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:788) at java.util.HashMap$ValueIterator.next(HashMap.java:820) at java.util.AbstractCollection.toArrayList(AbstractCollection.java:349) at java.util.AbstractCollection.toArray(AbstractCollection.java:339) at java.util.ArrayList.(ArrayList.java:97) at org.wlf.filedownloader.DownloadCacher.getDownloadFiles(DownloadCacher.java:669) at org.wlf.filedownloader.file_download.DownloadTaskManager.checkFileNameInternal(DownloadTaskManager.java:628) at org.wlf.filedownloader.file_download.DownloadTaskManager.checkFileName(DownloadTaskManager.java:622) at org.wlf.filedownloader.file_download.DownloadTaskManager.createAndStart(DownloadTaskManager.java:610) at org.wlf.filedownloader.FileDownloadManager.createAndStart(FileDownloadManager.java:384) at org.wlf.filedownloader.FileDownloader.createAndStart(FileDownloader.java:323) at DownloadUtils$DownloadThread.run(DownloadUtils.java:242)