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
- “FMOD failed to set the software format to the custom sample rate…” warnings are thrown as System Sample Rate value is being changed in Audio section of Project Settings window
- VFX Marquee selection does match the visual indicator
- “Invalid AABB aabb” errors are spammed when “Infinity” value is entered in Collider Component fields
- Editor Role does not sync with the MPPM Play Mode Scenario Role when entering Play mode
- Long asset names cause overlap with the “Find” function in search result tabs
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.