Game crashes on iOS

Hi,

I have packaged and released a beta of my game for iOS through TestFlight, and have found my game is crashing very frequently. It normally happens when changing map, but can also happen in the middle of play.

The crash logs provided are not UE4Game logs, and I don’t know how to decipher what is going wrong. I have attached a collection of Crash Logs here. I have also posted an example of one below.

Thank you.

Incident Identifier: CE0D725E-112F-4D0F-A309-19DD6D56331E
CrashReporter Key:   7b2b9e093356763dd543908356a4ebaee558e769
Hardware Model:      iPad4,1
OS Version:          iPhone OS 8.4.1 (12H321)
Kernel Version:      Darwin Kernel Version 14.0.0: Wed Aug  5 19:25:56 PDT 2015; root:xnu-2784.40.6~18/RELEASE_ARM64_S5L8960X
Date:                2017-01-16 22:18:25 +0000
Time since snapshot: 230 ms

Free pages:                              5841
Active pages:                            96099
Inactive pages:                          45449
Speculative pages:                       4088
Throttled pages:                         0
Purgeable pages:                         0
Wired pages:                             47124
File-backed pages:                       39814
Anonymous pages:                         105822
Compressions:                            1653853
Decompressions:                          394867
Compressor Size:                         55193
Uncompressed Pages in Compressor:        130304
Page Size:                               16384
Largest process:   AstroChimp

Processes
     Name       |            <UUID>                |     CPU Time|     rpages|       purgeable| recent_max| lifetime_max| fds |  [reason]         | (state)

           timed <cff5a367507338d09b379c4099696505>         1.263         373                0           -          1042   50                       (daemon) (idle)
            awdd <408c51de954c3defaa6851f9906815e6>         0.487         272                0           -           963   50                       (daemon) (idle)
  mobactivationd <6c3eadf7fe1931fb8a681b36ddfced31>         0.240         205                0           -           643   50                       (daemon) (idle)
MobileGestaltHel <419ff2fa11a13a52add761d6f324b89a>         0.060         164                0           -           510   50                       (daemon) (idle)
      calaccessd <997908717a0e30d0bdec9e3086a9ab2c>         0.143         467                0           -          1423   50                       (daemon) (idle)
DuetHeuristic-BM <73025de5c2983257a8e0148b67b38626>         0.142         249                0           -           690   50                       (daemon) (idle)
       accountsd <2142f0d7abe03be5ad8196ce4c1769c3>         6.863         687                0           -          1766   50                       (daemon) (idle)
        recentsd <d89ceddcd882327e866d5128e787f79b>         0.215         599                0           -          1653   50                       (daemon) (idle)
         keybagd <b17e973298733db188f4b5eb52932ee6>         0.163         128                0           -           289   50                       (daemon) (idle)
        misagent <b79107bd4f2f30dba11667b9fa166648>         0.071         145                0           -           324   50                       (daemon) (idle)
       coreduetd <adafcd3f220c34a3aa195390e564c841>        65.323        1050                0           -          1750   50                       (daemon) (idle)
        sandboxd <9d7a192166123cb4ace3acdec2daea72>         0.061         122                0           -           288   50                       (daemon) (idle)
           gamed <febdde42f67e31b9a1cb31b71208832a>         4.406        1033                0           -          2040   50                       (daemon) (idle)
 gamecontrollerd <a8fa3294d97b3c6aa4d21f1f200992c4>         0.045         281                0           -          1215   50                       (daemon) (idle)
    itunesstored <1cb45f7f401c32d4a8f80917e0133b1c>        27.585        3332                0           -          5541  100                       (daemon) (idle)
             pkd <b310fb2ecd273561a0b2ae4085aec266>         0.279         367                0           -           827   50                       (daemon) (idle)
WirelessRadioMan <b5ed8bc92577333bb0bde4a7d0605700>         0.056         270                0           -           899   50                       (daemon) (idle)
 lsuseractivityd <169aee9551d73959a014942ddbe6dcc5>         0.444         407                0           -          1980   50                       (daemon) (idle)
   rtcreportingd <ba428449368a35c2bf4eb3953e0bde69>         0.327         420                0           -          1142   50                       (daemon) (idle)
       securityd <6873338a845139f0b792c4461f924b76>         6.535         746                0           -          1501   50                       (daemon) (idle)
coresymbolicatio <bb22d900394c38f899677a2dcc32d9d3>         0.023         102                0           -           931   50                       (daemon) (idle)
     diagnosticd <b8b88ecf403a3bea86f7e12d0fd28393>         0.019         117                0           -           231   50                       (daemon) (idle)
   nsurlsessiond <6767a849847c39ae8e6334940d4e48b4>       107.308         848                0           -          2495   50                       (daemon)
            swcd <83ae947dad063d54985a37e0477d9312>         0.550         669                0           -          1650  100                       (daemon)
      MobileMail <7a67b896c6f73103a82396dcb793f01d>         4.906        1616                0           -          4225   50                       (resume) (continuous)
             ■■■ <eb0e256edfc435b791bdb90f8d3cc401>         2.873         498                0           -          1424   50                       (daemon)
            tccd <eda84621bba33c6985607830bbd6d671>         0.336         277                0           -           852   50                       (daemon)
             kbd <c23c08f51d1933f4ac9b4cc24e8a3587>         0.515        1540                0           -          3207   50                       (daemon)
      AstroChimp <8bcdc5810e3f3ec6a0b53853424599ec>        52.653      179166                0           -        127080  100  [per-process-limit]  (audio) (frontmost) (resume)
        BTServer <e8393cbed5af397ea6c13032e66122d7>         0.985         497                0           -          1720   50                       (daemon)
           wifid <69af100cf4d138a2a2afe39e15031461>        19.051         692                0           -          1897   50                       (daemon)
       locationd <d828b7a53c7e343aac71a0ba9e865285>        34.391        1508                0           -          3459   50                       (daemon)
      discoveryd <703eac07c6823551b351ca50c8617374>        34.610         774                0           -          1808  100                       (daemon)
       lockdownd <7107c1be93dd343fa58a4b5e2af6cf15>         7.182         327                0           -          1004   50                       (daemon)
identityservices <7d32337e76f73331b63504fd78403ec6>         4.212         978                0           -          2525   50                       (daemon)
         imagent <4ff9e2c4c33c3c6bac323e545febcc21>         2.215         594                0           -          1684   50                       (daemon)
    mediaserverd <f9793a15ea9d3f1c916d436b30703dd4>       103.604        2139                0           -          4579   50                       (daemon)
   iaptransportd <6687069506fc3ba6b6586d4cddff182a>         1.810         384                0           -          1425   50                       (daemon)
        cfprefsd <203df7aeb5613f2591a24bd33b373fdc>         5.109         407                0           -           741   50                       (daemon)
         syslogd <e985ebf1ab9638df9fbbd1af9565bf49>        14.431         228                0           -           361   50                       (daemon)
          powerd <82fbbb9bbb8836b88b2b78d8ca022cc4>         5.057         256                0           -           507   50                       (daemon)
            apsd <e41cbfa9060e31a9a0963eb754a12b08>         6.922         778                0           -          2317   50                       (daemon)
        networkd <6d9c57d65d0635849e1bb8cadd6d6ad2>        19.609         897                0           -          1948   50                       (daemon)
     dataaccessd <44721a09547a352da81b60440e015e0c>         4.212        1225                0           -          3811   50                       (daemon)
        sharingd <2a3948dd75db3615b1cdc8cd864fed73>         1.575         787                0           -          2563   50                       (daemon)
    mediaremoted <2d2845cb4a3e3313ac3382380a783014>         0.780         442                0           -          1873   50                       (daemon)
     SpringBoard <1c83b21c962e3b5791cb518f829d9aa4>        77.746       10209                0           -         45903   50                      
      backboardd <684cf908be40359686c55864b395b108>       295.386       16167                0           -          4592   50                       (daemon)
  UserEventAgent <e23056e8e53d3077af26829f9abdc867>        31.652         895                0           -          2337  100                       (daemon)
       fseventsd <1f3a77a5cb1f3b0d8b0724186fb0e3ac>         2.212         330                0           -           507   50                       (daemon)
         configd <5ca385b2232439d5bccd111e065f77b3>        18.162         513                0           -          1278   50                       (daemon)
    fairplayd.A2 <ea6d021cd6bc38158d25eef7d268b74a>         1.833         175                0           -          1633   50                       (daemon)
   wirelessproxd <41904877de153515bcce5dac1203f63b>         0.104         228                0           -           812   50                       (daemon)
      assertiond <04bfb60d7d963e37b769c9ad7a15e06b>         1.845         304                0           -           936   50                       (daemon)
       distnoted <829402ac5fbe37bbb323304d2424319a>         0.846         197                0           -           321   50                       (daemon)
      aggregated <ff22d37c5925349da4364e4667cd5693>       119.962        1277                0           -          2210   50                       (daemon)
filecoordination <f92a0133924039cf9c93b11126fe5b57>         0.670         255                0           -           866   50                       (daemon)
             ubd <72a7c79bedf53f079270d500f2a1ba87>         0.081         236                0           -           843   50                       (daemon)
   nsurlstoraged <a77939a4af6632e39c6ad798e8133f48>         3.792         865                0           -          1486  100                       (daemon)
CommCenterClassi <c69aa8f401e235cc9bb49f05fc7e8724>         2.899         476                0           -          1688   50                       (daemon)
         notifyd <3d474663ff4d3afdb2b658f31641ba45>         7.727         346                0           -           427   50                       (daemon)
     ReportCrash <1a209928bf773ebabad1e42630986f8e>         0.084         375                0           -           762   50                       (daemon)

**End**

It would appear the important line here is:

AstroChimp <8bcdc5810e3f3ec6a0b53853424599ec>        52.653      179166                0           -        127080  100  [per-process-limit]  (audio) (frontmost) (resume)

Looks like the OS is killing my game because the device has run out of memory. My game should not be using that much memory, and as it is a content-only project, I don’t understand how there could be a memory leak. My game also runs perfectly on Android.

The crash log says (audio), but I tried removing all the audio from the game but it still runs out of memory and gives the same message in the crash logs.

As I say it normally happens when I am changing maps; is it possible the iOS garbage collection is a bit slow with multiple maps remaining in memory?