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

Package: Burst

-

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)

  1. Resolution Note:

    Tuples are of struct layout LayoutKind.Auto which is not supported by Burst.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.