Strange errors in editor

Good afternoon. I can’t figure out what the problem is.


NullReferenceException: Object reference not set to an instance of an object
Unity.Entities.EntityCommandBuffer.FixupTemporaryEntitiesInComponentValue (System.Byte* data, System.Int32 count, Unity.Entities.TypeIndex typeIndex, Unity.Entities.ECBSharedPlaybackState& playbackState) (at ./Library/PackageCache/com.unity.entities@1.2.4/Unity.Entities/EntityCommandBuffer.cs:5187)
Unity.Entities.EntityCommandBuffer.FixupBufferContents (Unity.Entities.EntityDataAccess* mgr, Unity.Entities.EntityBufferCommand* cmd, Unity.Entities.Entity entity, Unity.Entities.ECBSharedPlaybackState playbackState) (at ./Library/PackageCache/com.unity.entities@1.2.4/Unity.Entities/EntityCommandBuffer.cs:5240)
Unity.Entities.EntityCommandBuffer+PlaybackProcessor.Cleanup () (at ./Library/PackageCache/com.unity.entities@1.2.4/Unity.Entities/EntityCommandBuffer.cs:4171)
Unity.Entities.EntityCommandBuffer.PlaybackInternal (Unity.Entities.EntityDataAccess* mgr) (at ./Library/PackageCache/com.unity.entities@1.2.4/Unity.Entities/EntityCommandBuffer.cs:3679)
Unity.Entities.EntityCommandBuffer.Playback (Unity.Entities.EntityManager mgr) (at ./Library/PackageCache/com.unity.entities@1.2.4/Unity.Entities/EntityCommandBuffer.cs:3618)
Unity.Entities.BakedEntityData.ApplyBakeInstructions (Unity.Entities.Baking.BakeDependencies& dependencies, Unity.Entities.Baking.IncrementalBakingContext+IncrementalBakeInstructions instructions, Unity.Entities.BlobAssetStore blobAssetStore, Unity.Entities.BakingSettings bakingSettings, Unity.Entities.Baking.GameObjectComponents& components) (at ./Library/PackageCache/com.unity.entities@1.2.4/Unity.Entities.Hybrid/Baking/BakedEntityData.cs:903)
Unity.Entities.BakingSystem.Bake (Unity.Entities.IncrementalBakingChangeTracker changeTracker, UnityEngine.GameObject[] cleanRootGameObjects) (at ./Library/PackageCache/com.unity.entities@1.2.4/Unity.Entities.Hybrid/Baking/BakingSystem.cs:171)
Unity.Entities.BakingUtility.BakeScene (Unity.Entities.World conversionWorld, UnityEngine.SceneManagement.Scene scene, Unity.Entities.BakingSettings settings, System.Boolean incremental, Unity.Entities.IncrementalBakingChangeTracker changeTracker) (at ./Library/PackageCache/com.unity.entities@1.2.4/Unity.Entities.Hybrid/Baking/BakingUtility.cs:84)
Unity.Scenes.Editor.LiveConversionDiffGenerator.Bake (Unity.Entities.BakingUtility+BakingFlags flags) (at ./Library/PackageCache/com.unity.entities@1.2.4/Unity.Scenes.Editor/LiveConversion/LiveConversionDiffGenerator.cs:189)
Unity.Scenes.Editor.LiveConversionDiffGenerator.UpdateLiveConversion (UnityEngine.SceneManagement.Scene scene, Unity.Entities.Hash128 sceneGUID, Unity.Scenes.Editor.LiveConversionDiffGenerator& liveConversionData, Unity.Scenes.LiveConversionMode mode, System.UInt64 globalAsssetDependencyVersion, UnityEditor.GUID configGUID, Unity.Entities.Build.IEntitiesPlayerSettings settingAsset, Unity.Scenes.LiveConversionChangeSet& changes) (at ./Library/PackageCache/com.unity.entities@1.2.4/Unity.Scenes.Editor/LiveConversion/LiveConversionDiffGenerator.cs:431)
Unity.Scenes.Editor.LiveConversionConnection.AddLiveConversionChangeSet (Unity.Scenes.Editor.LiveConversionDiffGenerator& liveConversion, Unity.Entities.Hash128 sceneGUID, System.Collections.Generic.List`1[T] changeSets, System.UInt64 globalArtifactVersion, Unity.Scenes.LiveConversionMode mode) (at ./Library/PackageCache/com.unity.entities@1.2.4/Unity.Scenes.Editor/LiveConversion/LiveConversionConnection.cs:404)
Unity.Scenes.Editor.LiveConversionConnection.Update (System.Collections.Generic.List`1[T] changeSets, Unity.Collections.NativeList`1[T] loadScenes, Unity.Collections.NativeList`1[T] unloadScenes, Unity.Scenes.LiveConversionMode mode) (at ./Library/PackageCache/com.unity.entities@1.2.4/Unity.Scenes.Editor/LiveConversion/LiveConversionConnection.cs:369)
Unity.Scenes.Editor.EditorSubSceneLiveConversionSystem.OnUpdate () (at ./Library/PackageCache/com.unity.entities@1.2.4/Unity.Scenes.Editor/EditorSubSceneLiveConversionSystem.cs:62)
Unity.Entities.SystemBase.Update () (at ./Library/PackageCache/com.unity.entities@1.2.4/Unity.Entities/SystemBase.cs:418)
Unity.Entities.ComponentSystemGroup.UpdateAllSystems () (at ./Library/PackageCache/com.unity.entities@1.2.4/Unity.Entities/ComponentSystemGroup.cs:723)
UnityEngine.Debug:LogException(Exception)
Unity.Debug:LogException(Exception) (at ./Library/PackageCache/com.unity.entities@1.2.4/Unity.Entities/Stubs/Unity/Debug.cs:17)
Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at ./Library/PackageCache/com.unity.entities@1.2.4/Unity.Entities/ComponentSystemGroup.cs:728)
Unity.Entities.ComponentSystemGroup:OnUpdate() (at ./Library/PackageCache/com.unity.entities@1.2.4/Unity.Entities/ComponentSystemGroup.cs:681)
Unity.Scenes.Editor.LiveConversionEditorSystemGroup:OnUpdate() (at ./Library/PackageCache/com.unity.entities@1.2.4/Unity.Scenes.Editor/LiveConversion/LiveConversionEditorSystemGroup.cs:15)
Unity.Entities.SystemBase:Update() (at ./Library/PackageCache/com.unity.entities@1.2.4/Unity.Entities/SystemBase.cs:418)
Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at ./Library/PackageCache/com.unity.entities@1.2.4/Unity.Entities/ComponentSystemGroup.cs:723)
Unity.Entities.ComponentSystemGroup:OnUpdate() (at ./Library/PackageCache/com.unity.entities@1.2.4/Unity.Entities/ComponentSystemGroup.cs:681)
Unity.Entities.InitializationSystemGroup:OnUpdate() (at ./Library/PackageCache/com.unity.entities@1.2.4/Unity.Entities/DefaultWorld.cs:169)
Unity.Entities.SystemBase:Update() (at ./Library/PackageCache/com.unity.entities@1.2.4/Unity.Entities/SystemBase.cs:418)
Unity.Entities.DummyDelegateWrapper:TriggerUpdate() (at ./Library/PackageCache/com.unity.entities@1.2.4/Unity.Entities/ScriptBehaviourUpdateOrder.cs:523)

This error also occurs

System.ArgumentException: An Entity index is higher than the valid range. This means the entity.Index got corrupted or incorrectly assigned and it may not be used.
This Exception was thrown from a job compiled with Burst, which has limited exception support.
0x00007fffa905353e (c3a476b4d2a2747bb1334857fe23cee) burst_Abort_Trampoline
0x00007fffa90525b3 (c3a476b4d2a2747bb1334857fe23cee) Unity.Entities.EntityComponentStore.Exists (at D:/Repo/AoC_Server/Library/PackageCache/com.unity.burst@1.8.13/.Runtime/Library/PackageCache/com.unity.entities@1.2.4/Unity.Entities/EntityComponentStore.cs:1281)
0x00007fffa90523a3 (c3a476b4d2a2747bb1334857fe23cee) Unity.Entities.ChunkDataUtility.ClearMissingReferences (at D:/Repo/AoC_Server/Library/PackageCache/com.unity.burst@1.8.13/.Runtime/Library/PackageCache/com.unity.entities@1.2.4/Unity.Entities/ChunkDataUtility.cs:1540)
0x00007fffa905151e (c3a476b4d2a2747bb1334857fe23cee) Unity.Jobs.IJobParallelForDeferExtensions.JobParallelForDeferProducer`1<Unity.Entities.EntityDiffer.ClearMissingReferencesJob>.Execute(ref Unity.Entities.EntityDiffer.ClearMissingReferencesJob jobData, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, ref Unity.Jobs.LowLevel.Unsafe.JobRanges ranges, int jobIndex) -> void_6855038c00bb18c3b12bc56324771bd3 from Unity.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null (at D:/Repo/AoC_Server/Library/PackageCache/com.unity.burst@1.8.13/.Runtime/Library/PackageCache/com.unity.collections@2.4.3/Unity.Collections/Jobs/IJobParallelForDefer.cs:78)
0x00007fffa905109d (c3a476b4d2a2747bb1334857fe23cee) 11b8b398954e8c317a7f407d437beb5b
0x00007ff7392301b2 (Unity) ExecuteJob
0x00007ff739230524 (Unity) ExecuteJobCopyData
0x00007ff739231315 (Unity) ForwardJobForEachToManagedDefer
0x00007ff73922d6ad (Unity) ujob_execute_job
0x00007ff73922ca2d (Unity) lane_guts
0x00007ff73922f434 (Unity) worker_thread_routine
0x00007ff73945ca66 (Unity) Thread::RunThreadWrapper
0x00007ff882417374 (KERNEL32) BaseThreadInitThunk
0x00007ff8843bcc91 (ntdll) RtlUserThreadStart