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
- Errors "InvalidOperationException: Trying to use a texture (_InternalGradingLut)..." and “Render Graph Execution error” shown and Scene turns black when 16 or more Render Objects are used
- GameObjects in the Game View are rendered differently than in the Scene View when the Rendering Path is set to "Deferred" and Screen Space Shadows Renderer Feature is added
- Errors “InvalidOperationException: Trying to use a texture (_CameraDepthTexture)...” and “Render Graph Execution error” shown when selecting GameObjects with Mesh Renderer from the Hierarchy
- macOS stutters in a minimal project
- [Usability] HDRP Wizard calls for VR fixes when opening the HDRP Wizard a second time after they have already been applied and the Wizard has finished checking
Resolution Note (fix version 1.3.0-preview.13):
Fixed in Burst 1.3.0-preview.13