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
- Long Property names are not truncated in the Add Property dropdown in the Animation window when the Long Property name does not fit
- [iOS] High CPU load when device keyboard is open
- Selected Animation clip in the Animation window changes when the Domain Reload is triggered
- Animation window scrollbar keeps resetting when the scrollbar width is changed after adding an event
- LocalizationSettings.InitializationOperation hangs when re-entering Play Mode with Domain Reload disabled
Resolution Note:
There are no fixes planned for this Bug
Resolution Note (1.0.X):
There are no fixes planned for this Bug