*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** NSAllocateMemoryPages(10969344) failed'
I have been seeing this exception several time, but it's not reproducible. From crash report, I know it crashed after -[NSData dataWithBytes:] this line. I searched for answer but I couldn't find one 100% convincing to me.
- Could that be caused by trying to alloc memory and exceed heap memory limit?
- If yes, how to solve it other than optimizing overall application memory management?
- If no, what couldn't cause this crash?
Thank!!