android-gpuimage icon indicating copy to clipboard operation
android-gpuimage copied to clipboard

Multiple GPUImageView in Gridview become black while scrolling

Open webgourou opened this issue 5 years ago • 2 comments

Future Task

Hello,

when using multiple GPUImage view like a thumbnail in a Gridview; When scrolling the gridview, the images could become black. First the bitmap is shown successfully, then we scroll gridview, the GPUImageView are now hidden and once we scroll back to make them reappear, they are black.

It seems the shader program not loaded anymore please see log:

2019-06-13 14:14:43.025 371-970/com.lesafrance.dev.usee D/MALI: gles_state_set_error_internal:76: [MALI] GLES error info: there is no current program object 2019-06-13 14:14:43.046 371-970/com.lesafrance.dev.usee D/MALI: gles_state_set_error_internal:75: [MALI] GLES ctx: 0x7bfc08d0c8, error code:0x501 2019-06-13 14:14:43.046 371-970/com.lesafrance.dev.usee D/MALI: gles_state_set_error_internal:76: [MALI] GLES error info: is not a value generated by OpenGL

I don' t know where the errors happens, on the GPUImageRenderer onSurfaceChanged method, the program number still exist !

Any ideas ?

Thanks

webgourou avatar Jun 13 '19 12:06 webgourou

Hi, I tried to use GLTextureView from GPUImage in my project and i found that there are only 32 glContext can be created in an application (Android 9.0, 6.0 has no limit). I don't know whether it's releated to your problem, may be you can count the GPUImageView which shown successully or find a lower version Android Devices to test the case.

viseator avatar Aug 02 '19 06:08 viseator

same problem

JarvisBuop avatar Dec 11 '19 03:12 JarvisBuop