Obi Official Forum
Obi Scripts Backends Burst issues - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html)
+--- Thread: Obi Scripts Backends Burst issues (/thread-3824.html)



Obi Scripts Backends Burst issues - digimbyte - 31-03-2023

I have Burst 1.8.4  and Obi Rope 6.5.1 in a new project in 2022.2.12
With this, my console has the following 3 errors:
  • Assets\Obi\Scripts\Common\Backends\Burst\Solver\DequeueIntoArrayJob.cs(12,31): error CS8377: The type 'T' 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 'NativeQueue<T>'
  • Assets\Obi\Scripts\Common\Backends\Burst\DataStructures\NativeMultilevelGrid.cs(34,13): error CS0305: Using the generic type 'UnsafeList<T>' requires 1 type arguments
  • Assets\Obi\Scripts\Common\Backends\Burst\DataStructures\NativeMultilevelGrid.cs(88,36): error CS8377: The type 'NativeMultilevelGrid<T>.Cell<T>' 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>'
I found a thread where it was suggested that Burst 1.8.3 works, however this did not resolve it for me.
Additionally, I have tried looking for something in FAQ incase I missed a step or dependency version but it seems this is a niche or new bug.

Looking for a way to proceed, thanks.


RE: Obi Scripts Backends Burst issues - josemendez - 31-03-2023

(31-03-2023, 07:42 AM)digimbyte Wrote: I have Burst 1.8.4  and Obi Rope 6.5.1 in a new project in 2022.2.12
With this, my console has the following 3 errors:
  • Assets\Obi\Scripts\Common\Backends\Burst\Solver\DequeueIntoArrayJob.cs(12,31): error CS8377: The type 'T' 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 'NativeQueue<T>'
  • Assets\Obi\Scripts\Common\Backends\Burst\DataStructures\NativeMultilevelGrid.cs(34,13): error CS0305: Using the generic type 'UnsafeList<T>' requires 1 type arguments
  • Assets\Obi\Scripts\Common\Backends\Burst\DataStructures\NativeMultilevelGrid.cs(88,36): error CS8377: The type 'NativeMultilevelGrid<T>.Cell<T>' 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>'
I found a thread where it was suggested that Burst 1.8.3 works, however this did not resolve it for me.
Additionally, I have tried looking for something in FAQ incase I missed a step or dependency version but it seems this is a niche or new bug.

Looking for a way to proceed, thanks.

Hi!

This is caused by the latest version of the Collections package, and is a relatively new issue we're working on a patch for. It can be fixed relatively easy, see:
http://obi.virtualmethodstudio.com/forum/thread-3776.html?highlight=non-nullable