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
- "Rendering Debugger" displays incorrect overdraw count when using "Unlit/Texture" shader
- Scene and Game views break when the Editor window is snapped with the Microsoft PowerToys
- Materials do not transfer texture when the "Shader" parameter is changed from "Unlit/Texture" to "Universal Render Pipeline/Unlit"
- [Linux][Vulkan] Crash when opening searchable dialog
- The "Shader error in 'AE/Leaves': "Undefined punctual shadow filter algorithm"" error appears when build completes on a specific project
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.