Search Issue Tracker
Won't Fix
Won't Fix in 1.0.X
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}
Comments (1)
-
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Package signature validation unexpectedly return an invalid signature status if the validation check is done after the code signing certificate validaty range has passed
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
Resolution Note:
There are no fixes planned for this Bug
Resolution Note (1.0.X):
There are no fixes planned for this Bug