Posted this in Physics post but I’m not sure it’s physics related so making a separate post here.
Getting a burst exception from the Physics Package after upgrading to the Entities 0.1 package.
*\Library\PackageCache\com.unity.entities@0.1.0-preview\Unity.Entities\Blobs.cs(291,13): error: The IL opcode instruction `IL_0001: ldarga` is not supported by burst
at Unity.Entities.BlobAssetReference`1<Unity.Physics.Collider>.op_Inequality(Unity.Entities.BlobAssetReference`1<Unity.Physics.Collider> lhs, Unity.Entities.BlobAssetReference`1<Unity.Physics.Collider> rhs) (at *\Library\PackageCache\com.unity.entities@0.1.0-preview\Unity.Entities\Blobs.cs:291)
at BovineLabs.Vision.Jobs.CheckObservationsJob.GetAABB(Unity.Physics.Aabb* $___struct_ret, BovineLabs.Vision.Jobs.CheckObservationsJob* this, int i, Unity.Collections.NativeArray`1<Unity.Physics.PhysicsCollider>* colliders, Unity.Collections.NativeArray`1<Unity.Rendering.WorldRenderBounds>* bounds, Unity.Mathematics.float3 position, Unity.Mathematics.quaternion rotation)
However the offending code appears to be in the entities Blobs.cs file, and is kind of the most mundane of code so really not sure what is going on.
public static bool operator !=(BlobAssetReference<T> lhs, BlobAssetReference<T> rhs)
{
return lhs.m_data.m_Ptr != rhs.m_data.m_Ptr;
}
This only happens every 2nd time I enter play mode. Every alternate time it works without exception. I have cleared the Library folder and done a full re-import after updating and issue still persisted.