Search Issue Tracker
Active
Under Consideration for 1.2.X, 7000.0.X
Votes
0
Found in [Package]
1.0.1 - Entities
1.2.X
7000.0.0a1
Issue ID
ECSB-461
Regression
No
[Forum] InvalidOperationException when cloning a CollisionWorld
I'm upgrading to the 1.0 version and I clone the collision world so I can hand it off to a rather long-running job that uses it for a bunch of things. I'm trying to do this with the following inside a SystemBase system...
Code (CSharp):
#
RefRW<PhysicsWorldSingleton> physicsWorldSingleton = SystemAPI.GetSingletonRW<PhysicsWorldSingleton>();
# _clonedWorld = physicsWorldSingleton.ValueRW.PhysicsWorld.CollisionWorld.Clone();
Error:
{code:java}
InvalidOperationException: The previously scheduled job BroadphaserepareStaticBodyDataJob writes to the UNKNOWN_OBJECT_TYPE PrepareStaticBodyDataJob.FiltersOut. You must call JobHandle.Complete() on the job BroadphaserepareStaticBodyDataJob, before you can read from the UNKNOWN_OBJECT_TYPE safely.
Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle.CheckReadAndThrowNoEarlyOut (Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle handle) (at <bdd20210bb844b2e88e1149ea99da5ef>:0)
Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle.CheckReadAndThrow (Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle handle) (at <bdd20210bb844b2e88e1149ea99da5ef>:0)
Unity.Collections.NativeArray`1[T]..ctor (Unity.Collections.NativeArray`1[T] array, Unity.Collections.Allocator allocator) (at <bdd20210bb844b2e88e1149ea99da5ef>:0)
Unity.Physics.Broadphase+Tree.Clone () (at Library/PackageCache/com.unity.physics@1.0.0-pre.15/Unity.Physics/Collision/World/Broadphase.cs:443)
Unity.Physics.Broadphase.Clone () (at Library/PackageCache/com.unity.physics@1.0.0-pre.15/Unity.Physics/Collision/World/Broadphase.cs:58)
Unity.Physics.CollisionWorld.Clone () (at Library/PackageCache/com.unity.physics@1.0.0-pre.15/Unity.Physics/Collision/World/CollisionWorld.cs:118)
StratheonMin.Client.TypeSystem.Plans.ECS.Systems.ConnectionValidatorSystem.LaunchValidationJob () (at Assets/Assemblies/StratheonMin.Client/TypeSystem/Plans/ECS/Systems/ConnectionValidatorSystem.cs:112)
StratheonMin.Client.TypeSystem.Plans.ECS.Systems.ConnectionValidatorSystem.InternalOnUpdate (Unity.Jobs.JobHandle inputDeps) (at Assets/Assemblies/StratheonMin.Client/TypeSystem/Plans/ECS/Systems/ConnectionValidatorSystem.cs:83)
StratheonMin.Client.PlanBuilder.ECS.Systems.ClientConnectionValidatorSystem.InternalOnUpdate (Unity.Jobs.JobHandle inputDeps) (at Assets/Assemblies/StratheonMin.Client/PlanBuilder/ECS/Systems/ClientConnectionValidatorSystem.cs:35)
StratheonMin.Client.TypeSystem.Plans.ECS.Systems.BasePlanSystem.CallInternalOnOpdate () (at Assets/Assemblies/StratheonMin.Client/TypeSystem/Plans/ECS/Systems/BasePlanSystem.cs:33)
StratheonMin.Client.TypeSystem.Plans.ECS.Systems.BasePlanSystem.OnUpdate () (at Assets/Assemblies/StratheonMin.Client/TypeSystem/Plans/ECS/Systems/BasePlanSystem.cs:28)
Unity.Entities.SystemBase.Update () (at Library/PackageCache/com.unity.entities@1.0.0-pre.15/Unity.Entities/SystemBase.cs:428)
Unity.Entities.ComponentSystemGroup.UpdateAllSystems () (at Library/PackageCache/com.unity.entities@1.0.0-pre.15/Unity.Entities/ComponentSystemGroup.cs:670)
UnityEngine.Debug:LogException(Exception)
Unity.Debug:LogException(Exception) (at Library/PackageCache/com.unity.entities@1.0.0-pre.15/Unity.Entities/Stubs/Unity/Debug.cs:19)
Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at Library/PackageCache/com.unity.entities@1.0.0-pre.15/Unity.Entities/ComponentSystemGroup.cs:675)
Unity.Entities.ComponentSystemGroup:OnUpdate() (at Library/PackageCache/com.unity.entities@1.0.0-pre.15/Unity.Entities/ComponentSystemGroup.cs:628)
Unity.Entities.SystemBase:Update() (at Library/PackageCache/com.unity.entities@1.0.0-pre.15/Unity.Entities/SystemBase.cs:416)
Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at Library/PackageCache/com.unity.entities@1.0.0-pre.15/Unity.Entities/ComponentSystemGroup.cs:670)
Unity.Entities.ComponentSystemGroup:OnUpdate() (at Library/PackageCache/com.unity.entities@1.0.0-pre.15/Unity.Entities/ComponentSystemGroup.cs:628)
Unity.Entities.SystemBase:Update() (at Library/PackageCache/com.unity.entities@1.0.0-pre.15/Unity.Entities/SystemBase.cs:416)
Unity.Entities.DummyDelegateWrapper:TriggerUpdate() (at Library/PackageCache/com.unity.entities@1.0.0-pre.15/Unity.Entities/ScriptBehaviourUpdateOrder.cs:526) {code}
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- The letter "i" is incorrectly formatted into “İ" when capitalised if the devices Region is set to "Turkish (Turkiye)"
- [VFX] "ArgumentException" error thrown when trying to add/create Curl Noise Node
- Properties of custom visual elements fail to initialize when inside of template that has been renamed
- HDR output fails to render in Player when using Direct3D11 in Exclusive Fullscreen mode
- Crash on block_merge_next when moving a GameObject with a specific Particle System Component and Rate Over Distance is set to above 0 in the Emission tab
Emily60
Jun 14, 2023 09:18
Hi everyone I am Emily Naomi wanna give a big thanks to this wonderful psychic for bringing my husband back to me… I never really believed in magic spells or anything spiritual but a trusted friend opened my eyes to the truth about life. My marriage was heading to divorce a few months ago. I was so confused and devastated with no clue or help on how to prevent it, till I was introduced to this psychic Priest Ray that did a love spell and broke every spiritual distraction from my marriage. A day later my husband started showing me love and care even better than it used to be, he’s ready to talk things through and find ways for us to stay happy. It’s such a miracle that my marriage can be saved so quickly without stress. You can also contact him for help by email psychicspellshrine@usako. net