Unity Issue Tracker - SGICE002 error is thrown when opening the project
Fixed
ECSB-597
SGICE002 error is thrown when opening the project
Package: Entity Component System (ECS)
Fixed
1.0.X
Fixed in the next release of Entities after 1.0.14.
How to reproduce:
1. Open the “IN-49894_repro“ project
2. Observe the Console
Expected result: SGICE002 error is not seen in the Console
Actual result: SGICE002 error is seen in the Console
Reproducible with: 1.0.8, 1.0.11 (2022.3.7f1)
Reproducible on: Windows 10
Error:
Assets\Scripts\Systems\Processing\CreateProductsSystem.cs(18,2): 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.IndexOutOfRangeException: Index was outside the bounds of the array. || at System.Collections.Immutable.ImmutableArray{{1.get_Item(Int32 index) || at Unity.Entities.SourceGen.SystemGenerator.SystemAPI.Query.IdiomaticCSharpForEachDescription.<TryGetQueryDatas>g__TryGetIdiomaticCSharpForEachQueryType|73_0(ITypeSymbol typeSymbol, Location errorLocation) || at Unity.Entities.SourceGen.SystemGenerator.SystemAPI.Query.IdiomaticCSharpForEachDescription.TryGetQueryDatas(ICollection}}1& queryTypes) || at Unity.Entities.SourceGen.SystemGenerator.SystemAPI.Query.IdiomaticCSharpForEachDescription..ctor(SystemDescription systemDescription, QueryCandidate queryCandidate, Int32 numForEachsPreviouslySeenInSystem) || at Unity.Entities.SourceGen.SystemGenerator.SystemAPI.Query.IdiomaticCSharpForEachModule.RegisterChangesInSystem(SystemDescription systemDescription) |-| at Unity.Entities.SourceGen.SystemGenerator.SystemGenerator.Execute(GeneratorExecutionContext context)'
Prioritise and Follow this issue
Have a workaround or additional info about this issue?