{"record":{"id":"c6ddbc74712b4fc6","repo":"remotion-dev/remotion","slug":"radial-progressive-blur-program-link-failed-log","errorCode":null,"errorMessage":"Radial progressive blur program link failed: ${log ?? '(no log)'}","messagePattern":"Radial progressive blur program link failed: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/effects/src/radial-progressive-blur/radial-progressive-blur-runtime.ts","lineNumber":74,"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(\n\t\t\t`Radial progressive blur program link failed: ${log ?? '(no log)'}`,\n\t\t);\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;","sourceCodeStart":56,"sourceCodeEnd":92,"githubUrl":"https://github.com/remotion-dev/remotion/blob/78fe4bb3fdb5a2cd68724393d63cb223db333fa7/packages/effects/src/radial-progressive-blur/radial-progressive-blur-runtime.ts#L56-L92","documentation":"The radial-progressive-blur effect links the compiled vertex and fragment shaders into a single GPU program via gl.linkProgram. If linking fails (gl.LINK_STATUS is false), the effect deletes the program and throws with the driver-supplied info log. Link failures occur when shaders are individually valid but incompatible when combined, or when the driver hits an internal limit.","triggerScenarios":"Vertex and fragment shaders declare varying/attribute interfaces that do not match; exceeding the driver's maximum number of uniforms, varyings, or attributes during link-time validation; shader source referencing built-in functions removed in the active GLSL ES version.","commonSituations":"Effect source code changes that alter varyings without updating both shader stages; GPUs with stricter link-time validation than the development machine; driver bugs that report false link failures under memory pressure.","solutions":["Read the info log in the error message to identify the mismatched varying, attribute, or exceeded limit","Update GPU drivers to eliminate known link-time false negatives","If the info log indicates a limit (e.g. too many uniforms), reduce shader complexity","Report the bug with driver info and the info log text"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"try {\n  const effect = radialProgressiveBlur({ radius: 10 });\n} catch (err) {\n  if (err instanceof Error && err.message.includes('program link failed')) {\n    console.error('Shader program link failed:', err.message);\n    // fall back to a non-WebGL effect or skip\n  }\n  throw err;\n}","preventionTips":["Test on multiple GPU vendors before deploying effects to production","Keep drivers updated","Report repeatable link failures with the info log to the library maintainers"],"tags":["webgl","shader","gpu","program-link","radial-progressive-blur"],"backgroundTag":null,"analyzedSha":"78fe4bb3fdb5a2cd68724393d63cb223db333fa7","analyzedAt":"2026-08-12T17:18:50.444Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}