GPUImage icon indicating copy to clipboard operation
GPUImage copied to clipboard

CVOpenGLESTextureCacheCreateTextureFromImage Error -6661

Open fengally opened this issue 14 years ago • 8 comments

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?

fengally avatar Apr 23 '12 03:04 fengally

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.

BradLarson avatar Apr 23 '12 14:04 BradLarson

This has now been fixed.

BradLarson avatar Apr 24 '12 20:04 BradLarson

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)

chrisben avatar Dec 30 '12 12:12 chrisben

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?

Tricertops avatar Feb 07 '13 13:02 Tricertops

Does anyone recall with -6661 referred to? Dealing with this error in a different project.

Edit: found kCVReturnInvalidArgument in CVReturn.h

RSully avatar Apr 18 '14 16:04 RSully

Hello I get the same issue with xCode 6.4, iPad Air, iOS 8.3.

Reboot done, everything done, always get this error : screen shot 2015-07-14 at 5 58 14 pm

brizzly avatar Jul 14 '15 15:07 brizzly

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 avatar Jul 20 '15 14:07 CM137

@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.

BradLarson avatar Jul 20 '15 14:07 BradLarson