Search Issue Tracker
By Design
Votes
0
Found in [Package]
1.7.0
1.8.4
Issue ID
BUR-2365
Regression
Yes
A Burst error BC1045 is thrown when using IJobParallelForDefer interface
How to reproduce:
1. Open the “Burst.zip“ project
2. Observe the Console
Expected result: No errors are seen in the Console
Actual result: An error can be seen in the Console
Reproducible with: 1.7.0(2020.3.48f1), 1.8.4(2020.3.48f1, 2021.3.25f1, 2022.2.19f1, 2023.1.0b16, 2023.2.0a15)
Not reproducible with 1.6.6(2020.3.48f1)
Reproducible on: Windows 10, Windows 11
Note:
The error.
.\Library\PackageCache\com.unity.collections@2.1.0-pre.18\Unity.Collections\Jobs\IJobParallelForDefer.cs(52,21): Burst error BC1045: Struct {{TestCode/TestValueTuple&}} with auto layout is not supported at Unity.Jobs.IJobParallelForDeferExtensions.JobParallelForDeferProducer`1<TestCode.TestValueTuple>.Execute(ref TestCode.TestValueTuple jobData, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, ref Unity.Jobs.LowLevel.Unsafe.JobRanges ranges, int jobIndex) (at .\Library\PackageCache\com.unity.collections@2.1.0-pre.18\Unity.Collections\Jobs\IJobParallelForDefer.cs:52)
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
- 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
Resolution Note:
Tuples are of struct layout LayoutKind.Auto which is not supported by Burst.