Skip to content

iOS 10.1.1 - GPUImageContext fails to create OpenGL ES 2.0 Context #2396

Open
@ar9jun

Description

@ar9jun

Hello!

I'm having a very weird issue where I get the following error - which comes from an NSAssert in GPUImageContext.m Line 249:

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 
'Unable to create an OpenGL ES 2.0 context. 
The GPUImage framework requires OpenGL ES 2.0 support to work.'

Here is my flow:

I have a GPUImageVideoCamera, and when I am ready to record, I create a GPUImageMovieWriter 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 new GPUImageMovieWriterinstance with:

- (id)initWithMovieURL:(NSURL *)newMovieURL 
size:(CGSize)newSize 
fileType:(NSString *)newFileType 
outputSettings:(NSMutableDictionary *)outputSettings;
  • to record new things each time. Each time it works. However, after about 20-30 minutes, I'll have a case where I get the error I wrote above - which occurs when Line 100 is called in 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions