Search Issue Tracker
Fixed
Fixed in 1.4.12, 1.6.1
Votes
0
Found in [Package]
1.4.0
1.5.0
1.6.0
Issue ID
BUR-1394
Regression
No
System.NullReferenceException error when assigning variable to float2 without implicitly converting to float
How to reproduce:
1. Open the attached project from "halfcastBurst1358209.zip"
2. Navigate to "Jobs > Burst > Open Inspector..."
3. Observe the error of "HalfCastBurstException.Reproduce"
Expected result: "half" has an implicit operator to vectors and should act like it
Actual result: System.NullReferenceException: Object reference not set to an instance of an object error appears
Reproducible with: 1.6.0 (2019.4.30f1, 2020.3.18f1, 2021.1.22f1, 2021.2.0b12, 2022.1.0a9)
Notes:
1. In 1.6.0-pre.3 it appeared as an invalid bit cast error
2. Workaround: One can resolve the issue manually by writing:
float4 x = (float)myHalf;
instead of...
float4 x = myHalf;
3. The issue occurs with float2, float3, float4, double2, double3, and double4 but not with custom types that define implicit conversion functions
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- GPU utilization increases by 20% on Meta Quest headsets when Render Graph is enabled on 6000.0.16f1 and higher
- Value on Slider (Int) control in UI Builder displays as default when saving UI Document
- Color mismatch in UI Builders Library panel when the Editors theme is set to Light Mode
- [Android ] "AndroidJNI.ToBooleanArray" returns a random non-zero value instead of "IntPtr.Zero" when the method argument is null
- Non-HDR color picker opens when selecting material color with HDR enabled
Add comment