Is it possible to symbolicate an iOS Hang report (.ips file)?


I’ve got an .ips file from an iPhone (created by turning on Hang Detection then re-creating a hang problem).

Near the top of the hang stack is

main + 96 (MyApp + 111416) [0x1040bb338]

Which is no use in trying to diagnose the issue.
The Apple instructions for symbolicating a crash file say to use Xcode or the command line.

https://developer.apple.com/documentation/xcode/adding-identifiable-symbol-names-to-a-crash-report#Symbolicate-the-crash-report-with-the-command-line

However this isn’t a crash file, it’s a hang file, but is that any reason why it shouldn’t be symbolicatable. Dragging it into Xcode as they say to do for crash files doesn’t do anything, so instead I’ve been trying to use the command:

atos -arch <BinaryArchitecture> -o <PathToDSYMFile>/Contents/Resources/DWARF/<BinaryName>  -l <LoadAddress> <AddressesToSymbolicate>

However I don’t know how to determine the LoadAddress and AddressToSymbolicate, as the example given is for a crash file.

I tried this but it didn’t work (it says fg: no current job)

 atos -arch arm64 -o MyApp.app.dSYM/Contents/Resources/DWARF/MyApp  -l 111416 0x1040bb338   

Is it possible to get the load address and address to symbolicate from the .ips file?

Here’s the top of the .ips file:

{"bug_type":"328","ht_enablement_prefix":"HTThirdPartyDevSupport","app_name":"MyApp","timestamp":"2024-02-05 13:17:35.00 -0800","app_version":"16.1","slice_uuid":"","adam_id":0,"build_version":"0","bundleID":"com.cequint.nameid.verizon","duration_ms":"9855","bug_subtype":"heavy","is_first_party":0,"share_with_app_devs":1,"os_version":"iPhone OS 17.4 (21E5184k)","incident_id":"75B48EBD-EE50-4F76-96AB-C65A51C230C9","name":"MyApp","roots_installed":0}
Date/Time:        2024-02-05 13:16:39.710 -0800
End time:         2024-02-05 13:16:49.565 -0800
OS Version:       iPhone OS 17.4 (Build 21E5184k)
Architecture:     arm64e
Report Version:   47
Incident Identifier: 75B48EBD-EE50-4F76-96AB-C65A51C230C9

Data Source:      KPerf Lightweight PET
Shared Cache:     7D402D22-BB6B-3B47-9C63-90FAF8061A28 slid base address 0x19ab38000, slide 0x1ab38000 (System Primary)
Shared Cache:     4A16245E-C114-3CD8-A848-490D27D024BB slid base address 0x197bbc000, slide 0x17bbc000 (DriverKit)
Reason:           UIKit-runloop-MyApp: timeout 9807ms

Command:          MyApp
Path:             /private/var/containers/Bundle/Application/3C491221-0398-47C5-A8F6-307D0AB54A86/MyApp.app/MyApp
Identifier:       com.cequint.nameid.verizon
Version:          16.1 (0)
Is First Party:   No
Architecture:     arm64
PID:              860
Time Since Fork:  17456s

Event:            Timed Out Runloop Hang
Duration:         9.86s
Steps:            985 (10ms sampling interval)
Report threshold: 2s

Hardware model:   iPhone13,3
Active cpus:      6
HW page size:     16384
VM page size:     16384

Time Since Boot:  235294s
Time Awake Since Boot: 8271s

Total CPU Time:   29.482s (23.1G cycles, 33.5G instructions, 0.69c/i)
Memory pressure:  average 50%, highest 50%
Available memory: average 2996.84 MB, lowest 2949.88 MB
I/O statistics:
  Overall:        2049 IOs (208 IOs/s), 37.16 MB (3869.06 KB/s)
  Tier0:          1376 IOs (140 IOs/s), 29.03 MB (3022.35 KB/s)
  Tier1:          295 IOs (30 IOs/s), 1436 KB (146.00 KB/s)
  Tier2:          378 IOs (38 IOs/s), 6892 KB (700.72 KB/s)
Advisory levels:  Battery -> 3, User -> 3, ThermalPressure -> 0, Combined -> 3
Free disk space:  97.83 GB/119.10 GB, low space threshold 150 MB
Vnodes Available: 69.28% (16628/24000, 12000 allocated, 12000 soft limit)

Preferred User Language: en-US
Country Code:     US
Keyboards:        en_US QWERTY
OS Cryptex File Extents: 1

Heaviest stack for the main thread of the target process:
  985  start + 2240 (dyld + 23940) [0x1c6e14d84]
  985  main + 96 (MyApp + 111416) [0x1040bb338]
  985  UIApplicationMain + 340 (UIKitCore + 2273848) [0x1a513e238]
  985  -[UIApplication _run] + 888 (UIKitCore + 2276348) [0x1a513ebfc]
  985  GSEventRunModal + 164 (GraphicsServices + 13536) [0x1e7c824e0]
  985  CFRunLoopRunSpecific + 608 (CoreFoundation + 211304) [0x1a2cce968]
  974  __CFRunLoopRun + 1996 (CoreFoundation + 213528) [0x1a2ccf218]
  974  __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16 (CoreFoundation + 226588) [0x1a2cd251c]
  974  _dispatch_main_queue_callback_4CF + 44 (libdispatch.dylib + 74168) [0x1aab941b8]
  970  _dispatch_main_queue_drain + 1060 (libdispatch.dylib + 75244) [0x1aab945ec]
  970  _dispatch_client_callout + 20 (libdispatch.dylib + 15828) [0x1aab85dd4]
  970  _dispatch_call_block_and_release + 32 (libdispatch.dylib + 8508) [0x1aab8413c]
  970  __49-[RCTCxxBridge _prepareModulesWithDispatchGroup:]_block_invoke + 156 (MyApp + 11181024) [0x104b49be0]
  970  -[RCTModuleData instance] + 816 (MyApp + 11523844) [0x104b9d704]
  970  RCTUnsafeExecuteOnMainQueueSync + 52 (MyApp + 11932588) [0x104c013ac]
  970  __25-[RCTModuleData instance]_block_invoke + 44 (MyApp + 11524764) [0x104b9da9c]
  970  -[RCTModuleData setUpInstanceAndBridge:] + 2168 (MyApp + 11517260) [0x104b9bd4c]
  970  -[RCTModuleData _initializeModule] + 96 (MyApp + 11518972) [0x104b9c3fc]
  970  -[RCTPerfMonitor initialize] + 88 (MyApp + 12253980) [0x104c4fb1c]
  970  -[RCTPerfMonitor devMenuItem] + 92 (MyApp + 12254288) [0x104c4fc50]
  970  -[RCTModuleRegistry moduleForName:] + 48 (MyApp + 11560952) [0x104ba67f8]
  970  -[RCTModuleRegistry moduleForName:lazilyLoadIfNecessary:] + 140 (MyApp + 11561104) [0x104ba6890]
  970  -[RCTCxxBridge moduleForName:lazilyLoadIfNecessary:] + 712 (MyApp + 11162424) [0x104b45338]
  970  -[RCTModuleData instance] + 1168 (MyApp + 11524196) [0x104b9d864]
  970  -[RCTModuleData setUpInstanceAndBridge:] + 2168 (MyApp + 11517260) [0x104b9bd4c]
  970  -[RCTModuleData _initializeModule] + 96 (MyApp + 11518972) [0x104b9c3fc]
  970  -[RCTDevSettings initialize] + 164 (MyApp + 12184124) [0x104c3ea3c]
  970  +[RCTPackagerConnection sharedPackagerConnection] + 88 (MyApp + 11603192) [0x104bb0cf8]
  970  _dispatch_once_callout + 32 (libdispatch.dylib + 22100) [0x1aab87654]
  970  _dispatch_client_callout + 20 (libdispatch.dylib + 15828) [0x1aab85dd4]
  970  __49+[RCTPackagerConnection sharedPackagerConnection]_block_invoke + 36 (MyApp + 11603268) [0x104bb0d44]
  970  -[RCTPackagerConnection init] + 172 (MyApp + 11603472) [0x104bb0e10]
  970  -[RCTBundleURLProvider packagerServerHostPort] + 332 (MyApp + 11041188) [0x104b279a4]
  970  -[RCTBundleURLProvider guessPackagerHost] + 196 (MyApp + 11040020) [0x104b27514]
  970  +[RCTBundleURLProvider isPackagerRunning:] + 72 (MyApp + 11037308) [0x104b26a7c]
  970  +[RCTBundleURLProvider isPackagerRunning:scheme:] + 616 (MyApp + 11038000) [0x104b26d30]
  970  _dispatch_semaphore_wait_slow + 132 (libdispatch.dylib + 18976) [0x1aab86a20]
  970  semaphore_wait_trap + 8 (libsystem_kernel.dylib + 6804) [0x1ebe78a94]
 *970  ??? (<30CE5ECC-BDD1-3D1F-B10E-75066730E6C5> + 607672) [0xfffffff007de85b8]


    Heaviest stack for the main thread of the target process:
      985  start + 2240 (dyld + 23940) [0x1c6e14d84]
      985  main + 96 (MyApp + 111416) [0x1040bb338]
      985  UIApplicationMain + 340 (UIKitCore + 2273848) [0x1a513e238]
      985  -[UIApplication _run] + 888 (UIKitCore + 2276348) [0x1a513ebfc]
      985  GSEventRunModal + 164 (GraphicsServices + 13536) [0x1e7c824e0]
      985  CFRunLoopRunSpecific + 608 (CoreFoundation + 211304) [0x1a2cce968]
      974  __CFRunLoopRun + 1996 (CoreFoundation + 213528) [0x1a2ccf218]
      974  __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16 (CoreFoundation + 226588) [0x1a2cd251c]
      974  _dispatch_main_queue_callback_4CF + 44 (libdispatch.dylib + 74168) [0x1aab941b8]
      970  _dispatch_main_queue_drain + 1060 (libdispatch.dylib + 75244) [0x1aab945ec]
      970  _dispatch_client_callout + 20 (libdispatch.dylib + 15828) [0x1aab85dd4]
      970  _dispatch_call_block_and_release + 32 (libdispatch.dylib + 8508) [0x1aab8413c]
      970  __49-[RCTCxxBridge _prepareModulesWithDispatchGroup:]_block_invoke + 156 (MyApp + 11181024) [0x104b49be0]
      970  -[RCTModuleData instance] + 816 (MyApp + 11523844) [0x104b9d704]
      970  RCTUnsafeExecuteOnMainQueueSync + 52 (MyApp + 11932588) [0x104c013ac]
      970  __25-[RCTModuleData instance]_block_invoke + 44 (MyApp + 11524764) [0x104b9da9c]
      970  -[RCTModuleData setUpInstanceAndBridge:] + 2168 (MyApp + 11517260) [0x104b9bd4c]
      970  -[RCTModuleData _initializeModule] + 96 (MyApp + 11518972) [0x104b9c3fc]
      970  -[RCTPerfMonitor initialize] + 88 (MyApp + 12253980) [0x104c4fb1c]
      970  -[RCTPerfMonitor devMenuItem] + 92 (MyApp + 12254288) [0x104c4fc50]
      970  -[RCTModuleRegistry moduleForName:] + 48 (MyApp + 11560952) [0x104ba67f8]
      970  -[RCTModuleRegistry moduleForName:lazilyLoadIfNecessary:] + 140 (MyApp + 11561104) [0x104ba6890]
      970  -[RCTCxxBridge moduleForName:lazilyLoadIfNecessary:] + 712 (MyApp + 11162424) [0x104b45338]
      970  -[RCTModuleData instance] + 1168 (MyApp + 11524196) [0x104b9d864]
      970  -[RCTModuleData setUpInstanceAndBridge:] + 2168 (MyApp + 11517260) [0x104b9bd4c]
      970  -[RCTModuleData _initializeModule] + 96 (MyApp + 11518972) [0x104b9c3fc]
      970  -[RCTDevSettings initialize] + 164 (MyApp + 12184124) [0x104c3ea3c]
      970  +[RCTPackagerConnection sharedPackagerConnection] + 88 (MyApp + 11603192) [0x104bb0cf8]
      970  _dispatch_once_callout + 32 (libdispatch.dylib + 22100) [0x1aab87654]
      970  _dispatch_client_callout + 20 (libdispatch.dylib + 15828) [0x1aab85dd4]
      970  __49+[RCTPackagerConnection sharedPackagerConnection]_block_invoke + 36 (MyApp + 11603268) [0x104bb0d44]
      970  -[RCTPackagerConnection init] + 172 (MyApp + 11603472) [0x104bb0e10]
      970  -[RCTBundleURLProvider packagerServerHostPort] + 332 (MyApp + 11041188) [0x104b279a4]
      970  -[RCTBundleURLProvider guessPackagerHost] + 196 (MyApp + 11040020) [0x104b27514]
      970  +[RCTBundleURLProvider isPackagerRunning:] + 72 (MyApp + 11037308) [0x104b26a7c]
      970  +[RCTBundleURLProvider isPackagerRunning:scheme:] + 616 (MyApp + 11038000) [0x104b26d30]
      970  _dispatch_semaphore_wait_slow + 132 (libdispatch.dylib + 18976) [0x1aab86a20]
      970  semaphore_wait_trap + 8 (libsystem_kernel.dylib + 6804) [0x1ebe78a94]
     *970  ??? (<30CE5ECC-BDD1-3D1F-B10E-75066730E6C5> + 607672) [0xfffffff007de85b8]

<snip>

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img