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

issue on saving

Open jy617lee opened this issue 5 years ago • 5 comments

Hi, Thank you for this amazing library!

However, I just run sample app of this project, and found that if I follow the flow below, causes error. movie preview --> select filter(bilateral_blur/box_blur/brightness etc) --> touch save button

    Process: com.daasuu.gpuvideoandroid, PID: 12432
    java.lang.IllegalStateException: Could not get attrib or uniform location for center
        at com.daasuu.gpuv.egl.filter.GlFilter.getHandle(GlFilter.java:153)
        at com.daasuu.gpuv.egl.filter.GlBulgeDistortionFilter.onDraw(GlBulgeDistortionFilter.java:77)
        at com.daasuu.gpuv.egl.filter.GlFilter.draw(GlFilter.java:121)
        at com.daasuu.gpuv.player.GPUPlayerRenderer.onDrawFrame(GPUPlayerRenderer.java:162)
        at com.daasuu.gpuv.egl.GlFrameBufferObjectRenderer.onDrawFrame(GlFrameBufferObjectRenderer.java:58)
        at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1571)
        at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1270)

These are the error logs, and this is caused because below two methods returns -1

GLES20.glGetAttribLocation(program, name);
GLES20.glGetUniformLocation(program, name);

Do you have any idea that I can fix this issue?

jy617lee avatar Jun 29 '19 06:06 jy617lee

I found how to resolve this! I don't know why, but if I delete below code in Glfilter.java (release()), it works!

handleMap.clear();

jy617lee avatar Jun 30 '19 16:06 jy617lee

Hi. I have the same issue. How to edit this code when I use library as dependency? PS: Problem seems to be solved. I'm creating new GLFilter object for generate video. Previously I'm was using same filter which was used to add filter to preview.

Jobeeapk avatar Jul 21 '19 18:07 Jobeeapk

Thank you for a good discussion.

MasayukiSuda avatar Aug 09 '19 03:08 MasayukiSuda

@jy617lee Hi, does it have any impact on the app, i mean any new crashes by commenting this handleMap.clear();

BilalAsif25 avatar Feb 23 '21 06:02 BilalAsif25

Hi. I have the same issue. How to edit this code when I use library as dependency? PS: Problem seems to be solved. I'm creating new GLFilter object for generate video. Previously I'm was using same filter which was used to add filter to preview.

Thanks you, you save my day

cuk2dn95 avatar Jun 05 '22 10:06 cuk2dn95