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
- ArgumentOutOfRangeException when manipulating the Project Settings search bar
- [Linux] Touch freezes in Player when any mouse button is clicked
- UnityEngine.Rendering.Volume.OnEnable() is called twice before OnDisable() creating multiple copies of the same volume when a volume is enabled right after Domain Reload when entering Play Mode
- Hinge Joint transforms are reset when toggling the "useMotor" property
- Motion Vector texture reports incorrect Mesh data when Mesh is coming from off-screen
Resolution Note (fix version 1.3.0-preview.13):
Fixed in Burst 1.3.0-preview.13