Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
1.0.0
Issue ID
ECSB-503
Regression
No
"SGICE002" error is thrown when building a project that includes a Script with a "RequireMatchingQueriesForUpdate" Annotation
How to reproduce:
1. Open the “EntitiesSamples“ project
2. Open the “AutoAuthoring” scene
3. Build the project (File > Build Settings > Build)
4. Observe the Console
Expected result: no “SGICE002” error is logged
Actual result: “SGICE002” error is logged
Reproduced with: 1.0.10, 1.0.11 (2022.3.4f1)
Could not test with: 1.0.8 (2022.3.4f1) (Could not resolve scripting errors)
Reproduced on: Windows 10 (by reporter), Windows 11
Notes:
1. It seems that even in the actual result the build should fail as there are other errors that are not related to the “SGICE002” issue
2. Could not reproduce in a new project by adding the attached “AnnotationTest” Script
“SGICE002” error:
{noformat}Assets\Streaming\PrefabAndSceneReferences\LoadingSystem.cs(6,5): error SGICE002: This error indicates a bug in the DOTS source generators. We'd appreciate a bug report (Help -> Report a Bug...). Thanks! Error message: 'System.NullReferenceException: Object reference not set to an instance of an object. |--| at Unity.Entities.SourceGen.Common.QueryVerification.VerifyQueryTypeCorrectness(SystemDescription systemDescription, Location location, IEnumerable`1 queries, String invokedMethodName) |--| at Unity.Entities.SourceGen.SystemGenerator.SystemAPI.Query.IdiomaticCSharpForEachModule.RegisterChangesInSystem(SystemDescription systemDescription) |--| at Unity.Entities.SourceGen.SystemGenerator.SystemGenerator.Execute(GeneratorExecutionContext context)'{noformat}
-
Eric_Lee
Dec 27, 2023 07:38
I had same trouble on this error report. When I check my script, found keyword "goto" can not use in SystemBase Entities.foreach. Maybe can make some help.
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
- Text Styles are not applied to Underline and Strikethrough when TextMeshPro text without tags is used
- Scene View selection is broken when there are multiple GameObjects that draw Gizmos
- Random Number Operator in a child System only has set limited seeds for particle spawning in a visual effect when entering the Play Mode
- Blender FBX file import triggering incorrect errors
- Overlay UI opaque colors are shown incorrectly in the Player when a HDR display and Linear Color Space are used
Resolution Note:
There are no fixes planned for this Bug