Search Issue Tracker
Fixed in 2021.3.7f1
Fixed in 2021.3.X, 2022.1.X, 2022.1.8f1
Votes
0
Found in
2021.3.3f1
2022.1.1f1
Issue ID
UUM-866
Regression
No
[Backport] The BinaryReader read data to a Span <byte> is always zero
How to reproduce:
1. Open project "ReadToSpan.zip"
2. In the top Menu bar press Test>Test BinaryReader to Span
Expected result: No error
Actual result: Error appears: ("AssertionException: Assertion failure. Values are not equal. Expected: 1 == 0")
Reproducible with: 2021.2.1f1, 2022.1.0a16
Could not test with: 2019.4.32f1 (Errors: "Library/PackageCache/com.unity.visualscripting@1.7.5/Editor/VisualScripting.Core/Reflection/TypeOptionTree.cs(55,21): error CS1525: Invalid expression term '='"), 2020.3.24f1 (Errors: "Assets/BinaryReaderSpan.cs(44,32): error CS0518: Predefined type 'System.Span`1' is not defined or imported")
Note:
- The Test BinaryReader to byte is working fine
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
- "No HDR monitor detected." warning is shown in the Rendering Debugger even when the Editor is on HDR-enabled monitor
- Shader Graph Enum Keyword Default Value changes after reordering Entries
- Light Explorer throws “ArgumentException” error when disabling all columns from the Multi-column panel context menu
- "Freeze Camera For Culling" options are inconsistent between the Game view overlay and Rendering Debugger window
- Crash on GetOriginalSourceOrVariantRoot when creating a scene from a specific template
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.8f1
Resolution Note (fix version 2021.3):
Fixed in: 2021.3.7f1