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
- Search field in UI Builder's Library has no character limit
- Changing the value in UI Builder by dragging increases it by a few thousand points when reaching the borders of the screen
- ARM64 architecture DLL incorrectly copied instead of x64 when building for Windows x64
- Crash on TypeTreeIterator::GetNode when opening a specific folder
- Crash on WriteSerializedAssetsV2 when (re)entering the Play Mode in a specific project when IEnumerator Start() is used
Resolution Note (fix version 1.3.0-preview.13):
Fixed in Burst 1.3.0-preview.13