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
- Any small change in UI Builder Inspector refreshes Editor Inspector
- Inaccurate Box Collider boundaries on a rotated child Cube when the parent GameObject Scale is non-uniform
- [Android] "SHADOWS_SCREEN" set as shader Keyword when no "_ShadowMapTexture" is bound leads to freeze on a build on some Mali GPU devices
- The global scene list is overridden in a project built with command line when the Override Global Scene List setting is disabled in the build profile
- Global Scenes are not included in the Build when building multiple Build Profiles at the same time
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.