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
- [UI Builder] Viewport's gizmos for Margin and Padding disappear when dragging to modify the value and the cursor leaves the Spacing section
- "Multiplayer Center" window does not reflect changes made in "Other Packages" section
- Crash on D3DKMTOpenResource when capturing with RenderDoc while GPU Skinning is set to GPU(Batched)
- Editing and saving Curve changes in UI Builder window throws multiple errors in the Console
- [UI Builder] Value is not selected when left clicking on Spacing/Border Widget values
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.