Search Issue Tracker
Fixed
Fixed in 2021.3.29f1, 2023.1.5f1, 2023.2.0a22
Votes
0
Found in
2021.3.25f1
2022.2.19f1
2023.1.0b16
2023.2.0a15
Issue ID
UUM-35559
Regression
Yes
Random string values are printed in the Console when passing a new string object initialized with multiple '\0' characters to the Debug.Log function
Reproduction steps:
1. Open the attached "FAV_repro_IN-40591.zip" project
2. Click on the Test -> TestEmptyCharToString button in the Toolbar
3. Observe the Console
Expected result: Empty strings are logged in the Console
Actual result: Random strings are logged in the Console
Reproducible with: 2021.2.0a18, 2021.3.25f1, 2022.2.19f1, 2023.1.0b16, 2023.2.0a15
Not reproducible with: 2020.3.48f1, 2021.2.0a17
Reproducible on: Windows 10
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
- SystemInfo.get_graphicsDeviceName() is generating garbage GC Alloc when using Metal graphics API
- Crash on D3D12CommonShader::ApplyGpuProgram when attaching material which samples "_UnityFBInput0" to "Full Screen Pass Renderer Feature" Component
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
- Game view is rendered white when viewing the Editor with HDR display and Post Proccesing is enabled on the Main Camera with 2D URP
Resolution Note (fix version 2023.2.0a22):
Removed mono's string constructor optimization that assumed memory was cleared.
Resolution Note (fix version 2023.1.5f1):
Removed mono's string constructor optimization that assumed memory was cleared.
Resolution Note (fix version 2021.3.29f1):
Removed mono's string constructor optimization that assumed memory was cleared.