Frequent crashes with AVFoundation

I have an app written using AVFoundation, frequently I get this error message "Terminated due to memory issues". I know I am messing up with the API somewhere, but I was trying to get a descent stack trace of the same. Nothing gets captured in the XCode, but Device logs shows following crash logs


{

"crashReporterKey" : "6ca28fb17581dd43775ea43b4cd0b8d8c60ef6a9",

"kernel" : "Darwin Kernel Version 17.6.0: Mon Apr 30 18:48:32 PDT 2018; root:xnu-4570.60.21~3\/RELEASE_ARM64_T8015",

"product" : "iPhone10,5",

"incident" : "97413519-A236-4444-9163-F830B67841F4",

"date" : "2018-09-25 14:30:01.61 +0530",

"build" : "iPhone OS 11.4 (15F79)",

"timeDelta" : 3,

"memoryStatus" : {

"compressorSize" : 4961,

"compressions" : 6603290,

"decompressions" : 4410093,

"zoneMapCap" : 402653184,

"largestZone" : "vm pages array",

"largestZoneSize" : 8917104,

"pageSize" : 16384,

"uncompressed" : 13832,

"zoneMapSize" : 79151104,

"memoryPages" : {

"active" : 8711,

"throttled" : 0,


{

"crashReporterKey" : "6ca28fb17581dd43775ea43b4cd0b8d8c60ef6a9",

"kernel" : "Darwin Kernel Version 17.6.0: Mon Apr 30 18:48:32 PDT 2018; root:xnu-4570.60.21~3\/RELEASE_ARM64_T8015",

"product" : "iPhone10,5",

"incident" : "28F6ED6A-E20B-4CEF-9AD5-72ECC0A3BF5A",

"date" : "2018-09-22 14:32:20.16 +0530",

"build" : "iPhone OS 11.4 (15F79)",

"timeDelta" : 8,

"memoryStatus" : {

"compressorSize" : 26249,

"compressions" : 2686350,

"decompressions" : 1813803,

"zoneMapCap" : 402653184,

"largestZone" : "APFS_4K_OBJS",

"largestZoneSize" : 25133056,

"pageSize" : 16384,

"uncompressed" : 49357,

"zoneMapSize" : 99778560,

"memoryPages" : {

"active" : 30076,

"throttled" : 0,




Could someone please help me decipher these ?


-Abhishek