-
Notifications
You must be signed in to change notification settings - Fork 142
Open
Description
试了2个Unity版本
Unity 2019.4.33f1 可以运行,但结束运行时报以下错误
InvalidOperationException: The previously scheduled job ADBRunTimeJobsTable:ConstraintForceUpdateByPoint reads from the NativeArray ConstraintForceUpdateByPoint.constraintsRead. You must call JobHandle.Complete() on the job ADBRunTimeJobsTable:ConstraintForceUpdateByPoint, before you can deallocate the NativeArray safely.
Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle.CheckDeallocateAndThrow (Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle handle) (at <e395ed1557354db1a729173c553a159b>:0)
Unity.Collections.LowLevel.Unsafe.DisposeSentinel.Dispose (Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle& safety, Unity.Collections.LowLevel.Unsafe.DisposeSentinel& sentinel) (at <e395ed1557354db1a729173c553a159b>:0)
Unity.Collections.NativeMultiHashMap`2[TKey,TValue].Dispose () (at Library/PackageCache/com.unity.collections@0.9.0-preview.6/Unity.Collections/NativeHashMap.cs:749)
ADBRuntime.ADBPhysicsKernel.Dispose () (at Assets/Automatic Dynaimc Bone/Runtime/ADBPhysicsKernel.cs:325)
ADBRuntime.Mono.ADBRuntimeController.OnDestroy () (at Assets/Automatic Dynaimc Bone/Runtime/ADBRuntimeController.cs:137)
A Native Collection has not been disposed, resulting in a memory leak. Enable Full StackTraces to get more details.
Unity 2021.3.8f1,编译失败,报以下错误
Library\PackageCache\com.unity.jobs@0.2.10-preview.13\Unity.Jobs\IJobParallelForDefer.cs(73,85): error CS8377: The type 'U' must be a non-nullable value type, along with all fields at any level of nesting, in order to use it as parameter 'T' in the generic type or method 'NativeList<T>'
Metadata
Metadata
Assignees
Labels
No labels