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 (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:
    1,012
    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:
    6,938
    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:
    3,136