Search Issue Tracker
Won't Fix
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}
-
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
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
- Crash on mono_object_get_class when generating Font Atlas of a specific font file
- GPU usage doubles when a project is running in the background
- Memory usage increases significantly when using Global Search
- [URP] Post-effects using UnsafePass in RenderGraph will stop working when "Anti Aliasing (MSAA)" is enabled
- UI Builders incorrectly informs about a circular dependency when the reference in the second UI Document is removed
Resolution Note:
Leadership requested we don't have any bugs over 1 year old.