CVOpenGLESTextureCacheCreateTextureFromImage Error -6661
Hi, I met a problem when finish record from camera. It shows, Camera CVOpenGLESTextureCacheCreateTextureFromImage failed (error: -6661)
I found some buffer that the camera buffer handler got is null.
Can you help fixing that?
Yeah, this is a bug that I've been looking into. It was triggered by one of my recent changes over the last two weeks, but I haven't yet found the source. Something in the termination of recordings is screwing with the iOS 5.0 texture caches.
This has now been fixed.
I'm experiencing the same problem. It doesn't happen every time though, but always when video recording finishes.
I test on an iphone4 with iOS6. My setup is: camera input => brightness filter => movie writer (and image view). I don't use any separate threads.
What did you change to fix this issue 8 months ago? Could there be a regression? Or perhaps is it an iphone4+iOS6 specific issue?
Is there a special order in which to stop recording? Here's what I'm doing:
videoCamera.audioEncodingTarget = nil;
[movieWriter finishRecording];
[filter removeTarget:movieWriter];
[videoCamera stopCameraCapture];
[videoCamera removeTarget:filter];
videoCamera = nil;
There's another opened issue on the same topic it seems (#427)
What if this happens to me every time I start capture? When I removed the NSAssert it was logging these errors many times per second. Is this related to threads? What am I doing wrong?
Does anyone recall with -6661 referred to? Dealing with this error in a different project.
Edit: found kCVReturnInvalidArgument in CVReturn.h
Hello I get the same issue with xCode 6.4, iPad Air, iOS 8.3.
Reboot done, everything done, always get this error :

I am now receiving the same error as brizzly has shown above. Any idea why this is happening? Everything was running fine last time I ran the application, but now it is broken.
@CM137 - I believe that's a bug in iOS 8.3, as described in issue #2041 . Something broke in 8.3, then was fixed in 8.4. Only affects that specific iOS version.