Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

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

Discussion in 'Data Oriented Technology Stack' started by Enzi, Aug 4, 2019.

  1. Enzi

    Enzi

    Joined:
    Jan 28, 2013
    Posts:
    211
    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.GenericNetworkDriver`2:AppendPacket(NetworkEndPoint, UdpCHeader, Int32) (at F:/unity2019-projects/WorldOfLoot/com.unity.transport/Runtime/NetworkDriver.cs:1035)
    Unity.Networking.Transport.ReceiveJob`1:Execute() (at F:/unity2019-projects/WorldOfLoot/com.unity.transport/Runtime/NetworkInterface.cs:185)
    Unity.Jobs.JobStruct`1:Execute(ReceiveJob`1&, 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:
    Code (CSharp):
    1. {
    2.   "dependencies": {
    3.     "com.unity.2d.sprite": "1.0.0",
    4.     "com.unity.2d.tilemap": "1.0.0",
    5.     "com.unity.burst": "1.1.2",
    6.     "com.unity.entities": "file:F:/unity2019-projects/WorldOfLoot/ExternalPackages/com.unity.entities_0.1.0-preview",
    7.     "com.unity.ide.rider": "1.0.8",
    8.     "com.unity.ide.visualstudio": "1.0.11",
    9.     "com.unity.ide.vscode": "1.0.7",
    10.     "com.unity.rendering.hybrid": "0.1.0-preview",
    11.     "com.unity.test-framework": "1.0.18",
    12.     "com.unity.test-framework.performance": "1.2.5-preview",
    13.     "com.unity.textmeshpro": "2.0.1",
    14.     "com.unity.transport": "file:../../com.unity.transport",
    15.     "com.unity.ucg.matchmaking": "file:F:/unity2019-projects/WorldOfLoot/ExternalPackages/com.unity.ucg.matchmaking",
    16.     "com.unity.ucg.usqp": "file:F:/unity2019-projects/WorldOfLoot/ExternalPackages/com.unity.ucg.usqp",
    17.     "com.unity.ugui": "1.0.0",
    18.     "com.unity.modules.ai": "1.0.0",
    19.     "com.unity.modules.androidjni": "1.0.0",
    20.     "com.unity.modules.animation": "1.0.0",
    21.     "com.unity.modules.assetbundle": "1.0.0",
    22.     "com.unity.modules.audio": "1.0.0",
    23.     "com.unity.modules.cloth": "1.0.0",
    24.     "com.unity.modules.director": "1.0.0",
    25.     "com.unity.modules.imageconversion": "1.0.0",
    26.     "com.unity.modules.imgui": "1.0.0",
    27.     "com.unity.modules.jsonserialize": "1.0.0",
    28.     "com.unity.modules.particlesystem": "1.0.0",
    29.     "com.unity.modules.physics": "1.0.0",
    30.     "com.unity.modules.physics2d": "1.0.0",
    31.     "com.unity.modules.screencapture": "1.0.0",
    32.     "com.unity.modules.terrain": "1.0.0",
    33.     "com.unity.modules.terrainphysics": "1.0.0",
    34.     "com.unity.modules.tilemap": "1.0.0",
    35.     "com.unity.modules.ui": "1.0.0",
    36.     "com.unity.modules.uielements": "1.0.0",
    37.     "com.unity.modules.umbra": "1.0.0",
    38.     "com.unity.modules.unityanalytics": "1.0.0",
    39.     "com.unity.modules.unitywebrequest": "1.0.0",
    40.     "com.unity.modules.unitywebrequestassetbundle": "1.0.0",
    41.     "com.unity.modules.unitywebrequestaudio": "1.0.0",
    42.     "com.unity.modules.unitywebrequesttexture": "1.0.0",
    43.     "com.unity.modules.unitywebrequestwww": "1.0.0",
    44.     "com.unity.modules.vehicles": "1.0.0",
    45.     "com.unity.modules.video": "1.0.0",
    46.     "com.unity.modules.vr": "1.0.0",
    47.     "com.unity.modules.wind": "1.0.0",
    48.     "com.unity.modules.xr": "1.0.0"
    49.   },
    50.   "testables": [
    51.     "com.unity.transport"
    52.   ]
    53. }
    54.  
    No idea what is going on.
    I'm reverting back to 2019.3a5 where it still works. I hope someone can figure this out.
     
  2. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    1,707
    Did you clear your library after updating
     
  3. Enzi

    Enzi

    Joined:
    Jan 28, 2013
    Posts:
    211
    Yes, full import with deleting the library folder.
     
  4. GilCat

    GilCat

    Joined:
    Sep 21, 2013
    Posts:
    433
    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?
     
  5. pal_trefall

    pal_trefall

    Joined:
    Feb 5, 2019
    Posts:
    40
    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).