iOS 15 crash on MDM-Devices: "exhausted real (wall clock) time allowance of 20.00 seconds"

Since iOS15 most of our Enterprise-Apps do not launch anymore on MDM-devices. All fine in latest iOS14.

Any idea why that happens? I guess it has something to do with the amount or size of included frameworks...maybe.

{"app_name":"FiNAS","timestamp":"2021-09-21 11:24:12.00 +0200","app_version":"2.9.0.20210917-1106","slice_uuid":"a120fe26-2550-3039-9355-c2852c57ccc4","build_version":"169","platform":2,"bundleID":"com.schnulli.FiNAS2.internal.iOS","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"iPhone OS 15.0 (19A346)","incident_id":"8169FF8E-FEA9-48FC-8505-796AF63F2FFF","name":"FiNAS"}
{
  "uptime" : 2900,
  "procLaunch" : "2021-09-21 11:23:51.6173 +0200",
  "procRole" : "Foreground",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "iPad5,4",
  "procStartAbsTime" : 69957265064,
  "coalitionID" : 578,
  "osVersion" : {
    "isEmbedded" : true,
    "train" : "iPhone OS 15.0",
    "releaseType" : "User",
    "build" : "19A346"
  },
  "captureTime" : "2021-09-21 11:24:12.1732 +0200",
  "incident" : "8169FF8E-FEA9-48FC-8505-796AF63F2FFF",
  "bug_type" : "309",
  "pid" : 474,
  "procExitAbsTime" : 70450601166,
  "cpuType" : "ARM-64",
  "procName" : "FiNAS",
  "procPath" : "\/private\/var\/containers\/Bundle\/Application\/BF8A332E-4567-416F-BA1C-716EDF28CC1C\/FiNAS.app\/FiNAS",
  "bundleInfo" : {"CFBundleShortVersionString":"2.9.0.20210917-1106","CFBundleVersion":"169","CFBundleIdentifier":"com.schnulli.FiNAS2.internal.iOS","DTAppStoreToolsBuild":"12E507"},
  "storeInfo" : {"deviceIdentifierForVendor":"B04DD374-A3C4-4921-8701-C951615784FE","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "com.schnulli.FiNAS2.internal.iOS",
  "crashReporterKey" : "4d203f3c26e70f0c9a5442f39df3402b663b7719",
  "basebandVersion" : "11.01.02",
  "isCorpse" : 1,
  "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGKILL"},
  "termination" : {"flags":6,"code":2343432205,"namespace":"FRONTBOARD","reasons":["<RBSTerminateContext| domain:10 code:0x8BADF00D explanation:process-launch watchdog transgression: application<com.schnulli.FiNAS2.internal.iOS>:474 exhausted real (wall clock) time allowance of 20.00 seconds","ProcessVisibility: Foreground","ProcessState: Running","WatchdogEvent: process-launch","WatchdogVisibility: Foreground","WatchdogCPUStatistics: (","\"Elapsed total CPU time (seconds): 22.970 (user 22.970, system 0.000), 38% CPU\",","\"Elapsed application CPU time (seconds): 0.056, 0% CPU\"",") reportType:CrashLog maxTerminationResistance:Interactive>"]},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":25662,"threadState":{"x":[{"value":1},{"value":0},{"value":6159718480},{"value":6159718480},{"value":0},{"value":0},{"value":0},{"value":0},{"value":6159718064},{"value":6159718072},{"value":4},{"value":1},{"value":1},{"value":576460752303505408},{"value":81920},{"value":23434228096446320},{"value":92},{"value":1034064},{"value":0},{"value":6159718096},{"value":4309237856},{"value":520552456},{"value":3},{"value":6159719800},{"value":6159718176},{"value":0},{"value":6159719392},{"value":6159719640},{"value":1}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4311487112},"cpsr":{"value":536870912},"fp":{"value":6159718048},"sp":{"value":6159718032},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":4311293032,"matchesCrashFrame":1},"far":{"value":4311859200}},"frames":[{"imageOffset":72808,"imageIndex":0},{"imageOffset":266888,"imageIndex":0},{"imageOffset":70936,"imageIndex":0},{"imageOffset":137440,"imageIndex":0},{"imageOffset":97984,"imageIndex":0},{"imageOffset":150060,"imageIndex":0},{"imageOffset":51988,"imageIndex":0},{"imageOffset":21820,"imageIndex":0},{"imageOffset":90204,"imageIndex":0},{"imageOffset":59328,"imageIndex":0},{"imageOffset":136252,"imageIndex":0},{"imageOffset":21040,"imageIndex":0},{"imageOffset":61668,"imageIndex":0},{"imageOffset":135468,"imageIndex":0},{"imageOffset":82764,"imageIndex":0},{"imageOffset":43720,"imageIndex":0},{"imageOffset":135016,"imageIndex":0},{"imageOffset":60240,"imageIndex":0},{"imageOffset":89268,"imageIndex":0},{"imageOffset":210072,"imageIndex":0},{"imageOffset":21040,"imageIndex":0},{"imageOffset":38752,"imageIndex":0},{"imageOffset":145524,"imageIndex":0},{"imageOffset":103100,"imageIndex":0},{"imageOffset":98672,"imageIndex":0}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4311220224,
    "size" : 344064,
    "uuid" : "d7a0282e-93de-3a1e-9813-27e84517cc96",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  }
],
  "sharedCache" : {
  "base" : 6442926080,
  "size" : 2184413184,
  "uuid" : "8157e9d4-d94e-313e-8400-6216ea7efde8"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=2352K resident=0K(0%) swapped_out_or_unallocated=2352K(100%)\nWritable regions: Total=2128K written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=2128K(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nSTACK GUARD                         16K        1 \nStack                             1008K        1 \nVM_ALLOCATE                        1.0G        1 \nVM_ALLOCATE (reserved)              32K        2         reserved VM address space (unallocated)\n__DATA                             176K        3 \n__DATA_CONST                       112K        2 \n__LINKEDIT                         416K        3 \n__TEXT                            1952K        2 \ndyld private memory               1024K        1 \nmapped file                       9568K       22 \n===========                     =======  ======= \nTOTAL                              1.0G       38 \nTOTAL, minus reserved VM space     1.0G       38 \n",
  "legacyInfo" : {
  "threadTriggered" : {

  }
},
  "trialInfo" : {
  "rollouts" : [

  ],
  "experiments" : [

  ]
}
}
Post not yet marked as solved Up vote post of SupaBasti Down vote post of SupaBasti
2.3k views

Answers

The crash indicates that the watchdog timer in the OS killed the app. It seems unlikely that MDM is involved, since the watchdog timer is unrelated to MDM. I suggest having the developers of the apps investigate the crash. There's more information about the watchdog timer at https://developer.apple.com/documentation/xcode/addressing-watchdog-terminations

I am the developer of the app and there happens nothing in didFinishLaunching. Besides, if I deploy the .ipa directly to my device, all works fine (as well as in iOS14) And there was already kind of this problem in iOS14.2

  • I'm having a same crash in app store review, and cannot reproduce it. Have you solved it?

Add a Comment

We see similar issues. Is there any update that was provided? @SupaBasti; have you found the root cause / work around?

  • yes, I managed to work around on this. As I assumed, it had to do with the amount of included frameworks when included via cocoapods. I deintegrated all Pods and migrated to SwiftPackage Manager and now all works as expected.

  • But it doens't explain to me that this was not an issue on iOS14.x and now it (suddenly) is. Have you found out why?

Add a Comment