30

I'm using Xcode 10.2.1 and macOS Catalina Developer Beta 2. Whenever I try to use the Memory Graph debugger, I get this error:

Memory Graph Debugger: no serialized memory graph received from LeakAgent

Memory Graph Debugger alert

After that, the loading spinner spins indefinitely.

"Building Memory Graph" loading screen

I've tried the answers recommended under this related question, but unfortunately, none of them worked. I tried to reinstall the app; restart Xcode, the iOS Simulator and my computer; deleted the DerivedData folder, and tried different simulators - none of these worked.

Tamás Sengel
  • 55,884
  • 29
  • 169
  • 223

6 Answers6

25

I've observed the same error when did try to start memory graph using Xcode 11.2.1 (macOS Catalina 10.15.1) and iOS 12.2 Simulator.

Starting memory graph debugger with latest simulators (iOS 13.2.2) works fine.

Ilia
  • 1,434
  • 15
  • 22
20

You should use a physical device rather than a simulator to avoid this error.

Tamás Sengel
  • 55,884
  • 29
  • 169
  • 223
  • 1
    I am getting this with a physical device running iOS 13 and Xcode 11.4.1. – Pedro Paulo Amorim May 04 '20 at 15:52
  • 2
    The `leaks` command line tool does not work on a *physical device*. – gran_profaci May 05 '20 at 05:48
  • 2
    This answer implies that using the simulator is somehow erroneous, which it isn't. This issue _shouldn't_ occur when using the simulator, but it appears to be the result of a bug: https://developer.apple.com/forums/thread/115628 – Andrew Dunn Oct 16 '20 at 10:33
12

Faced the same issue recently after updating to Xcode 12.5 while being on macOS 11.2.3

The release notes for Xcode 12.5 mention:

In macOS 11.2 or earlier, leaks and other command line analysis tools fail or crash when run against processes built with Mac Catalyst and processes running in iOS 14.5 or later on simulated devices. (74690398)

Updating to macOS 11.3 helped resolve this issue with the leakagent.

asifmohd
  • 921
  • 7
  • 16
8

The above answers didn't work for me. But this one did. As the linked answer mentioned:

  1. Disable the address sanitizer
  2. Enable the malloc stack

enter image description here

Iulian Onofrei
  • 9,188
  • 10
  • 67
  • 113
MobileDev
  • 3,750
  • 4
  • 32
  • 35
4

This just happened to me with iOS version 14.5 after the Xcode update.

If you download another working simulator (e.g. the previous version), you can get the graph from that version.

Downloading Simulators can be done from the bottom of the device selector:

enter image description here

Drobs
  • 760
  • 8
  • 12
0

My issue was that I was using a simulator for iOS 12 while latest was iOS 14

altagir
  • 640
  • 8
  • 18