Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

2018.3: Assertion failed: TLS Allocator ALLOC_TEMP_THREAD, underlying allocator ALLOC_TEMP_THREAD

Discussion in 'Editor & General Support' started by RandomCharacters, Dec 20, 2017.

  1. RandomCharacters

    RandomCharacters

    Joined:
    Nov 29, 2012
    Posts:
    262
    .
     
    Last edited: Jan 15, 2019
  2. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    This version of Unity does not exist?
     
  3. BlackPete

    BlackPete

    Joined:
    Nov 16, 2016
    Posts:
    970
    March 2018 edition? 2018.3? Where'd you get that from?
     
  4. omerelfassy

    omerelfassy

    Joined:
    Nov 9, 2015
    Posts:
    20
    Same Error here in Unity 2017.3.0f3
     
    XCO likes this.
  5. SketchWork

    SketchWork

    Joined:
    Jul 6, 2012
    Posts:
    254
    Same here with 2017.3.0p1 rolled back to 2017.2.1 and issue went away. Will wait for now and stick to 2017.2.1.

    Merry Christmas :)
     
  6. D3DGames

    D3DGames

    Joined:
    Feb 12, 2017
    Posts:
    5
    Same here and I'm using 2017.3.0f3. I don't ever recall this happening on previous versions (2017.2.1 and earlier). This happens when I go to build settings and build the iOS project, it shows the assertions a few times and stops during the build process. When I then press the play button in the editor, it constantly shows the same assertions over and over without stopping unless I stop the editor. If I play again, it continues. The only way to get rid of the asserts and not have them show up again in the editor is to close Unity completely and open it again. Not that big of a deal for me, but gets annoying when I have to do this every time I build an iOS project.

    P.S. I'm also using a Windows 10 machine when I build the iOS project.
     
  7. SketchWork

    SketchWork

    Joined:
    Jul 6, 2012
    Posts:
    254
    That kinda sucks :( Do you have a link to the bug report?
     
  8. Bilgisoft

    Bilgisoft

    Joined:
    Sep 2, 2016
    Posts:
    13
    I solved this error. You must change .net option in player setting .net 3.5 to .net 4.6.
     
  9. Whitebrim

    Whitebrim

    Joined:
    Jul 11, 2017
    Posts:
    17
    It didn't help
     
  10. Egil-Sandfeld

    Egil-Sandfeld

    Joined:
    Oct 8, 2012
    Posts:
    72
    I fixed this issue by deleting the following folders in my project:

    /Library
    /Temp
    /UnityPackageManager

    I restarted, and the error did not spawn any longer.

    Before this, I tried Bilgisoft's solution which did not help.

    **Update**
    Dang, that is, it actually stopped the error as I was running the Windows platform in build settings. Once I switched back to Android, the issue came back.
     
    Last edited: Mar 5, 2018
  11. Dervac

    Dervac

    Joined:
    Oct 3, 2017
    Posts:
    2
    Same error =(
     
  12. sam_ettinger_sm

    sam_ettinger_sm

    Joined:
    Dec 1, 2016
    Posts:
    19
    I'm having the same error. This bug steamrolls my team's continuous-integration system, because even when the project builds successfully, we get this TLS-allocator error and it's reported as a failure.

    Unity devs, PLEASE come up with a fix that isn't just "buy a new subscription 3 months from now"
     
  13. northman

    northman

    Joined:
    Feb 28, 2008
    Posts:
    144
    Same problem in Unity 2017.3.1f1(64bit)in April.6. 2018.
     
  14. multimediamarkers

    multimediamarkers

    Joined:
    Feb 17, 2016
    Posts:
    49
    Still in version 2018.1 ... and still no fix from Unity!
     
    CloudyVR likes this.
  15. NpXAutobot

    NpXAutobot

    Joined:
    Jul 21, 2015
    Posts:
    2
    2018.1.1 sammmmeeeee
     
  16. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,589
    Last edited: Jul 19, 2018
  17. Xeyad

    Xeyad

    Joined:
    Mar 3, 2018
    Posts:
    1
    I restarted Unity and that worked well enough for me, my bug was this ALLOC_TEMP_THREAD has unfreed allocations, size 7020, i think it happened because i was editing a script and i removed a function that was supposed to allocate something and unity couldn't update it self correctly
     
  18. jinhaiyan777

    jinhaiyan777

    Joined:
    Jun 20, 2018
    Posts:
    1
    upload_2018-6-20_19-11-11.png
    I am using Unity 2017.2.1 on Windows 10 and I got the same problem. I've had this version of unity for a while now, and it only started giving me this crap when I attempted to make a IEnumerator wait function. What about you guys?

    I'm still relatively inexperienced with unity, am I missing anything?
     
  19. archelyte_vz

    archelyte_vz

    Joined:
    Aug 7, 2015
    Posts:
    3
    I've actually found the source of this in my project. My project is less than 10,000 lines of code, so isolating the problem was relatively easy.

    For me, this was being caused by a stack overflow at runtime eating up all of the temp memory.

    Steps to resolve:
    1. Locate the script causing the stack overflow
    2. Remedy the problematic line(s)
    3. Restart Unity.
     
  20. unity_YQ1mlry1sg-dyQ

    unity_YQ1mlry1sg-dyQ

    Joined:
    Nov 16, 2017
    Posts:
    1
    make sure your aren´t creating an unwanted infinite loop in your code
     
  21. Rizwan31840

    Rizwan31840

    Joined:
    Oct 9, 2017
    Posts:
    4
    Just Restart Unity
     
    Amjad18 likes this.
  22. CCharles22

    CCharles22

    Joined:
    Jul 2, 2018
    Posts:
    1
    I removed whatever may have caused that problem to appear in my script because I did not have that issue before as well as I restarted Unity and it was no longer there.
     
  23. Kiziek

    Kiziek

    Joined:
    Jan 24, 2016
    Posts:
    2
    Worked for me, thx :)
     
    Bilgisoft likes this.
  24. CloudyVR

    CloudyVR

    Joined:
    Mar 26, 2017
    Posts:
    714
    Just saw this in 2018.1.0f2
     
  25. pool3

    pool3

    Joined:
    Mar 11, 2015
    Posts:
    8
    2017.1.0 also shows this for no apparent reason.
     
  26. lordpooria

    lordpooria

    Joined:
    Jul 7, 2019
    Posts:
    1
    thanks worked for me!
     
    Bilgisoft likes this.
  27. rhys_vdw

    rhys_vdw

    Joined:
    Mar 9, 2012
    Posts:
    110
    I seem to have caused this error by throwing an exception from a ScriptableRenderPass.Execute implementation. Hope it helps someone.
     
  28. tomcech

    tomcech

    Joined:
    May 4, 2019
    Posts:
    4
    Had the same problem with Unity 2019.13f1. None of the solutions here worked form me. At the end I switched the input system in project setting, which helped. I don't know if the error is related to input system but when you switch input systems, unity rebuilds something in the project which made the error to go away. Anyway, it worked form me, hope it helps somebody.
     
  29. viveadam

    viveadam

    Joined:
    May 4, 2020
    Posts:
    5
    Not exactly a fix per se, but one of the things that helped me track down the solution is realizing that Unity will keep throwing these errors until you restart Unity, even if you fix the problem. For me it came down to some code I wrote interacting badly with our network code, but even after turning that code off I was confused why I was still getting errors. Once I realized that, I did a restart of Unity every time I got the stack trace error, which made it a lot easier to track down the bad code and fix it.
     
  30. Barritico

    Barritico

    Joined:
    Jun 9, 2017
    Posts:
    374
    I cannot understand how such a recurring error is ignored by the Unity team.

    Each update is worse than the last. 5 days after starting ... this bug continues.

    Horrible.
     
  31. draverik

    draverik

    Joined:
    Feb 17, 2019
    Posts:
    19
    Ok Finally TLS allocator problem with our project 2019.4 and URP was with Script inside on the object. Why - our programmer will let me know tomorrow
     
  32. draverik

    draverik

    Joined:
    Feb 17, 2019
    Posts:
    19
    Problem was with werid loop in our script. Information from warnings in editor help us find it.
     
  33. ishan711997

    ishan711997

    Joined:
    Apr 11, 2020
    Posts:
    19
    Right click on asset>>Rimport all
     
  34. Rugbug_Redfern

    Rugbug_Redfern

    Joined:
    Jun 2, 2017
    Posts:
    20
    Happens to me in 2020.1.5f1 when I disabled compression for WebGL builds. There is nothing in my scene except a canvas with one button on it. This is the only scene in my game.

    Reimporting all assets fixed it.
     
  35. quitebuttery

    quitebuttery

    Joined:
    Mar 12, 2011
    Posts:
    327
    This happens in 2020.2 -- disabling graphics jobs and restarting the editor fixes it. Super annoying.
     
  36. dpotuznik

    dpotuznik

    Joined:
    Jan 18, 2018
    Posts:
    17
    hi
    i had the same issue,

    I solved by unsubscribe to the event with onDestroy


    like :
    Code (CSharp):
    1.  
    2. private void OnDestroy()
    3.     {
    4.         EmotionManager.current.onChangeSlideWithOrder -= show;
    5.     }
    hope help someone
    have nice day
    Daniel
     
  37. quresn750

    quresn750

    Joined:
    Jan 7, 2022
    Posts:
    1
    i have fixed it by just restart the unity......