Unity Issue Tracker - "InvalidOperationException: Collection was modified; enumeration operation may not execute." is thrown when clearing inactive Background Tasks
Fixed
UUM-54039
"InvalidOperationException: Collection was modified; enumeration operation may not execute." is thrown when clearing inactive Background Tasks
Unity: Progress Window
Fixed
2023.3.X
2023.2.X
2023.1.X
2022.3.X
Fixed InvalidOperationException when clearing inactive background progresses.
Fixed InvalidOperationException when clearing inactive background progresses.
Fixed InvalidOperationException when clearing inactive background progresses.
Fixed InvalidOperationException when clearing inactive background progresses.
How to reproduce:
1. Open the attached project "IN-57433.zip"
2. Open Assets/Scenes/SampleScene.unity
3. Enter Play Mode
4. Open Window>Panels>1 Background Tasks
5. Click "Clear inactive" in the Background Tasks window
Expected results: No errors are thrown in the Console window
Actual results: "InvalidOperationException: Collection was modified; enumeration operation may not execute." is thrown