{"record":{"id":"708e376444523cdc","repo":"remotion-dev/remotion","slug":"program-link-failed-log-no-log-708e37","errorCode":null,"errorMessage":"Program link failed: ${log ?? '(no log)'}","messagePattern":"Program link failed: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/effects/src/corner-pin/corner-pin-runtime.ts","lineNumber":59,"sourceCode":"};\n\nconst linkProgram = (\n\tgl: WebGL2RenderingContext,\n\tvs: WebGLShader,\n\tfs: WebGLShader,\n): WebGLProgram => {\n\tconst program = gl.createProgram();\n\tif (!program) {\n\t\tthrow new Error('Failed to create WebGL program');\n\t}\n\n\tgl.attachShader(program, vs);\n\tgl.attachShader(program, fs);\n\tgl.linkProgram(program);\n\tif (!gl.getProgramParameter(program, gl.LINK_STATUS)) {\n\t\tconst log = gl.getProgramInfoLog(program);\n\t\tgl.deleteProgram(program);\n\t\tthrow new Error(`Program link failed: ${log ?? '(no log)'}`);\n\t}\n\n\treturn program;\n};\n\nconst createProgram = (\n\tgl: WebGL2RenderingContext,\n\tvertexSource: string,\n\tfragmentSource: string,\n): WebGLProgram => {\n\tconst vs = compileShader(gl, gl.VERTEX_SHADER, vertexSource);\n\tconst fs = compileShader(gl, gl.FRAGMENT_SHADER, fragmentSource);\n\tconst program = linkProgram(gl, vs, fs);\n\tgl.deleteShader(vs);\n\tgl.deleteShader(fs);\n\treturn program;\n};\n","sourceCodeStart":41,"sourceCodeEnd":77,"githubUrl":"https://github.com/remotion-dev/remotion/blob/78fe4bb3fdb5a2cd68724393d63cb223db333fa7/packages/effects/src/corner-pin/corner-pin-runtime.ts#L41-L77","documentation":"Thrown by linkProgram in corner-pin-runtime.ts when gl.getProgramParameter(program, gl.LINK_STATUS) is false. Both shaders compiled but could not be linked into a working program. The info log from gl.getProgramInfoLog() is included. As with shader compilation, this is a driver/GPU compatibility issue since both shaders are library constants.","triggerScenarios":"During setupCornerPin, the compiled vertex and fragment shaders are attached and gl.linkProgram() is called, but LINK_STATUS returns false.","commonSituations":"Strict driver rejecting a vertex/fragment interface mismatch; GPU driver linker bug; incomplete WebGL2 implementation; older mobile GPU drivers failing cross-shader validation.","solutions":["Update GPU drivers.","Test on a different GPU or browser to isolate driver-specific linker behavior.","Use a Chrome build with full WebGL2 support for headless rendering.","Report the info log with GPU/driver details to Remotion if reproducing on modern hardware."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"try {\n  cornerPin({...})(source, target);\n} catch (e) {\n  if (e instanceof Error && e.message.startsWith('Program link failed')) {\n    // driver-specific linker issue — capture info log from message\n  }\n  throw e;\n}","preventionTips":["Update GPU drivers.","Test on different GPU/browser to isolate driver linker bugs.","Use Chrome with full WebGL2 support for headless rendering.","Capture the info log from the error message when reporting."],"tags":["webgl","effects","corner-pin","shader","gpu","driver"],"backgroundTag":null,"analyzedSha":"78fe4bb3fdb5a2cd68724393d63cb223db333fa7","analyzedAt":"2026-08-12T17:18:50.444Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}