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

ConcurrentModificationException on cancel #455

Closed
yaalaa opened this issue Jul 17, 2023 · 1 comment
Closed

ConcurrentModificationException on cancel #455

yaalaa opened this issue Jul 17, 2023 · 1 comment

Comments

@yaalaa
Copy link

yaalaa commented Jul 17, 2023

Prerequisites -

  • Android SDK: API34 (API33)
  • Runtime: API33, API30
  • com.android.volley:volley:1.2.1

Steps -

  • start loading several images
  • cancel all

Expected -

  • loaders are canceled

Actual -

  • app crashes with exception ConcurrentModificationException
  • stack looks like
java.util.ConcurrentModificationException
	at java.util.HashMap$HashIterator.nextNode(HashMap.java:1441)
	at java.util.HashMap$ValueIterator.next(HashMap.java:1470)
	at com.android.volley.toolbox.ImageLoader$4.run(ImageLoader.java:495)
	at android.os.Handler.handleCallback(Handler.java:938)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:236)
	at android.app.ActivityThread.main(ActivityThread.java:8061)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)

Any help?

@jpd236
Copy link
Collaborator

jpd236 commented Jul 17, 2023

This looks like a duplicate of #205. If you could provide sample code there that at least somewhat consistently reproduces the issue, that would be quite helpful.

@jpd236 jpd236 closed this as completed Jul 17, 2023
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

2 participants