Search Unity

  1. Curious about what's going to be in 2020.1? Have a look at the 2020.1 beta blog post.
    Dismiss Notice
  2. Want to see 2020.1b in action? Sign up for our Beta 2020.1 Overview Webinar on April 20th for a live presentation from our evangelists and a Q&A session with guests from R&D.
    Dismiss Notice
  3. Interested in giving us feedback? Join our online research interviews on a broad range of topics and share your insights with us.
    Dismiss Notice
  4. New Unity Live Help updates. Check them out here!

    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:
    465
    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,308
    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:
    1,901
unityunity