Search Issue Tracker
By Design
Votes
0
Found in
2018.4
2019.4
2020.1.8f1
2020.3
2021.1
2021.2
Issue ID
1321210
Regression
No
FieldOffset "Reference typed field has explicit offset that is not pointer-size aligned" error doesn’t point the location
Full Title: FieldOffset "Reference typed field has explicit offset that is not pointer-size aligned" error doesn’t point the location in the script
Reproduction steps:
1. Open the attached "1321210test.zip" project and enter the "SampleScene"
2. Press play
3. Observe the console
Expected result: The error in the console points to the faulty line in the script
Actual result: The error doesn't point to any line in the script
Reproducible with: 2018.4.33f1, 2019.4.23f1, 2020.3.3f1, 2021.1.1f1 2021.2.0a11
Error:
TypeLoadException: Reference typed field 'aa' has explicit offset that is not pointer-size aligned.
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
- Flickering bright white dots in the Scene when the Android Platform is selected and DX11 Graphics API is used with Iris(R) Xe Graphics GPU
- Inconsistent capitalization and misaligned text in multiple query blocks in Search window
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- WebGL sends wrong value with large numbers when SendMessage function is used
Resolution Note (2021.2.X):
This is a runtime error not a compile time error. We currently report the field with the invalid layout. We cannot report file or line number information as a) debug information is tied to methods, not field declarations b) we may not be running with debug information available.