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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note:
Tuples are of struct layout LayoutKind.Auto which is not supported by Burst.