Open ar9jun opened 7 years ago
I had the exact same issue.
These are my steps to reproduce:
1) Create a GPUImageMovieWriter 2) Call startRecording 3) Call finishRecording 4) Repeat 1-3 about 120x
Around the 120th recording, in debug mode there's a crash and this is printed to the console:
Unable to create an OpenGL ES 2.0 context. The GPUImage framework requires OpenGL ES 2.0 support to work.
In release mode, there's not a crash but recordings start coming out black.
I created a pull request with a fix here:
Hello!
I'm having a very weird issue where I get the following error - which comes from an
NSAssert
in GPUImageContext.m Line 249:Here is my flow:
I have a
GPUImageVideoCamera
, and when I am ready to record, I create aGPUImageMovieWriter
that writes what I record to a folder. I am able to do this multiple times, successfully. No issues, no errors. Each time I do it, I create a newGPUImageMovieWriter
instance with:GPUImageMovieWriter
in the init method noted above.Any one have the same issue and/or know how to fix it or even have a workaround - would be much appreciated!