Search Issue Tracker

Won't Fix

Votes

0

Found in [Package]

1.2.1, 1.3.0-preview.4

Issue ID

1211670

Regression

No

[Burst] 'CompilerException' error is thrown when the BurstCompile attribute is used

Package: Burst

-

Reproduction steps:
1. Open the attached project ("case_1211670-DistField2DTests.zip")
2. Download Burst package and put it inside "Assets/Plugins" folder,
3. Create "com.unity.burst" folder inside Packages folder and put Burst ".Runtime" folder inside of it
3. Remove the Burst package from the "manifest.json"
4. Open the repro scene ("sd_tests_fixmath")
5. Enter Play Mode
6. Inspect Console output

Expected result: No exceptions are thrown
Actual result: "Unexpected exception Burst.Compiler.IL.CompilerException: Error while verifying module: Intrinsic has incorrect return type!" exceptions are thrown

Reproduces on: 2019.3.4f1, 2020.1.0b1, 2020.2.0a2
Couldn't test on 2017.4 (package is not supported), 2018.4, 2019.3 (missing 'Texture2D.GetPixelData' method, which is used in user's project)
Reproducible with package versions: 1.2.1, 1.3.0-preview.4

  1. Resolution Note:

    In this case, the user was using a modified version of the Mathematics version, which is not supported. Burst has deep hooks into Unity.Mathematics to replace the methods defined in there with custom, highly optimized, versions.

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.