Search Issue Tracker
Won't Fix
Won't Fix in 1.0.X
Votes
0
Found in [Package]
1.0.0
Issue ID
ECSB-478
Regression
No
SGICE002 error is logged for the deprecated "TransformAspect" API
How to reproduce:
1. Open the “TransformAspect_Bug“ project
2. When prompted, Enter Safe Mode
3. Observe the Console
Expected result: only the “The type or namespace name 'TransformAspect' could not be found” error is logged
Actual result: “The type or namespace name 'TransformAspect' could not be found” and “This error indicates a bug in the DOTS source generators” errors are logged
Reproduced with: 1.0.8, 1.0.10 (2022.3.2f1)
Reproduced on: Windows 10 (by reporter), Windows 11
Notes:
1. An example of the Script is attached as “DOTSSourceBug.cs”
2. “TransformAspect” API has been removed in Entities Package 1.0.0-pre.65 version
“DOTS source generators” error:
{noformat}Assets\TransformAspectTest.cs(2,1): 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)'{noformat}
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
- Shader Graph Node information is briefly displayed in Graph Inspector when clicking on Category in the Blackboard
- Module installation fails with "Download failed: Validation Failed" errors when using beta.2 Hub version
- JsonConvert conversion fails trying to call GetCallbackMethodsForType when [OnDeserialized] is used in a class
- Shader Graph Category dropdown cannot be expanded/collapsed when clicking on the text
- Different text alignment in the column header in Entities "System" window
Resolution Note:
The TransformAspect API was removed before the final 1.0 release of the Entities package. Unfortunately, there was no time for a gradual deprecation. Attempting to use it in user projects (as in the provided repro project) in 1.0 and beyond is expected to produce the error described in this report.
Resolution Note (1.0.X):
The TransformAspect API was removed before the final 1.0 release of the Entities package. Unfortunately, there was no time for a gradual deprecation. Attempting to use it in user projects (as in the provided repro project) in 1.0 and beyond is expected to produce the error described in this report.