**java.util.ConcurrentModificationException** inside the IMA SDK when using Singleton AdsLoader in a custom integration (not ExoPlayer)

8 views
Skip to first unread message

Suraj Kr I Engineering

unread,
Sep 3, 2025, 4:34:58 AM (yesterday) Sep 3
to ima...@googlegroups.com
## Reproduction Steps
1. Initialize a single `AdsLoader` globally.  
2. Request ads for multiple playbacks in quick succession (e.g., RecyclerView or playlist use-case).  
3. Occasionally, the SDK throws `ConcurrentModificationException` from `zzac.zzc`.  

IMA SDK

unread,
Sep 3, 2025, 10:39:20 AM (yesterday) Sep 3
to ima...@googlegroups.com

Hi,

Thank you for contacting the IMA SDK support team.

I tried reproducing the ConcurrentModificationException issue you mentioned by simulating multiple rapid ad requests using a single global AdsLoader instance in our sample project. However, I was not able to reproduce the error.

Could you please try reproducing the issue using our sample project. If the problem still occurs, kindly share your sample project reproducible code snippet where this issue happens. This will help us investigate further and assist you better.

Kindly provide the requested details via Reply privately to author option.
 

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=IMA+SDK&entry.460850823=500Ht00001u5hvZIAQ&entry.80707362=00331729

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.

 

Thanks,
 
Google Logo IMA SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-09-03 14:39:08Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01u5hvZ:ref" (ADR-00331729)



Suraj Kr I Engineering

unread,
2:13 AM (19 hours ago) 2:13 AM
to IMA SDK, ima...@googlegroups.com
Hi,

Thank you for your prompt response and for attempting to reproduce the `ConcurrentModificationException` issue.

Regarding your suggestion to use a sample project, I would like to ask if you could try reproducing the issue using `incide reclerview` with the same `AdsLoader` instance. This specific scenario might highlight the problem more effectively, as our integration involves similar complex ad loading patterns.

We appreciate your continued support in investigating this matter.

Thanks,
Suraj


--
You received this message because you are subscribed to the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ima-sdk+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ima-sdk/TAIyz000000000000000000000000000000000000000000000T20OP800y0lNGk12SmyFMSTkUinN4A%40sfdc.net.

IMA SDK

unread,
8:18 AM (13 hours ago) 8:18 AM
to suraj...@sharechat.co, ima...@googlegroups.com

Hi,
As suggested, I attempted to reproduce the issue using a RecyclerView setup where each item triggers an ad request using the same shared AdsLoader instance. Despite simulating rapid and concurrent ad requests—both using threads and during RecyclerView item binding—I was unable to reproduce the ConcurrentModificationException.
As mentioned earlier could you please try reproducing it using our sample project. if the issue persists on your end, we kindly request that you share the sample project to this drive Link with us for further investigation

Kindly provide the requested details via Reply privately to author option
Thanks,
 
Google Logo IMA SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-09-04 12:18:23Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01u5hvZ:ref" (ADR-00331729)



Reply all
Reply to author
Forward
0 new messages