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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- 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
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
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.