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
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

(Case 1034172) PackedMemorySnapshot: "typeDescriptions" array is empty

Discussion in '2018.2 Beta' started by Peter77, May 5, 2018.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,586
    Using the UnityEditor.MemoryProfiler API to capture a PackedMemorySnapshot, does not contain type descriptions. The snapshot.typeDescriptions array is empty always.

    This issue is very important to me, as I develop a Memory Profiler for Unity, called Heap Explorer. This issue causes every tool that uses the UnityEditor.MemoryProfiler API to stop working.

    A project to reproduce the issue is attached to Case 1034172.

    Reproduce
    • Open user attached project
    • Click Mainmenu > BugReport > Open TestCode Window
    • Click "Capture Memory" button
    Observe the text shows "typeDescriptions.Length = 0".

    Expected
    PackedMemorySnapshot.typeDescriptions should not be empty.

    A fix would be highly appreciated. Thank you in advance.
     
    pavelkouril likes this.
  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,586
    QA was able to reproduce the issue, thanks QA! It's now available in the public issue tracker:
    https://issuetracker.unity3d.com/is...o-when-taking-a-packedmemorysnapshot-snapshot

    It turned out that a lot more Unity versions are affected by this bug, not only the latest beta. Even 2017.4 is affected, so nobody is able to capture a memory snapshot with any tool using 2017.4 for example. I would very much appreciate if this can be fixed soon.
     
    Last edited: May 12, 2018
  3. jvaarala

    jvaarala

    Joined:
    Oct 1, 2016
    Posts:
    4
    +1. Fix this please. Can't do memory analysis on iOS (snapshot callback never fires), OR editor (typedescriptions empty). Upgraded from 5.6 to 2017.4 and now can't do memory analysis.
     
  4. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,130
    This is most likely going to be fixed in b9 or b10.
     
  5. jvaarala

    jvaarala

    Joined:
    Oct 1, 2016
    Posts:
    4
    Any plans to backport it to the LTS (2017.4) ?
     
  6. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,586
  7. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,130
    The assigned dev wasn't able to reproduce the issue on their branch anymore, whose change sets will be in the upcoming betas. I've poked QA to verify it.
     
    Peter77 likes this.
  8. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,586
    That's great, thank you!