Skip to content

Crash on load #35

@JansoD95

Description

@JansoD95

Game crashes on startup during prefab initialisation before loading a city. This appears to be a different issue to the previously reported NullReferenceException in the same method — this time it's hitting unsafe native code and aborting the process.

Game version: 1.5.8f1 (223.cc25)

Stacktrace:

at ExtraLib.Prefabs.UIAssetChildCategoryPrefab:LateInitialize
at Game.Prefabs.PrefabInitializeSystem:LateInitializePrefab
at Game.Prefabs.PrefabInitializeSystem:OnUpdate
at Unity.Entities.BufferHeader:SetCapacity
at Unity.Collections.LowLevel.Unsafe.UnsafeUtility:FreeTracked
→ Native crash

Notes:

  • Crash happens on every load, consistently before the city loads
  • A previous response on this issue indicated the NullReferenceException variant was harmless — this crash is different and is killing the process via a bad free of untracked native memory in BufferHeader.SetCapacity

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions