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
- [Android][iOS] The keyboard closes and re-opens when consecutive input fields are selected
- Complex Sub Graph connected to a Voronoi node is ignored when the shader gets applied as a Material
- Compute Shader property not set error when entering play mode with path tracing and PBR sky
- "WebGL Publish" detects WebGL module and allows building when it is installed without restarting the project
- Editor is non-responsive and flickers when multiple Water System instances are enabled
Resolution Note (fix version 1.3.0-preview.13):
Fixed in Burst 1.3.0-preview.13