Xcode debugger leaking copyNextSampleBuffer()

Hi,

We have multiple segments of existing code that pulls images out of videos using copyNextSampleBuffer().

That code has been working great for several years now. We've wrapped copyNextSampleBuffer() inside an autorelease pool and memory is good.

If we run this existing code in the latest Xcode 12.1/12.2 the debugger crashes within 30 seconds due to memory issues. Upon further inspection CVPixelbuffers are being retained for an unknown reason. Nothing with this code has changed in well over a year.

But, if we create a release build and deploy. Everything works correctly and there are no memory issues.

Any ideas?