Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2021.2.X
Votes
15
Found in
2021.2.0a18
2021.2.0b14
2022.1
Issue ID
1374185
Regression
Yes
[IL2CPP]System.Runtime.Serialization.Formatters.BinaryFormatter doesn't work when Project is build with IL2CPP Scripting Backend
Reproduction steps:
1. Open the attached project "BinaryFormatter.zip"
2. In File > Build Settings, make sure that Scenes/SampleScene is added to Scenes In Build
3. In Player settings change Scripting Backend to the IL2CPP
4. Build and Run
5. Observe the Build
Expected result: Data is serialized successfully
Actual result: Binary Formatter discards data, serialization fails
Reproducible with: 2021.2.0a18, 2021.2.0b16, 2022.1.0a13
Not reproducible with: 2019.4.32f1, 2020.3.21f1, 2021.1.27f1, 2021.2.0a17
Note:
- The issue is not reproducible with Mono Scripting Backend
-
MaskedMouse
Nov 05, 2021 13:09
People stop using the binary formatter it is NOT safe. Even the microsoft documentation says so.
IMO Unity should warn developers using this API -
james_work
Nov 05, 2021 02:03
+1 This is the only thing blocking our upgrade to 2021.2, would appreciate a fix ASAP.
-
MrDizzle26
Oct 29, 2021 15:03
This is an extremely important issue for our team, we are stuck on the very unstable b1 until this is resolved
-
Shii
Oct 28, 2021 10:25
This is the only one know issue in 2021.2 that preventing us upgrading our project from 2020.3. Please fix it!
-
Johnroy3
Oct 27, 2021 21:24
Can someone please fix this? Like, right now :/
-
gamefox87
Oct 27, 2021 21:18
Please fix this ASAP.
-
Kunnogi
Oct 27, 2021 21:17
Definitely requires to be fixed, very important issue, should be fixed ASAP.
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
- Crash on RaiseException when terrain detail instancing is excessive
- Prefab variant reference is lost when assigned by click-and-drag in Prefab Editor mode
- Opening any dropdown in Shader Graph stops the Nodes preview but it still plays in the background
- GPU utilization increases when a GameObject is selected
- Motion Blur has sharp edges when object is moving in the foreground of another object
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0b1
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.3f1