Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
1.2.0-preview.11
Issue ID
1205415
Regression
No
[Burst] Compile errors when reading static readonly values from a struct also containing a static readonly Dictionary
How to reproduce:
1. Open user's attached project (New Unity Project.zip)
2. Open the Burst Inspector window (Jobs -> Burst -> Open Inspector...)
3. Inspect the entry 'TestNamespace.ReproMono.ReproJob - (IJobForEach`1)'
Expected result: Burst succesfully compiles the namespace
Actual result: An error ((0, 0): Burst error BC1054: Unable to resolve type `TKey`) is seen in the Burst Inspector
Reproducible with: 2019.3.0f3, 2020.1.0a17 (Burst preview.11 - 1.2.0)
Could not test with earlier versions due to this project constantly spewing out package errors
Note:
- Reproduced with all 1.2.0 preview versions of Burst, couldn't get the project to work with earlier ones
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
- [URP][Lighting] The skybox doesn't render after changing the settings of the Material when using the URP Render Pipeline
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
Resolution Note:
Burst can't support having managed types in static constructors inside the same class. You need to move the usage of managed class to a different static constructor.