AtomicSafetyNode has either been corrupted or is being accessed on a job which is not allowed.

I was upgrading my project from 2019.3a5 to a11. Got errors Renderpipeline missing, the usual stuff when upgrading so I updated Entities and dependencies to the latest version.
Errors went away but while running the game I get his error every frame:

AtomicSafetyNode has either been corrupted or is being accessed on a job which is not allowed.
Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle:SetAllowSecondaryVersionWriting_Injected(AtomicSafetyHandle&, Boolean)
Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle:SetAllowSecondaryVersionWriting(AtomicSafetyHandle, Boolean)
Unity.Networking.Transport.DataStreamReader:.ctor(DataStreamWriter, Int32, Int32) (at F:/unity2019-projects/WorldOfLoot/com.unity.transport/Runtime/DataStream.cs:705)
Unity.Networking.Transport.GenericNetworkDriver2:AppendPacket(NetworkEndPoint, UdpCHeader, Int32) (at F:/unity2019-projects/WorldOfLoot/com.unity.transport/Runtime/NetworkDriver.cs:1035) Unity.Networking.Transport.ReceiveJob1:Execute() (at F:/unity2019-projects/WorldOfLoot/com.unity.transport/Runtime/NetworkInterface.cs:185)
Unity.Jobs.JobStruct1:Execute(ReceiveJob1&, IntPtr, IntPtr, JobRanges&, Int32)
Unity.Jobs.JobHandle:ScheduleBatchedJobsAndComplete(JobHandle&)
Unity.Jobs.JobHandle:Complete()
Unity.Entities.ComponentJobSafetyManager:CompleteWriteDependencyNoChecks(Int32) (at F:/unity2019-projects/WorldOfLoot/ExternalPackages/com.unity.entities_0.1.0-preview/Unity.Entities/ComponentJobManager.cs:356)
Unity.Entities.ComponentJobSafetyManager:CompleteDependenciesNoChecks(Int32*, Int32, Int32*, Int32) (at F:/unity2019-projects/WorldOfLoot/ExternalPackages/com.unity.entities_0.1.0-preview/Unity.Entities/ComponentJobManager.cs:203)
Unity.Entities.ComponentSystemBase:CompleteDependencyInternal() (at F:/unity2019-projects/WorldOfLoot/ExternalPackages/com.unity.entities_0.1.0-preview/Unity.Entities/ComponentSystem.cs:730)
Unity.Entities.ComponentSystem:BeforeOnUpdate() (at F:/unity2019-projects/WorldOfLoot/ExternalPackages/com.unity.entities_0.1.0-preview/Unity.Entities/ComponentSystem.cs:784)
Unity.Entities.ComponentSystem:InternalUpdate() (at F:/unity2019-projects/WorldOfLoot/ExternalPackages/com.unity.entities_0.1.0-preview/Unity.Entities/ComponentSystem.cs:822)
Unity.Entities.ComponentSystemBase:Update() (at F:/unity2019-projects/WorldOfLoot/ExternalPackages/com.unity.entities_0.1.0-preview/Unity.Entities/ComponentSystem.cs:315)
Unity.Entities.ComponentSystemGroup:OnUpdate() (at F:/unity2019-projects/WorldOfLoot/ExternalPackages/com.unity.entities_0.1.0-preview/Unity.Entities/ComponentSystemGroup.cs:595)
ClientSimulationSystemGroup:OnUpdate() (at Assets/Code/NetCode/ClientServerWorld.cs:118)
Unity.Entities.ComponentSystem:InternalUpdate() (at F:/unity2019-projects/WorldOfLoot/ExternalPackages/com.unity.entities_0.1.0-preview/Unity.Entities/ComponentSystem.cs:831)
Unity.Entities.ComponentSystemBase:Update() (at F:/unity2019-projects/WorldOfLoot/ExternalPackages/com.unity.entities_0.1.0-preview/Unity.Entities/ComponentSystem.cs:315)
Unity.Entities.ComponentSystemGroup:OnUpdate() (at F:/unity2019-projects/WorldOfLoot/ExternalPackages/com.unity.entities_0.1.0-preview/Unity.Entities/ComponentSystemGroup.cs:595)
Unity.Entities.ComponentSystem:InternalUpdate() (at F:/unity2019-projects/WorldOfLoot/ExternalPackages/com.unity.entities_0.1.0-preview/Unity.Entities/ComponentSystem.cs:831)
Unity.Entities.ComponentSystemBase:Update() (at F:/unity2019-projects/WorldOfLoot/ExternalPackages/com.unity.entities_0.1.0-preview/Unity.Entities/ComponentSystem.cs:315)
Unity.Entities.ComponentSystemGroup:OnUpdate() (at F:/unity2019-projects/WorldOfLoot/ExternalPackages/com.unity.entities_0.1.0-preview/Unity.Entities/ComponentSystemGroup.cs:595)
Unity.Entities.ComponentSystem:InternalUpdate() (at F:/unity2019-projects/WorldOfLoot/ExternalPackages/com.unity.entities_0.1.0-preview/Unity.Entities/ComponentSystem.cs:831)
Unity.Entities.ComponentSystemBase:Update() (at F:/unity2019-projects/WorldOfLoot/ExternalPackages/com.unity.entities_0.1.0-preview/Unity.Entities/ComponentSystem.cs:315)
Unity.Entities.DummyDelegateWrapper:TriggerUpdate() (at F:/unity2019-projects/WorldOfLoot/ExternalPackages/com.unity.entities_0.1.0-preview/Unity.Entities/ScriptBehaviourUpdateOrder.cs:144)

And the package manifest file:

{
  "dependencies": {
    "com.unity.2d.sprite": "1.0.0",
    "com.unity.2d.tilemap": "1.0.0",
    "com.unity.burst": "1.1.2",
    "com.unity.entities": "file:F:/unity2019-projects/WorldOfLoot/ExternalPackages/com.unity.entities_0.1.0-preview",
    "com.unity.ide.rider": "1.0.8",
    "com.unity.ide.visualstudio": "1.0.11",
    "com.unity.ide.vscode": "1.0.7",
    "com.unity.rendering.hybrid": "0.1.0-preview",
    "com.unity.test-framework": "1.0.18",
    "com.unity.test-framework.performance": "1.2.5-preview",
    "com.unity.textmeshpro": "2.0.1",
    "com.unity.transport": "file:../../com.unity.transport",
    "com.unity.ucg.matchmaking": "file:F:/unity2019-projects/WorldOfLoot/ExternalPackages/com.unity.ucg.matchmaking",
    "com.unity.ucg.usqp": "file:F:/unity2019-projects/WorldOfLoot/ExternalPackages/com.unity.ucg.usqp",
    "com.unity.ugui": "1.0.0",
    "com.unity.modules.ai": "1.0.0",
    "com.unity.modules.androidjni": "1.0.0",
    "com.unity.modules.animation": "1.0.0",
    "com.unity.modules.assetbundle": "1.0.0",
    "com.unity.modules.audio": "1.0.0",
    "com.unity.modules.cloth": "1.0.0",
    "com.unity.modules.director": "1.0.0",
    "com.unity.modules.imageconversion": "1.0.0",
    "com.unity.modules.imgui": "1.0.0",
    "com.unity.modules.jsonserialize": "1.0.0",
    "com.unity.modules.particlesystem": "1.0.0",
    "com.unity.modules.physics": "1.0.0",
    "com.unity.modules.physics2d": "1.0.0",
    "com.unity.modules.screencapture": "1.0.0",
    "com.unity.modules.terrain": "1.0.0",
    "com.unity.modules.terrainphysics": "1.0.0",
    "com.unity.modules.tilemap": "1.0.0",
    "com.unity.modules.ui": "1.0.0",
    "com.unity.modules.uielements": "1.0.0",
    "com.unity.modules.umbra": "1.0.0",
    "com.unity.modules.unityanalytics": "1.0.0",
    "com.unity.modules.unitywebrequest": "1.0.0",
    "com.unity.modules.unitywebrequestassetbundle": "1.0.0",
    "com.unity.modules.unitywebrequestaudio": "1.0.0",
    "com.unity.modules.unitywebrequesttexture": "1.0.0",
    "com.unity.modules.unitywebrequestwww": "1.0.0",
    "com.unity.modules.vehicles": "1.0.0",
    "com.unity.modules.video": "1.0.0",
    "com.unity.modules.vr": "1.0.0",
    "com.unity.modules.wind": "1.0.0",
    "com.unity.modules.xr": "1.0.0"
  },
  "testables": [
    "com.unity.transport"
  ]
}

No idea what is going on.
I’m reverting back to 2019.3a5 where it still works. I hope someone can figure this out.

Did you clear your library after updating

Yes, full import with deleting the library folder.

RenderPipeline used to be part of UnityEngine.Experimental.Rendering which is now gone. So i suppose you must use RenderPipeline from UnityEngine.Rendering.
I’m struggling it myself the get the RenderPipeline instance that used to be static and now must be grabbed from somewhere else.
@Enzi did you solved this for Unity 2019.3.x Alpha?

I just updated the Asteroid sample to 2019.3.0a12 now and get the same issue. I updated to latest entity/burst/jobs packages and went through and updated the NativeQueue.Concurrent to ParallelWrite in transport module, and removed the matchmaking stuff, so that just the Asteroids sample is left. Hopefully they’ll release a new version on github soon (hopefully before Unite).

1 Like