Crash when trying to use instruments memory debugging

Hello, I am trying to investigate my apps memory usage using the instruments tool. Whenever I attach instruments my app crashes, when I have it connected to xcode as well I can see that the crash occurs in liboainject: ___lldb_unamed_symbol117 with SIGBUS.

Here's what the stack looks like.

Is this a known issue? Are there any workarounds or things I can do to figure out what is causing the crash?

Start by adding an exception breakpoint in Xcode. An exception breakpoint will pause your app at the point of the crash so you can see where the crash occurs in your code. In Xcode choose Debug > Breakpoints > Creation Exception Breakpoint to set an exception breakpoint.

For anyone to provide further help, you have to provide more information. Some helpful information to provide includes the following:

  • When does your app crash, at startup or when something else happens in your app?
  • Is this an iOS or Mac app?
  • Does your app use SwiftUI, UIKit, AppKit, or some other framework?
  • What version of Xcode are you running?
  • Is your app a document app or a regular app?
  • Did you add any code recently that could cause the crash? Or did the app start crashing without you making any code changes?

If the exception breakpoint points at code you wrote, provide that code. The stack trace you included doesn't have enough information for anyone to help. People here are going to need to see code to help you.

Crash when trying to use instruments memory debugging
 
 
Q