Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Bug Error with Jobs package upon updating from 2022.1.0b6

Discussion in '2022.1 Beta' started by radioactivedogs, Feb 23, 2022.

  1. radioactivedogs

    radioactivedogs

    Joined:
    Mar 6, 2015
    Posts:
    9
    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<T>'

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

    Attached Files:

  2. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
  3. radioactivedogs

    radioactivedogs

    Joined:
    Mar 6, 2015
    Posts:
    9
  4. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
    Thanks! Could you share the issue ID please?
     
  5. radioactivedogs

    radioactivedogs

    Joined:
    Mar 6, 2015
    Posts:
    9
    1408326
     
    LeonhardP likes this.
  6. LTHendrix

    LTHendrix

    Joined:
    Jul 29, 2013
    Posts:
    20
    I'm having this issue as well. is there a resolution?
     
    Nikita500 likes this.
  7. Nikita500

    Nikita500

    Joined:
    Aug 18, 2015
    Posts:
    67
    i have the same error with 2021.3.1f1
     
  8. BindingForceDev

    BindingForceDev

    Joined:
    Aug 13, 2014
    Posts:
    40
    Same here, just updated from 2021.3.0f. Luckily I can go back to a backup!
     
    Nikita500 likes this.
  9. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
    This issue was fixed in 0.10.0. Please try and upgrade the jobs package to see if that resolves the problem.
     
    Nikita500 likes this.
  10. Nikita500

    Nikita500

    Joined:
    Aug 18, 2015
    Posts:
    67
    ty updated to latest Jobs and all work good now
     
  11. kayroice

    kayroice

    Joined:
    Feb 7, 2017
    Posts:
    49
    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?
     
    al12383 likes this.
  12. jpw1991

    jpw1991

    Joined:
    Aug 9, 2014
    Posts:
    1
    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
     
  13. Nikita500

    Nikita500

    Joined:
    Aug 18, 2015
    Posts:
    67
    for me jobs in project manager in project
     

    Attached Files: