Search Issue Tracker
Fixed
Fixed in 2022.3.57f1, 6000.0.35f1, 6000.1.0b3, 7000.0.0a17
Votes
8
Found in
2022.3.52f1
6000.0.26f1
6000.1.0a3
Issue ID
UUM-87193
Regression
No
SubScene baking breaks with the "SelectManagedFn failed to cast Unity.Burst.FunctionPointer" warning when reloading domain with multiple workers
Reproduction steps:
1. Open the attached “repro_IN-88591“ project
2. Open the “Assets/Scenes/SampleScene.unity“ Scene
3. In the Editor window overlay, select “REPRODUCE THE BUG → EXECUTE“
4. Observe the Console
Expected result: No warnings appear
Actual result: “[Worker<…>] SelectManagedFn failed to cast Unity.Burst.FunctionPointer`1[Unity.Entities.SystemBaseRegistry+ForwardingFunc]. BurstFn: <…>.Forwarding Func: Unity.Entities.SystemBaseRegistry+ForwardingFunc. Falling back to managed delegate. Please report this as a bug using Help > Report a Bug...“ warning appears
Reproducible with: 1.8.18 (2022.3.52f1, 6000.0.27f1, 6000.1.0a4)
Couldn’t test with: 1.8.18 (2021.3.46f1) - Not able to launch the project due to compilation errors while downgrading
Reproducible on: Windows 10 (22H2)
Not reproducible on: No other environments tested
Notes:
* If the warning doesn’t appear, repeat the 3rd step
* The reproduction rate varies: reporter’s rate is around 80%, my rate while testing is around 30%
* Reporter’s hardware: Ryzen 9 3900X, RTX 4070 (used core count: 16)
* My hardware: Intel i9-10980HK, RTX 3080 (used core count: 16)
* According to the reporter, to maximize the chance of reproduction, ensure you use a CPU with a high core count
* Make sure that the “Desired Import Worker” count is high in the “Project Settings… -> Editor -> Asset Pipeline”
* According to the reporter, the “Exception thrown during SubScene import: System.InvalidCastException: Specified cast is not valid.“ error sometimes appears instead of the “SelectManagedFn failed to cast Unity.Burst.FunctionPointer“ warning
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
- ListView fails to display items when the source list is cleared and a single element is added
- UI Toolkit ':hover' state remains active when another panel is drawn over the hovered element and Touch input is used
- Unsupported Orient modes can be selected and throw errors when using Strip VFX
- "Tab" key exits the name text field in the VFX Graph tab when renaming the Property
- Shader warnings are thrown when deleting blocks in the Ribbon VFX Graph
Resolution Note (fix version 6000.1.0b3):
Fixed InvalidCastExceptions occasionally being thrown by entity workers after a domain reload.
Resolution Note (fix version 6000.0.35f1):
Fixed InvalidCastExceptions occasionally being thrown by entity workers after a domain reload.
Resolution Note (fix version 2022.3.57f1):
Fixed InvalidCastExceptions occasionally being thrown by entity workers after a domain reload.