WebGL-Inspector icon indicating copy to clipboard operation
WebGL-Inspector copied to clipboard

Uncaught TypeError: Failed to execute 'getProgramParameter' on 'WebGLRenderingContext': parameter 1 is not of type 'WebGLProgram'.

Open andrewvarga opened this issue 7 years ago • 1 comments

Recently I'm getting this error when trying to inspect a webgl app:

Uncaught TypeError: Failed to execute 'getProgramParameter' on 'WebGLRenderingContext': parameter 1 is not of type 'WebGLProgram'. at StateSnapshot.apply (:2671:17) at Frame.makeActive (:3105:27) at RedundancyChecker.run (:6406:15) at Function.RedundancyChecker.checkFrame (:6455:23) at TraceView.setFrame (:9864:38) at Tab. (:9428:28) at EventSource.fire (:873:35) at LeftListing.selectValue (:7329:28) at Window.appendFrame (:7130:21) at CaptureContext.captureCallback (:3166:28)

In this case "program" is null: if (!gl.getProgramParameter(program, gl.LINK_STATUS)) { gl.linkProgram(program); }

Interestingly I only see this for some of my projects (I can provide source or link)

andrewvarga avatar Mar 23 '17 16:03 andrewvarga

probably a duplicate of #159? Have you tried removing all calls to gl.getExtension?

Micha0 avatar May 17 '17 21:05 Micha0