I wanna try this fantastic project in Unity 2020.3.35f LTS
Currently I install com.unity.collections to version 1.2.3 (verified)
And looks like (UnsafeList*) is denoted as deprecated.
And tests, RangeQueryAfterBulk() & RayQueryAfterBuild() will throw exceptions:
Any suggestions to fix this? Or I have to stick with com.unity.collections old version (before v0.4)?
(The following stack traces are run with Burst compilation disabled)
RangeQueryAfterBulk (0.124s)
Unhandled log message: '[Assert] Invalid allocation label passed to UnsafeUtility::Malloc'. Use UnityEngine.TestTools.LogAssert.Expect
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Unity.Collections.Memory/Unmanaged/Array:Resize (void*,long,long,Unity.Collections.AllocatorManager/AllocatorHandle,long,int) (at Library/PackageCache/com.unity.collections@1.2.3/Unity.Collections/Memory.cs:79)
Unity.Collections.Memory/Unmanaged:Allocate (long,int,Unity.Collections.AllocatorManager/AllocatorHandle) (at Library/PackageCache/com.unity.collections@1.2.3/Unity.Collections/Memory.cs:20)
Unity.Collections.AllocatorManager:TryLegacy (Unity.Collections.AllocatorManager/Block&) (at Library/PackageCache/com.unity.collections@1.2.3/Unity.Collections/AllocatorManager.cs:851)
Unity.Collections.AllocatorManager:Try (Unity.Collections.AllocatorManager/Block&) (at Library/PackageCache/com.unity.collections@1.2.3/Unity.Collections/AllocatorManager.cs:883)
Unity.Collections.AllocatorManager/AllocatorHandle:Try (Unity.Collections.AllocatorManager/Block&) (at Library/PackageCache/com.unity.collections@1.2.3/Unity.Collections/AllocatorManager.cs:511)
Unity.Collections.AllocatorManager:AllocateBlock<Unity.Collections.AllocatorManager/AllocatorHandle> (Unity.Collections.AllocatorManager/AllocatorHandle&,int,int,int) (at Library/PackageCache/com.unity.collections@1.2.3/Unity.Collections/AllocatorManager.cs:34)
Unity.Collections.AllocatorManager:Allocate<Unity.Collections.AllocatorManager/AllocatorHandle> (Unity.Collections.AllocatorManager/AllocatorHandle&,int,int,int) (at Library/PackageCache/com.unity.collections@1.2.3/Unity.Collections/AllocatorManager.cs:46)
Unity.Collections.LowLevel.Unsafe.UnsafeList:Realloc<Unity.Collections.AllocatorManager/AllocatorHandle> (Unity.Collections.AllocatorManager/AllocatorHandle&,int,int,int) (at Library/PackageCache/com.unity.collections@1.2.3/Unity.Collections/Deprecated.cs:345)
Unity.Collections.LowLevel.Unsafe.UnsafeList:SetCapacity<Unity.Collections.AllocatorManager/AllocatorHandle> (Unity.Collections.AllocatorManager/AllocatorHandle&,int,int,int) (at Library/PackageCache/com.unity.collections@1.2.3/Unity.Collections/Deprecated.cs:377)
Unity.Collections.LowLevel.Unsafe.UnsafeList:SetCapacity (int,int,int) (at Library/PackageCache/com.unity.collections@1.2.3/Unity.Collections/Deprecated.cs:382)
Unity.Collections.LowLevel.Unsafe.UnsafeList:Resize (int,int,int,Unity.Collections.NativeArrayOptions) (at Library/PackageCache/com.unity.collections@1.2.3/Unity.Collections/Deprecated.cs:314)
Unity.Collections.LowLevel.Unsafe.UnsafeList:Resize<NativeQuadTree.QuadElement1<int>> (int,Unity.Collections.NativeArrayOptions) (at Library/PackageCache/com.unity.collections@1.2.3/Unity.Collections/Deprecated.cs:336) NativeQuadTree.NativeQuadTree1/QuadTreeRangeQuery:RecursiveRangeQuery (NativeQuadTree.AABB2D,bool,int,int) (at Assets/NativeQuadtree/NativeQuadTreeRangeQuery.cs:37)
NativeQuadTree.NativeQuadTree1/QuadTreeRangeQuery<int>:Query (NativeQuadTree.NativeQuadTree1,NativeQuadTree.AABB2D,Unity.Collections.NativeList1<NativeQuadTree.QuadElement1>) (at Assets/NativeQuadtree/NativeQuadTreeRangeQuery.cs:28)
NativeQuadTree.NativeQuadTree1<int>:RangeQuery (NativeQuadTree.AABB2D,Unity.Collections.NativeList1<NativeQuadTree.QuadElement1<int>>) (at Assets/NativeQuadtree/NativeQuadTree.cs:272) NativeQuadTree.QuadTreeJobs/RangeQueryJob1:Execute () (at Assets/NativeQuadtree/QuadTreeJobs.cs:47)
Unity.Jobs.IJobExtensions/JobStruct1<NativeQuadTree.QuadTreeJobs/RangeQueryJob1>:Execute (NativeQuadTree.QuadTreeJobs/RangeQueryJob1<int>&,intptr,intptr,Unity.Jobs.LowLevel.Unsafe.JobRanges&,int) Unity.Jobs.LowLevel.Unsafe.JobsUtility:Schedule (Unity.Jobs.LowLevel.Unsafe.JobsUtility/JobScheduleParameters&) Unity.Jobs.IJobExtensions:Run<NativeQuadTree.QuadTreeJobs/RangeQueryJob1> (NativeQuadTree.QuadTreeJobs/RangeQueryJob`1)
QuadTreeTests:RangeQueryAfterBulk () (at Assets/NativeQuadtree/Editor/QuadTreeTests.cs:91)
System.Reflection.MethodBase:Invoke (object,object[])
NUnit.Framework.Internal.Reflect:InvokeMethod (System.Reflection.MethodInfo,object,object[])
NUnit.Framework.Internal.MethodWrapper:Invoke (object,object[])
NUnit.Framework.Internal.Commands.TestMethodCommand:RunNonAsyncTestMethod (NUnit.Framework.Internal.ITestExecutionContext)
NUnit.Framework.Internal.Commands.TestMethodCommand:RunTestMethod (NUnit.Framework.Internal.ITestExecutionContext)
NUnit.Framework.Internal.Commands.TestMethodCommand:Execute (NUnit.Framework.Internal.ITestExecutionContext)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
Invalid allocation label passed to UnsafeUtility::Malloc
ArgumentException: Could not allocate native memory. Please report a bug.
9.9571 result: 0
I wanna try this fantastic project in Unity 2020.3.35f LTS
Currently I install com.unity.collections to version 1.2.3 (verified)
And looks like (UnsafeList*) is denoted as deprecated.
And tests, RangeQueryAfterBulk() & RayQueryAfterBuild() will throw exceptions:
Any suggestions to fix this? Or I have to stick with com.unity.collections old version (before v0.4)?
(The following stack traces are run with Burst compilation disabled)
RangeQueryAfterBulk (0.124s)
Unhandled log message: '[Assert] Invalid allocation label passed to UnsafeUtility::Malloc'. Use UnityEngine.TestTools.LogAssert.Expect
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Unity.Collections.Memory/Unmanaged/Array:Resize (void*,long,long,Unity.Collections.AllocatorManager/AllocatorHandle,long,int) (at Library/PackageCache/com.unity.collections@1.2.3/Unity.Collections/Memory.cs:79)
Unity.Collections.Memory/Unmanaged:Allocate (long,int,Unity.Collections.AllocatorManager/AllocatorHandle) (at Library/PackageCache/com.unity.collections@1.2.3/Unity.Collections/Memory.cs:20)
Unity.Collections.AllocatorManager:TryLegacy (Unity.Collections.AllocatorManager/Block&) (at Library/PackageCache/com.unity.collections@1.2.3/Unity.Collections/AllocatorManager.cs:851)
Unity.Collections.AllocatorManager:Try (Unity.Collections.AllocatorManager/Block&) (at Library/PackageCache/com.unity.collections@1.2.3/Unity.Collections/AllocatorManager.cs:883)
Unity.Collections.AllocatorManager/AllocatorHandle:Try (Unity.Collections.AllocatorManager/Block&) (at Library/PackageCache/com.unity.collections@1.2.3/Unity.Collections/AllocatorManager.cs:511)
Unity.Collections.AllocatorManager:AllocateBlock<Unity.Collections.AllocatorManager/AllocatorHandle> (Unity.Collections.AllocatorManager/AllocatorHandle&,int,int,int) (at Library/PackageCache/com.unity.collections@1.2.3/Unity.Collections/AllocatorManager.cs:34)
Unity.Collections.AllocatorManager:Allocate<Unity.Collections.AllocatorManager/AllocatorHandle> (Unity.Collections.AllocatorManager/AllocatorHandle&,int,int,int) (at Library/PackageCache/com.unity.collections@1.2.3/Unity.Collections/AllocatorManager.cs:46)
Unity.Collections.LowLevel.Unsafe.UnsafeList:Realloc<Unity.Collections.AllocatorManager/AllocatorHandle> (Unity.Collections.AllocatorManager/AllocatorHandle&,int,int,int) (at Library/PackageCache/com.unity.collections@1.2.3/Unity.Collections/Deprecated.cs:345)
Unity.Collections.LowLevel.Unsafe.UnsafeList:SetCapacity<Unity.Collections.AllocatorManager/AllocatorHandle> (Unity.Collections.AllocatorManager/AllocatorHandle&,int,int,int) (at Library/PackageCache/com.unity.collections@1.2.3/Unity.Collections/Deprecated.cs:377)
Unity.Collections.LowLevel.Unsafe.UnsafeList:SetCapacity (int,int,int) (at Library/PackageCache/com.unity.collections@1.2.3/Unity.Collections/Deprecated.cs:382)
Unity.Collections.LowLevel.Unsafe.UnsafeList:Resize (int,int,int,Unity.Collections.NativeArrayOptions) (at Library/PackageCache/com.unity.collections@1.2.3/Unity.Collections/Deprecated.cs:314)
Unity.Collections.LowLevel.Unsafe.UnsafeList:Resize<NativeQuadTree.QuadElement
1<int>> (int,Unity.Collections.NativeArrayOptions) (at Library/PackageCache/com.unity.collections@1.2.3/Unity.Collections/Deprecated.cs:336) NativeQuadTree.NativeQuadTree1/QuadTreeRangeQuery:RecursiveRangeQuery (NativeQuadTree.AABB2D,bool,int,int) (at Assets/NativeQuadtree/NativeQuadTreeRangeQuery.cs:37)NativeQuadTree.NativeQuadTree
1/QuadTreeRangeQuery<int>:Query (NativeQuadTree.NativeQuadTree1,NativeQuadTree.AABB2D,Unity.Collections.NativeList1<NativeQuadTree.QuadElement1>) (at Assets/NativeQuadtree/NativeQuadTreeRangeQuery.cs:28)NativeQuadTree.NativeQuadTree
1<int>:RangeQuery (NativeQuadTree.AABB2D,Unity.Collections.NativeList1<NativeQuadTree.QuadElement1<int>>) (at Assets/NativeQuadtree/NativeQuadTree.cs:272) NativeQuadTree.QuadTreeJobs/RangeQueryJob1:Execute () (at Assets/NativeQuadtree/QuadTreeJobs.cs:47)Unity.Jobs.IJobExtensions/JobStruct
1<NativeQuadTree.QuadTreeJobs/RangeQueryJob1>:Execute (NativeQuadTree.QuadTreeJobs/RangeQueryJob1<int>&,intptr,intptr,Unity.Jobs.LowLevel.Unsafe.JobRanges&,int) Unity.Jobs.LowLevel.Unsafe.JobsUtility:Schedule (Unity.Jobs.LowLevel.Unsafe.JobsUtility/JobScheduleParameters&) Unity.Jobs.IJobExtensions:Run<NativeQuadTree.QuadTreeJobs/RangeQueryJob1> (NativeQuadTree.QuadTreeJobs/RangeQueryJob`1)QuadTreeTests:RangeQueryAfterBulk () (at Assets/NativeQuadtree/Editor/QuadTreeTests.cs:91)
System.Reflection.MethodBase:Invoke (object,object[])
NUnit.Framework.Internal.Reflect:InvokeMethod (System.Reflection.MethodInfo,object,object[])
NUnit.Framework.Internal.MethodWrapper:Invoke (object,object[])
NUnit.Framework.Internal.Commands.TestMethodCommand:RunNonAsyncTestMethod (NUnit.Framework.Internal.ITestExecutionContext)
NUnit.Framework.Internal.Commands.TestMethodCommand:RunTestMethod (NUnit.Framework.Internal.ITestExecutionContext)
NUnit.Framework.Internal.Commands.TestMethodCommand:Execute (NUnit.Framework.Internal.ITestExecutionContext)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
Invalid allocation label passed to UnsafeUtility::Malloc
ArgumentException: Could not allocate native memory. Please report a bug.
9.9571 result: 0