Passed array of entities has content during job scheduling but gone in execution. 2019.4.3 and above

OK i repoed this from your project, and I know what the issue is and I also have a workaround for you.

So the issue is the same as the issue discussed over here: Native plugins broken in jobs

Basically NativeDisableContainerSafetyRestriction is broken. It seems to invalidate any field before it filling it with garbage.

For your case this is an easy fix, just replace them all with NativeDisableParallelForRestriction and your code works fine.

1 Like