#[Bug] Memory corruption in EntityDiffer BlobAsset handling

1 messages · Page 1 of 1 (latest)

grim lava
grim lava
#

[Bug] Memory corruption in EntityDiffer BlobAsset handling

forest glen
#

Thank you for the report; I've flagged a teammate to swing by and gather some additional information.

grim lava
#

Repro:

  • create a project with com.unity.entities, com.unity.entities.graphics and com.unity.physics
  • launch the editor with '-debugallocator -systemallocator'
  • create a subscene and drag a 3D Object -> Cube into it; must run live conversion
  • scale the object a few times
    -> NullReferenceException due to non-allocated memory access in BlobAssetPtr.Hash, called from EntityDiffer.cs:503 (keyValue.Value.Hash)

We encountered this due to the deleted BlobAsset getting readded to the world in some cases.

forest glen
#

@grim lava Apologies for the bureaucracy, but can you file this as a bug and post the IN-xxx number here once you've got one? (We're already working on it in the meantime, but it's helpful to have a bug ticket to track along the way)