Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Doesn't work in Unity 2020.1.41f
#10
(14-09-2020, 01:25 PM)josemendez Wrote: Found the cause and fixed it, was indeed an omission in our job code.

Multiple jobs are scheduled when there are multiple actors in the scene, and they all write to different sections the same data arrays. For this reason,
the [NativeDisableContainerSafetyRestriction] attribute is used to mark the read/write arrays so that the job system knows we intend to write to the same array from different jobs.

I forgot to mark one of the arrays, so the job system rightly complains about concurrent writes to the same array -even if they're perfectly safe, as they do not write to the same indices-.

Not sure why Unity 2019 does not pick this up, but 2020 does. Replacing BurstShapeMatchingConstraintsBatch.cs with the attached one will fix the issue. You can find the file at Obi/Scripts/Common/Backends/Burst/Constraints/ShapeMatching/

Let me know if I can be of further help Sonrisa.
Thank you. I shall have a look hopefully later today.

I will unfortunately be very busy this week, with limited time to test, but from next week again I will have time.
Reply


Messages In This Thread
Doesn't work in Unity 2020.1.41f - by quakeulf - 10-09-2020, 11:19 PM
RE: Doesn't work in Unity 2020.1.41f - by quakeulf - 14-09-2020, 01:29 PM