Search Issue Tracker
By Design
Votes
0
Found in [Package]
1.4.2
Issue ID
1296669
Regression
No
[Burst] InvalidOperationException is thrown when Burst package is upgraded from 1.4.1 to 1.4.2
On upgrading Burst package from 1.4.1 to 1.4.2, InvalidOperationExceptions are thrown. Refer the attached video
Steps to reproduce:
1) Create a new project
2) Window > Package Manager > Install Burst 1.4.1
3) Upgrade Burst to 1.4.2
Actual result: InvalidOperationException is thrown in console
Expected result: No errors should be thrown in console
Occurring in: 2021.1.0a8, 2020.2.0b14, 2020.1.9f1, 2019.412f1 when Package version is upgraded to 1.4.2
Working fine in: 2020.2.0b14, 2020.1.9f1, 2019.412f1 when Package version is upgraded to 1.4.1
Note: For 2021.1 only 1.4.2 package version is available. Bug can be reproduced by installing Animation rigging first and then upgrading Burst to 1.4.2 as a dependency
Environment: Both Windows and Mac
Stack Trace:
System.InvalidOperationException: Burst failed to compile the function pointer `Int32 DoGetCSRTrampoline()`
at Unity.Burst.BurstCompiler.Compile[T] (T delegateObj, System.Boolean isFunctionPointer) [0x0014f] in D:\Unity\New Unity Project\Library\PackageCache\com.unity.burst@1.4.1\Runtime\BurstCompiler.cs:227
at Unity.Burst.BurstCompiler.CompileFunctionPointer[T] (T delegateMethod) [0x00006] in D:\Unity\New Unity Project\Library\PackageCache\com.unity.burst@1.4.1\Runtime\BurstCompiler.cs:119
at Unity.Burst.Intrinsics.X86.CompileManagedCsrAccessors () [0x00000] in D:\Unity\New Unity Project\Library\PackageCache\com.unity.burst@1.4.1\Runtime\Intrinsics\x86\Csr.cs:245
at Unity.Burst.Editor.BurstLoader..cctor () [0x00161] in D:\Unity\New Unity Project\Library\PackageCache\com.unity.burst@1.4.1\Editor\BurstLoader.cs:204
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes (System.Type[])
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
- Uninitialized variable warning appears in the Inspector of a custom shader when the variable is initialized
- "Failed creating toolbar element from ID..." error is thrown when resetting the Scene view Overlay layout while an Asset Transformer Toolbox overlay is active
- Entity ID for Font Assets is serialized twice which throws an error when using Debug Inspector
- Play Mode can be entered when disabling Adaptive Performance and pressing either the Play Mode button or the keyboard shortcut to enter Play Mode before recompilation leading to errors and warnings thrown
- Parent ListView element also becomes selected when inner ListView element is selected
Resolution Note:
An editor restart must always follow a burst update due to the way burst works today. During the update the user should be asked by a popup window to restart the editor and thus, all the subsequent exceptions should be ignored and they will be cleared out after restart.