Search Issue Tracker
Won't Fix
Votes
0
Found in
2019.4
2020.3.17f1
2021.1
Issue ID
1376345
Regression
Yes
[IL2CPP] Unobserved "Collection was modified" exception appears after building the project
Reproduction steps:
1. Download and open the attached "Repro.zip" project
2. Build the project for standalone with the profiler attached
3. Observe the console window
Expected result: No exceptions appear
Actual result: "InvalidOperationException" exception appears
Reproducible with: 2019.4.33f1, 2020.3.24f1, 2021.1.26f1
Not reproducible with: 2021.2.0f1, 2021.2.6f1, 2022.1.0b2
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Rigidbody2D.Slide API does not have the needed configuration when creating a 2D Top-Down character controller
- Opening reference for "Playables"component redirects to a missing page
- Sprite Renderer image is changed when switching Mask Interaction and changing Sprite to a shared Sprite
- An unsigned integer is not compared with an integer correctly in player when using IL2CPP backend
- Graphical artifacts are being rendered in Scenes that are loaded during run-time when GPU Resident Drawer is turned on
Resolution Note (2022.2.X):
The bug was fixed as part of larger set of changes to the networking library. Unity's version of Mono was updated in 2021.2 so this is no longer a problem in that version. Because this issue only causes an exception to be logged we do not plan on taking the untested fix from 7359 into long term support versions of Unity. So unfortunately we do not plan no fixing this issue in versions earlier than Unity 2021.2.