Search Issue Tracker
Duplicate
Votes
0
Found in [Package]
1.2.4 - Entities
1.3.8 - Entities
1.3.9 - Entities
Issue ID
ECSB-1541
Regression
No
ArgumentException is thrown when using SystemAPI.Query with a generic component type
Reproduction steps:
1. Open the attached “repro.zip” project
2. Open the “Assets/Scenes/SampleScene.unity“ Scene
3. Enter the Play Mode
4. Observe the Console window
Expected result: “adding MarkerComp to GenericComp with value 42” message is displayed
Actual result: “ArgumentException: Unknown Type:MyParam All ComponentType must be known at compile time. For generic components, each concrete type must be registered with [RegisterGenericComponentType].” error is thrown
Reproducible with: 1.2.4 (2022.3.58f1), 1.3.8, 1.3.9 (2022.3.58f1, 6000.0.38f1, 6000.1.0b6, 6000.2.0a4)
Reproducible on: Windows 11
Not reproducible on: No other environment tested
-
Resolution Note:
This has actually been fixed recently in the dev branch and will be part of an upcoming release of the entities package. I validated that the unmodified repro code didn't throw anymore and works as expected.
Duplicate of another internal issue: ECSB-1311: Entities CodeGen throws ArgumentException when querying Generic Component types
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
- Crash on D3D12CommonShader::ApplyGpuProgram when attaching material which samples "_UnityFBInput0" to "Full Screen Pass Renderer Feature" Component
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
- Game view is rendered white when viewing the Editor with HDR display and Post Proccesing is enabled on the Main Camera with 2D URP
- "GetPreferedValue" returns max value when using auto-sizing
This is a duplicate of issue #-1311