Error with Jobs package upon updating from 2022.1.0b6

Hello, we’ve been using the current beta of Unity but have found any version after 2022.1.0b6 throws the following error when reimporting after switching versions.

Library\PackageCache\com.unity.jobs@0.7.0-preview.17\Unity.Jobs\IJobParallelForDefer.cs(77,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’

I’ve attached a copy of my manifest if that helps narrow anything down.

7921615–1010950–manifest.txt (2.43 KB)

Hi @radioactivedogs ,

Could you please submit a bug report for this issue?

@LeonhardP Submitted!

Thanks! Could you share the issue ID please?

1408326

1 Like

I’m having this issue as well. is there a resolution?

1 Like

i have the same error with 2021.3.1f1

Same here, just updated from 2021.3.0f. Luckily I can go back to a backup!

1 Like

This issue was fixed in 0.10.0. Please try and upgrade the jobs package to see if that resolves the problem.

1 Like

ty updated to latest Jobs and all work good now

Same issue here, when attempting to upgrade from Unity 2021.3.0f1 to either 2021.3.1f1 or 2021.3.2f1:

Library\PackageCache\com.unity.jobs@0.7.0-preview.17\Unity.Jobs\IJobParallelForDefer.cs(77,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>'

Unfortunately users won’t be able to find the Jobs package using the Package Manager unless they click on Project Settings → Package Manager → Show Dependencies (this wasn’t enabled by default for me). Even after selecting Show Dependencies the latest Jobs package available for me is 0-50.0-preview9. Before I go installing that version, @LeonhardP can you (or someone else at Unity) please confirm that 0-50.0-preview9 will fix the issue?

1 Like

I’m facing this issue too after attempting to update to the newest unity version from the previous one. No clue how to even update this jobs stuff - let alone find it in the package manager. The show dependencies hint left by kayroice (thanks kayroice) unfortunately doesn’t show it.

Any advice/help would be appreciated

for me jobs in project manager in project

8125820--1053698--jobs.png
8125820--1053701--update.png