Search Issue Tracker
Fixed in 1.3.0-preview.13
Votes
1
Found in [Package]
1.1.3-preview.3
Issue ID
1242469
Regression
Yes
The sizeof of struct with StructLayout returns a smaller value in the Burst compiled code compared to the Mono compiled code
How to reproduce:
1. Open the project "case_1242469-Burst_sizeof"
2. Open the Scene "SampleScene"
3. Make sure that the Burst Compiler is enabled (Jobs->Burst->Enable Compilation)
4. Enter the Play Mode
5. Observe the results in the Console
Expected results: the sizeof(Test) returns a smaller value in the Burst compiled code compared to the Mono compiled code
Actual results: The sizeof(Test) returns the same value in the Burst compiled code and in the Mono compiled code
Reproducible with: 1.1.3-preview.3 (2018.4.23f1, 2019.3.14f1, 2020.1.0b8, 2020.2.0a11), 1.3.0-preview.12 (2018.4.23f1, 2019.3.14f1, 2020.1.0b8, 2020.2.0a11)
Not reproducible with: 1.1.2 (2018.4.23f1, 2019.3.14f1, 2020.1.0b8, 2020.2.0a11)
Notes:
1. It is reproducible when the FieldOffset is more than 0
2. it is not reproducible when the Synchronous Compilation is disabled (Jobs->Burst->Synchronous Compilation)
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
- Different colors are present when Alpha channel is unclamped
- Visual Effects Forums link leads to generic Unity Forums
- The dithering node returns a blocky effect when the Render Scale is set to some values below 1
- [Android Module] Unity double writes files in the "StreamingAssets" folder when they are deleted using "IPostGenerateGradleAndroidProject" after the Grandle project is generated
- IndexOutOfRangeException and InvalidOperationException when clicking on the HTML log in the Console
Resolution Note (fix version 1.3.0-preview.13):
Fixed in Burst 1.3.0-preview.13