Search Unity

Question Leak Detection Menu is not appearing under jobs in Unity 2022.2 Beta

Discussion in 'Entity Component System' started by jGate99, Nov 5, 2022.

  1. jGate99

    jGate99

    Joined:
    Oct 22, 2013
    Posts:
    1,941
    Hi there

    Im using Job System heavily without entities, and I'm seeing this error
    A Native Collection has not been disposed, resulting in a memory leak. Enable Full StackTraces to get more details.

    How do I enable full stack trace? There is no Leak Detection Menu under Jobs

    Please Advise
     
  2. UrsusDominatus1

    UrsusDominatus1

    Joined:
    Dec 23, 2020
    Posts:
    6
    Edit->Preferences->Jobs Screenshot 2022-11-05 191412.jpg
     
  3. jGate99

    jGate99

    Joined:
    Oct 22, 2013
    Posts:
    1,941
    There is no Jobs option there either,
    Just so you know, I'm using Collection Package and not Entities
    upload_2022-11-6_20-17-51.png
     
  4. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,683
    You need to have Jobs package installed to see that menu.
     
    jGate99 likes this.
  5. jGate99

    jGate99

    Joined:
    Oct 22, 2013
    Posts:
    1,941
    thats the issue, if i install jobs package it says its deprecated and jobs is now part of collections package which i already have it

    UPDATE 2
    I see collections package 1.2.4 and there doesnt seem to be any update option, however if i go to package manual i see 1.4.0 as latest
     
    Last edited: Nov 7, 2022
  6. scratchin-benni

    scratchin-benni

    Joined:
    Apr 9, 2022
    Posts:
    7
    Hi @jGate99 ,
    i am getting the same error message like you and so I am trying to enable Leak Detection too. In Unity 21.3.14f I am also not able to install Jobs package, but I have the collections package installed like you.
    Did you find a solution yet?
     
  7. Tatertots

    Tatertots

    Joined:
    Oct 18, 2013
    Posts:
    2
    @jGate99 Did either of you find a solution?
     
  8. scratchin-benni

    scratchin-benni

    Joined:
    Apr 9, 2022
    Posts:
    7
    No, unfortunately I didn't find any.
     
  9. Gekigengar

    Gekigengar

    Joined:
    Jan 20, 2013
    Posts:
    738
    These options are not available with only Jobs & Burst package installed, and collection package gave an error on Unity 2022.2.7f1
    Code (CSharp):
    1. error CS0006: Metadata file 'Library/PackageCache/com.unity.ext.nunit@2.0.3/net35/unity-custom/nunit.framework.dll' could not be found
    I don't understand why something so crucial for using/debugging Jobs is not in the Jobs package itself.
     
  10. Spy-Master

    Spy-Master

    Joined:
    Aug 4, 2022
    Posts:
    581
    Jobs package has been folded into Collections since 1.4.0. Do not install Jobs separately, it is obsolete.
    Install Collections 1.4.0 or 2.1.0-pre.11.
    Errors like you posted are just indicating a DLL from the previous compilation is missing. Just restart the editor.
     
  11. BOBchasing

    BOBchasing

    Joined:
    Mar 3, 2020
    Posts:
    5
    I have the same error message. Did you find a solution yet?
    Leak Detected : Persistent allocates 2 individual allocations. To find out more please enable 'Jobs/LeakDetection/Full StackTraces' and reproduce the leak again.
    Unity version : 2022.3.0f1
     
  12. Ziplock9000

    Ziplock9000

    Joined:
    Jan 26, 2016
    Posts:
    360
    I've been having this error message since the start of the project. I left unity open and it gobbled up almost 50GB of RAM on a small 2D game.
     
    macoson likes this.
  13. hzalkarim

    hzalkarim

    Joined:
    May 31, 2019
    Posts:
    1
    Apparently, you have to check the Enter Play Mode Options
    upload_2023-6-13_7-59-49.png

    They actually mention it on the documentation IIRC. Tho this one time I decided not to check it, hence I go to this forum.
     
    HaChau likes this.
  14. Aethenosity

    Aethenosity

    Joined:
    Jun 2, 2017
    Posts:
    16
    I'm not sure that is related to the issue at hand. I've had the option selected the whole time, and I'm getting this error
     
    Eristen likes this.
  15. elliotc-unity

    elliotc-unity

    Unity Technologies

    Joined:
    Nov 5, 2015
    Posts:
    230
    Edit->Preferences->Jobs->Leak Detection Level
     
    Aethenosity and PatientPhantom like this.
  16. PatientPhantom

    PatientPhantom

    Joined:
    Feb 16, 2016
    Posts:
    2
    Why hide an often used toggle like this? The previous location under the menu was much more useful.
     
  17. Aethenosity

    Aethenosity

    Joined:
    Jun 2, 2017
    Posts:
    16
    Thank you, I looked in project settings, and stupidly didn't check preferences.
     
    JamesWjRose likes this.
  18. Saniell

    Saniell

    Joined:
    Oct 24, 2015
    Posts:
    193
    I second the question. Why did you remove that from upper menu?
     
    Predulus, soundeosdev and Aethenosity like this.
  19. Nick-Nexefy

    Nick-Nexefy

    Joined:
    Mar 20, 2019
    Posts:
    8
  20. dauki

    dauki

    Joined:
    Nov 4, 2022
    Posts:
    4
    How do i enable this in Unity 2021? There is no "Jobs" in preferences. Yes, i have the collection package installed.
     
    Last edited: Oct 20, 2023
    uurha and WoeZ like this.