#[1.0.0-pre.65] System.ArgumentException: Cannot exceed budget of 16777216 in BlockAllocator

1 messages · Page 1 of 1 (latest)

tepid maple
#

Currently my project is completely broken caused by this error. I suddenly get this error after upgraded to 1.0.0-pre.65 and I checked the chunk still have a lot of space left.

astral quarry
#

i have a suspicion we'll need a repro

scenic current
#

Do you get this error immediately at load time, or entering playmode? Or after you've been running for a while?

upper wagon
#

These allocations relate to the number of Archetypes and EntityQueries that have been created, and not to ECS Chunks. When there is a really large number of tag components, like 15 or 20, and every possible combination is created, this limit can be hit.

tepid maple
# scenic current Do you get this error immediately at load time, or entering playmode? Or after y...

This error is ady logged at baking. Basically I believe it's baker bug at pre.65 since I didn't have any issue at pre.47. I checked the chunk at pre.47. that it's just consume 1.4KB at chunk which I dun think I really bake a lot of heavy components into entity. Anyway I just hack fix the issue by removing game object reference at authoring baker meaning that it won't bake to become entity prefab and then reference the entity prefab to the entity. It's really weird that only this entity has issue that I have no idea why like that.

tepid maple
#

🥲 Recently I keep getting this error again. Not really sure yet but looks like now there's archetype limit or it's Entities bug?

astral quarry
#

yes, it's a poorly-messaged limit on the total number of archetypes

late basin
tepid maple
late basin
#

Oh yeah I have no idea how you could possibly hit archetype cap during baking

tepid maple
late basin
#

it should be 16MB worth of archetypes

#

usually around 10-12k from memory

tepid maple
late basin
#

yes 16MB is allocated for the archetype storage

tepid maple
#

I thought the only limitation is 16KB per chunk lol

late basin
#
entities->m_ArchetypeChunkAllocator = new BlockAllocator(AllocatorManager.Persistent, 16 * 1024 * 1024); // 16MB should be enough```
tepid maple
#

16MB should be enough this

late basin
#

it should be ^^

tepid maple
#

sadok Not enough for me

#

Anyway I forced to slim down archetype then

tepid maple
#

@astral quarry Any plan to bump archetype memory size to more than 16MB to maybe 32MB? Currently due to default netcode design, it's too easy to increase a lot of different archetype. I'm not sure netcode team will improve this design or not.

astral quarry
#

not for 1.0, but there are plans to clean up unused archetypes (maybe even active dev, not sure)

tepid maple
astral quarry
#

i believe that's the idea anyway. i'm not working on it myself so can't say for sure