Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Value is <unknown type> in MemoryProfiler

Discussion in 'Profiler Previews' started by briank, Jan 14, 2019.

  1. briank

    briank

    Joined:
    Mar 25, 2017
    Posts:
    74
    I'm trying to track down why certain objects are lingering in memory. As I walk up the references, I eventually land at this:

    upload_2019-1-14_11-9-1.png

    What does this 'unknown' object indicate?
     
  2. samfisher-cf

    samfisher-cf

    Joined:
    Jun 13, 2016
    Posts:
    5
    While I can't say for sure in your case, I have seen this for references from static fields. The profiler logs the connection between the object and the class (which has a ref to the object) but there is no view that displays the class with static fields currently. There is only all objects, and all managed types (Table > Raw Data > Managed Types), but the managed types table is not expandable per class.
     
  3. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,097
  4. briank

    briank

    Joined:
    Mar 25, 2017
    Posts:
    74
    @MartinTilo , I still see this with IL2CPP actually. I'm not sure if these are static fields; it's possible, but I haven't tracked it down yet.
     
  5. alexrvn

    alexrvn

    Unity Technologies

    Joined:
    May 16, 2017
    Posts:
    53
    @briank Thank you for pointing this out, we are planning to do a sweep over this behavior and unify. Unknown could also mean a datatype that is not accounted for in the package logic.
     
    Last edited: Jan 25, 2019