Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

0.1 Entities + Burst Exception

Discussion in 'Burst' started by tertle, Jul 30, 2019.

  1. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    3,753
    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.

    Code (CSharp):
    1. *\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
    2. 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)
    3. 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.

    Code (CSharp):
    1.         public static bool operator !=(BlobAssetReference<T> lhs, BlobAssetReference<T> rhs)
    2.         {
    3.             return lhs.m_data.m_Ptr != rhs.m_data.m_Ptr;
    4.         }
    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.
     
    Last edited: Jul 31, 2019
  2. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    3,753
    This only seems to happen in 2019.2.0f1
    I can not replicate this issue in 2019.3.0a10
     
  3. davidv_unity

    davidv_unity

    Unity Technologies

    Joined:
    Nov 14, 2018
    Posts:
    15
    Hi tertle, we were able to reproduce the issue. It is fixed in the next release of burst (version `1.1.2`) which will be available very soon.