Search Unity

  1. Click here to see what's on sale for the "Best of Super Sale" on the Asset Store
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Bug (Case 1230447) ConcurrentBag.TryTake() throws exception in IL2CPP build

Discussion in '2020.1 Beta' started by Kichang-Kim, Mar 25, 2020.

  1. Kichang-Kim

    Kichang-Kim

    Joined:
    Oct 19, 2010
    Posts:
    575
    Hi. I found that runtime issue about ConcurrentBag with IL2CPP build. (2020.1.0b2)

    If you calling ConcurrentBat.TryTake() for empty bag, it throws exception like this:
    2020/03/25 12:09:42.521 22312 22341 Error Unity NotSupportedException: linked away
    2020/03/25 12:09:42.521 22312 22341 Error Unity at System.Collections.Concurrent.CDSCollectionETWBCLProvider.ConcurrentBag_TryTakeSteals () [0x00000] in <00000000000000000000000000000000>:0
    2020/03/25 12:09:42.521 22312 22341 Error Unity at System.Collections.Concurrent.ConcurrentBag`1[T].TrySteal (T& result, System.Boolean take) [0x00000] in <00000000000000000000000000000000>:0
    2020/03/25 12:09:42.521 22312 22341 Error Unity at MyTestScript.Update () [0x00000] in <00000000000000000000000000000000>:0
    2020/03/25 12:09:42.521 22312 22341 Error Unity
    2020/03/25 12:09:42.521 22312 22341 Error Unity (Filename: currently not available on il2cpp Line: -1)

    It doesn't occur with Mono backend. Reported as Case 1230447.
     
    LeonhardP and Peter77 like this.
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    4,752
    Thanks for report this issue. We've corrected it internally, and the fix should be available soon.
     
    Kichang-Kim likes this.
  3. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    2,298
unityunity