iOS crash due to memory exceeding 50 mb limit error ReplayKit

860 Views Asked by At

We are using ReplayKit framework to use the iOS screen recording feature for our app. We are processing the CMSampleBufferRef and doing a conversion into UIImage using VideoToolBox framework. After processing a few buffers the extension is crashing due to memory exceeding 50 MB with alert :

"Live Broadcast to **** has stopped due to: (null)"

My question is :

  • Is there any better way to convert CMSampleBufferRef to UIImage, since I have used many ways and nothing worked except VideoToolBox.
  • In the Extension crash alert which we are receiving, is there any way by which we add some information to the customer about the crash? Because this 'null' alert is very odd for customers.
0

There are 0 best solutions below