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. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  3. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

Snapshot fails in build - Encountered Invalid Memory Region signal

Discussion in 'Profiler Previews' started by Sandler, Oct 13, 2020.

  1. Sandler

    Sandler

    Joined:
    Nov 6, 2015
    Posts:
    241
    Hi when i try to take an memory snapshot for an build (window and android) im encountering following error:

    Editor.log

    MemoryCapture: Header Serialization : 0 ms
    MemoryCapture: Metadata Serialization : 0 ms
    MemoryCapture: Capture flags Serialization : 0 ms
    MemoryCapture: Managed Heaps : 329 ms
    MemoryCapture: Managed Stacks : 0 ms
    MemoryCapture: Managed Metadata : 102 ms
    MemoryCapture: GC Handles : 0 ms
    MemoryCapture: Native Types : 0 ms
    MemoryCapture: Native Objects : 7 ms
    MemoryCapture: Runtime Information Serialization : 0 ms
    MemoryCapture: Native Allocation Header : 0 ms
    MemoryCapture: Native Allocation Labels : 0 ms
    MemoryCapture: Native Root References : 0 ms
    Encountered Invalid Memory Region signal
    (Filename: C:\buildslave\unity\build\Modules/Profiler/Runtime/MemorySnapshotProcess.cpp Line: 1340)

    Any idea whats going on?
     
  2. Sandler

    Sandler

    Joined:
    Nov 6, 2015
    Posts:
    241
    im using latest 2019 version and packagemanager 0.2.6preview
     
  3. alexrvn

    alexrvn

    Unity Technologies

    Joined:
    May 16, 2017
    Posts:
    53
    Heya! Looking into that right now, are the players also built with latest 2019.4?

    Edit:
    Tested on latest 19.4 and everything works as expected. Are you trying to snapshot older version builds?
     
    Last edited: Oct 14, 2020
  4. silentseven

    silentseven

    Joined:
    Mar 6, 2013
    Posts:
    1
    Having the same issue here. Attempting to take a memory snapshot of a remote Linux player from a Windows machine, both 2019.4.8f1. Managed Objects capture fine but Native ones fail in the logs with

    MemoryCapture: Header Serialization : 163 ms
    MemoryCapture: Metadata Serialization : 0 ms
    MemoryCapture: Capture flags Serialization : 0 ms
    MemoryCapture: Managed Heaps : 4354 ms
    MemoryCapture: Managed Stacks : 0 ms
    MemoryCapture: Managed Metadata : 126 ms
    MemoryCapture: GC Handles : 61 ms
    MemoryCapture: Native Types : 0 ms
    MemoryCapture: Native Objects : 2084 ms
    MemoryCapture: Runtime Information Serialization : 0 ms
    MemoryCapture: Native Allocation Header : 0 ms
    MemoryCapture: Native Allocation Labels : 0 ms
    MemoryCapture: Native Root References : 0 ms
    Encountered Invalid Memory Region signal
    (Filename: C:\buildslave\unity\build\Modules/Profiler/Runtime/MemorySnapshotProcess.cpp Line: 1301)

    MemoryCapture: Failed processing of Native Memory Region
    MemoryCapture: Failed processing of Native Allocation Footer
    MemoryCapture took: 6788 ms


    Additionally, the Memory Profiler UI gets stuck showing a progress bar that never goes away, giving the illusion it's still doing something.
     
  5. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,469
    2019.4.8 got hit by a regression. Iirc the fix for that one landed on 2019.4.10, but in case that it wasn't that, the higher the patch release version the more likely it's fixed.
     
    silentseven likes this.