Search Issue Tracker
Won't Fix
Votes
0
Found in
2018.4
2019.3.5f1
2020.2
Issue ID
1256409
Regression
No
'MemoryStream' corrupted crash when adding a field using Cecil
Reproduction steps:
1. Open the attached project ("1256409.zip")
2. Open "SampleScene"
3. Enter Play mode
Reproducible with: 2018.4.24f1, 2019.3.16f1, 2019.4.4f1, 2020.1.0b16, 2020.2.0a18
Notes:
- The project in question initialized a boolean with a custom attribute at the start of Play mode and then uses that boolean to add a field through Cecil in InitializeOnLoad
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
- Files in the target folder are deleted without a proper warning when building an iOS project
- Character animation freezes when toggling animator on/off in a coroutine
- Certain textures are incorrectly marked in the render pass list when observed through Render Graph Viewer
- "Assertion failed on expression" error occurs when multiple Animation Components are instantiated after changing the Culling Type
- MacOS persistentDataPath uses old path when built compared to Editor Play mode
Resolution Note:
Arbitrary modification of a generated assembly is not supported