Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Unity editor keeps showing errors.

Discussion in 'Entity Component System' started by Bagazi, Aug 23, 2023.

  1. Bagazi

    Bagazi

    Joined:
    Apr 18, 2018
    Posts:
    609
    In the editor environment (without running), continuous errors are being reported, and even after attempting to clean, the issue persists. What could be the reason behind this?



    System.NullReferenceException: Object reference not set to an instance of an object
    This Exception was thrown from a job compiled with Burst, which has limited exception support.
    0x00007ffbc8102e2e (14cfca2127bde30be5e0e0e43668a92) Unity.Entities.JobChunkExtensions.JobChunkProducer`1<Unity.Rendering.FrustumCullingJob>.ExecuteInternal (at E:/Source/Topic/Unity-Ecs/ZombieBrains-1-0-Original/IntroTo1-0/ZombieBrains-Final-v1-0-8/Library/PackageCache/com.unity.burst@1.8.7/.Runtime/Library/PackageCache/com.unity.entities@1.0.8/Unity.Entities/IJobChunk.cs:367)
    0x00007ffbc8101c96 (14cfca2127bde30be5e0e0e43668a92) 81f2919cc243d1899c318116daa432ff
    0x00007ff72b15719c (Unity) ExecuteJob
    0x00007ff72b157504 (Unity) ExecuteJobCopyData
    0x00007ff72b15821f (Unity) ForwardJobForEachToManaged
    0x00007ff72b1543ee (Unity) ujob_execute_job
    0x00007ff72b1538a4 (Unity) lane_guts
    0x00007ff72b156404 (Unity) worker_thread_routine
    0x00007ff72b385667 (Unity) Thread::RunThreadWrapper
    0x00007ffc68d826ad (KERNEL32) BaseThreadInitThunk
    0x00007ffc69a2aa68 (ntdll) RtlUserThreadStart
     
  2. Bagazi

    Bagazi

    Joined:
    Apr 18, 2018
    Posts:
    609
    After restarting Unity, the errors have disappeared. However, I'm curious about the cause of the errors, or if there are any other methods to resolve the issue
     
    Last edited: Aug 23, 2023
  3. elliotc-unity

    elliotc-unity

    Unity Technologies

    Joined:
    Nov 5, 2015
    Posts:
    228
    I suspect it's our bug, but hard to say without more info. Do you have any idea what you did to make it start happening?
     
  4. Bagazi

    Bagazi

    Joined:
    Apr 18, 2018
    Posts:
    609
    I seem to no longer be able to reproduce the previous error, but I need a similar error where I can't use "Clear" to clear it.

    Open the "Basic" project within the following repository: https://github.com/Unity-Technologies/CharacterControllerSamples/tree/master. The issue will occur.

    upload_2023-8-27_14-0-28.png



    Error log:
    InvalidOperationException: The BlobAssetReference is null.
    Unity.Entities.BlobAssetReferenceData.ValidateNotNull () (at ./Library/PackageCache/com.unity.entities@1.0.8/Unity.Entities/Blobs.cs:287)
    Unity.Entities.BlobAssetReference`1[T].get_Value () (at ./Library/PackageCache/com.unity.entities@1.0.8/Unity.Entities/Blobs.cs:444)
    Unity.Physics.CompoundCollider.Create (Unity.Collections.NativeArray`1[T] children) (at ./Library/PackageCache/com.unity.physics@1.0.8/Unity.Physics/Collision/Colliders/CompoundCollider.cs:313)
    Unity.Physics.Authoring.BuildCompoundCollidersBakingSystem+BlobCalculationJobHandleJob.Execute (Unity.Entities.Entity rootEntity, Unity.Physics.Authoring.PhysicsCompoundData& rootBaking, Unity.Physics.PhysicsCollider& rootCollider) (at ./Library/PackageCache/com.unity.physics@1.0.8/Unity.Physics.Hybrid/EntitiesBaking/BakingSystems/BuildCompoundCollidersBakingSystem.cs:173)
    Unity.Physics.Authoring.BuildCompoundCollidersBakingSystem+BlobCalculationJobHandleJob.Execute (Unity.Entities.ArchetypeChunk& chunk, System.Int32 chunkIndexInQuery, System.Boolean useEnabledMask, Unity.Burst.Intrinsics.v128& chunkEnabledMask) (at ./Unity.Entities.SourceGen.JobEntityGenerator/Unity.Entities.SourceGen.JobEntity.JobEntityGenerator/Temp/GeneratedCode/Unity.Physics.Hybrid/BuildCompoundCollidersBakingSystem__JobEntity_4815568970.g.cs:34)