Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问哪个Unity版本可以正常运行啊,2019和2021都有问题 #28

Open
Misaka-Mikoto-Tech opened this issue Sep 19, 2022 · 1 comment

Comments

@Misaka-Mikoto-Tech
Copy link

Misaka-Mikoto-Tech commented Sep 19, 2022

试了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/[email protected]/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\[email protected]\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>'
@Misaka-Mikoto-Tech Misaka-Mikoto-Tech changed the title 请问哪个版本Unity版本可以运行啊,2019和2021都不行 请问哪个Unity版本可以正常运行啊,2019和2021都有问题 Sep 19, 2022
@OneYoungMean
Copy link
Owner

您好,问题已经收到,抱歉因为回复的太晚.
我下载了unity 2021.3并进行调试,我认为,编译报错的主要原因为当前Unity版本无法兼容Job版本为0.2.10-preview.13.
需要解决这个问题,请查看https://forum.unity.com/threads/unity-collections-1-0-0-pre-3.1138633/
如果仍然没有解决,可以继续回复这个issue 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants