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
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
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
- Inspector elements are rendered twice when the script component is added via drag-and-drop while the HideFlags.HideInInspector property is set
- Error "Light baking failed with error code 5 (Convergence data not available while rendering lightmaps)" thrown in Console when generating lighting for specific GameObjects
- Copy and Paste options for an Animation Property value are disabled in the Right click contextual menu
- Asset is not found when searching the Label "NewLabel" in Search Window
- "Compute dispatch: missing texture ID..." and "Compute dispatch: missing UAV ID..." warnings are thrown after changing the platform in High Definition 3D template
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.