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

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.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

I can’t find a constructor for NativeArray.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

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.

7 Likes

Yes, indeed, it was the problem
Thank you for help!

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

Life saver! this works perfectly, just go unity editor add on module install the IL2CPP everything works again

2 Likes

I have the same error, but IL2CPP is already installed, and I’ve tried redownloading to no avail. Any suggestions?

Did you find any resolve for this? I have this bug also and the fix in this post won’t work for me

3 Likes

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?

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.

Thank you. Will file a report.

Hello
I have the same problem, I tried everything that you have recommended here but it still doesn’t work…

Did you find the solution?