Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.util.ConcurrentModificationException #1335

Open
congwiny opened this issue May 7, 2020 · 0 comments
Open

java.util.ConcurrentModificationException #1335

congwiny opened this issue May 7, 2020 · 0 comments

Comments

@congwiny
Copy link

congwiny commented May 7, 2020

java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextNode(HashMap.java:1453)
at java.util.HashMap$EntryIterator.next(HashMap.java:1487)
at java.util.HashMap$EntryIterator.next(HashMap.java:1485)
at cq.llsfdl.cc.a(ConnectTask.java:130)
at cq.llsfdl.cc.a(ConnectTask.java:86)
at cq.llsfdl.cf.g(DownloadLaunchRunnable.java:393)
at cq.llsfdl.cf.run(DownloadLaunchRunnable.java:255)
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:929)

image

崩溃出现在130行,迭代entries时出了问题。
应该是多个线程对 FileDownloadHeader#mHeaderMap进行了操作导致的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant