Search Unity

Resolved It seems like there is a bug in NativeList<T>.AsParallelReader()

Discussion in 'Entity Component System' started by SergeyRomanko, Oct 23, 2020.

  1. SergeyRomanko

    SergeyRomanko

    Joined:
    Oct 18, 2014
    Posts:
    47
    Hello, I am not sure if there is a bug or not, I am just looking for an advice

    The error I am getting is

    Library\PackageCache\com.unity.collections@0.12.0-preview.13\Unity.Collections\NativeList.cs(731,24): error CS7036: There is no argument given that corresponds to the required formal parameter 'safety' of 'NativeArray<T>.ReadOnly.ReadOnly(void*, int, ref AtomicSafetyHandle)'

    I am getting this error only when I'm trying to build asset bundles with custom asset bundles system. It may affect precompiler directives. Regular workflow works fine

    Here is code from the package
    Screenshot_15.png

    I can't find a constructor for NativeArray<T>.ReadOnly with 2 parameters

    Version of the package is com.unity.collections@0.12.0-preview.13

    Can someone tell me is it a bug in com.unity.collections package
     
  2. julian-moschuering

    julian-moschuering

    Joined:
    Apr 15, 2014
    Posts:
    529
    Is it possible that you are missing the target platform package? Eg having scripting runtime set to IL2CPP but not having IL2CPP module for windows installed will lead to this error.
     
    Last edited: Oct 23, 2020
  3. SergeyRomanko

    SergeyRomanko

    Joined:
    Oct 18, 2014
    Posts:
    47
    Yes, indeed, it was the problem
    Thank you for help!
     
  4. JeffreyStrate

    JeffreyStrate

    Joined:
    Jul 27, 2016
    Posts:
    32
    Komischer weise hatt ich das auch und habe einfach mal anders rum gedacht und auf LZ5HC , Geststellt unter BUILD und dann läuft es, fragt mich nicht
     
  5. alexmingsheng

    alexmingsheng

    Joined:
    May 18, 2020
    Posts:
    3
    Life saver! this works perfectly, just go unity editor add on module install the IL2CPP everything works again
     
    AlgoritcomDev likes this.
  6. YupCup

    YupCup

    Joined:
    Apr 15, 2018
    Posts:
    1
    I have the same error, but IL2CPP is already installed, and I've tried redownloading to no avail. Any suggestions?
     
  7. JustFamous

    JustFamous

    Joined:
    Aug 23, 2017
    Posts:
    12
    Did you find any resolve for this? I have this bug also and the fix in this post won't work for me
     
  8. Sometimes_Always_Never

    Sometimes_Always_Never

    Joined:
    Apr 5, 2014
    Posts:
    28
    Same. Nothing works.

    Here's what I've tried:
    • Installing the IL2CPP Windows Addon via Unity Hub
    • Installing the IL2CPP Windows Addon from the Web
    • Uninstalling and reinstalling
    • Deleting the Library file and reimporting
    • Upgrading to another version of Unity with a new install of the IL2CPP Windows Addon
    Any ideas?
     
  9. jivalenzuela

    jivalenzuela

    Unity Technologies

    Joined:
    Dec 4, 2019
    Posts:
    76
    A lot has changed since the original post, there's a chance it's not the same issue. If you think you've hit a bug please file a report, make sure to include relevant editor/package versions.
     
  10. Sometimes_Always_Never

    Sometimes_Always_Never

    Joined:
    Apr 5, 2014
    Posts:
    28
    Thank you. Will file a report.
     
  11. JustFamous

    JustFamous

    Joined:
    Aug 23, 2017
    Posts:
    12
    Hello
    I have the same problem, I tried everything that you have recommended here but it still doesn't work...