#Failed to get IL name for parameter entities

1 messages · Page 1 of 1 (latest)

fading rampart
#

The following method causes this error

error SGIL: Failed to get IL name for parameter entities

        private unsafe bool CheckEntitiesOutOfOrder(
            ref SystemState state,
            ArchetypeChunk chunk,
            Entity* entities,
            BufferAccessor<LinkedEntityGroup> linkedEntityGroupAccessor,
            EntityStorageInfoLookup entityStorageInfoLookup,
            ref ComponentTypeHandle<ChunkLinkedEntity> chunkOwnerHandle)
        {
             // We only need to look at the first entity as all linked entities will be in the correct chunk, but potentially out of order
             var linkedEntityGroup = linkedEntityGroupAccessor[0].AsNativeArray().Reinterpret<Entity>();
             foreach (var entity in linkedEntityGroup)
             {
                 if (!state.EntityManager.HasComponent<ChunkGroupID>(entity)) // This line causes it
                 {
                     continue;
                 }
                 
                 // .. rest of loop commented out
             }

            return false;
        }```

It's called from main thread ISystem
Full source code here: https://gitlab.com/tertle/com.bovinelabs.core/-/blob/master/BovineLabs.Core.Extensions/Chunks/ChunkLinkOrderSystem.cs
Code is from my previous virtual chunk experiments but not in actual use right now, just updating API.
@slender falcon maybe?
#

Switching it to ref Entity fixes issue

#

Seemingly coming from GetMethodAndParamsAsString in SymbolExtensions

#

not handling pointers maybe

slender falcon
#

i have no idea, maybe @wraith laurel ?

wraith laurel
#

Which entities version? Sounds like something I fixed in master 😅

#

Oh wait, that's latest, that's the error I added in case I got anything wrong o.o Wild that pointers was forgotten.. That means somehow we don't have a single method replaced with a pointer in our code base 😅