Search Issue Tracker
Won't Fix
Votes
1
Found in
2020.3.46f1
2021.3.20f1
2022.2.9f1
2023.1.0b7
2023.2.0a5
Issue ID
UUM-28761
Regression
No
BinaryFormatter.Serialize throws a SerializationException when trying to serialize more than 13169966 objects
Reproduction steps:
1. Open the attached “addressable_content_state_unityproj“ project
2. Open the “Content Update Loader” Custom Editor Window (BugReport > Content Update Loader)
3. Press the “Load From JSON” button
4. Press the “Save with BinaryFormatter (Inducing Bug)” button
5. Observe the Console window
Expected result: “SerializationException: The internal array cannot expand to greater than Int32.MaxValue elements.” is present
Actual result: No errors are present
Reproducible with: 2020.3.46f1, 2021.3.20f1, 2022.2.9f1, 2023.1.0b7, 2023.2.0a5
Reproducible on: Windows 10 (21H2)
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
- Saving moves Toggle Button Group buttons to the wrong place in hierarchy
- [iOS] Visual artifacts are visible when the camera's feed is rendered to a texture
- Error "cannot map expression to ps_4_0 instruction set" in Shader Graph preview when using the GATHER_RED_TEXTURE2D macro in custom hlsl function
- Sprite Renderer image is changed when Mask Interaction is turned by C# script
- URP Player remains in Windows Background processes when the application is closed
Resolution Note:
We can't fix this with our current Mono base class library. When Unity moves to the .NET Core base class library, this limitation will be removed.