Disk Write Exception

My test flight application crashed while doing a disk writing operation. I saw the following error in crash log

1073.76 MB of file backed memory dirtied over 705 seconds (1522.14 KB per second average), exceeding limit of 12.43 KB per second over 86400 seconds\

After a little bit of research I found from Apple documentation that System will throw an exception if disk writes from the app exceeds a certain limit in 24 hours window

[https://developer.apple.com/documentation/xcode/reducing-disk-writes)

But the threshold is not documented. But looking at the crash log we can reverse calculate this threshold as 12.43KB * 86400 ~ 1 GB

Does this means that iOS application won't be able to write data more than this limit (1 GB) per day?

Post not yet marked as solved Up vote post of aravindnair Down vote post of aravindnair
4k views

Replies

Seems like that.

In my case I received various reports:

  • iPad14,3 reached 4294.97 writes
  • iPad7,2, iPad8,7 and iPhone13,4 all reached 1073.74 writes

Nut sure if it is version dependant or maybe storage size dependant but the limit can change.

I've just asked for code-level support to Apple, will update with the response.

Did you get any clear response on this?