#[Bug] 1.3.9 TypeManager ILPP outputs incorrect component size if it contains GCHandle (IN-94090)

1 messages · Page 1 of 1 (latest)

left iron
#

Eg
struct BadComponent : IComponentData { GCHandle v1; }

has SizeOf 8 bytes but TypeManager handles it as 4 bytes. Resulting in all kind of issues eg when aliasing chunk memory with NativeArray.

IN-94090

Related Issue: DISABLE_TYPEMANAGER_ILPP define has compile errors
Related Issue: DISABLE_TYPEMANAGER_ILPP doesn't work even after fixing compile issues

terse wren
#

also get hit with a simpler case:
[Worker0] Exception thrown during SubScene import: System.ArgumentException: Provided data size=24 for type NZSpellCasting.SpellElementInfoBlobReference does not match expected SizeInChunk=16. (This should never happen; please use "Help -> Report A Bug" to inform the DOTS team)

struct is a BlobAssetReference<T> and a Guid. So 8 + 16 = 24

twin oriole
#

I have a fix coming for the disable define not working. Will investigate the size issues in the morning

terse wren
#

awesome UnityChanThumbsUp