{"record":{"id":"8d839fb3f249a64d","repo":"remotion-dev/remotion","slug":"light-leak-program-link-failed-log-no-log","errorCode":null,"errorMessage":"Light leak program link failed: ${log ?? '(no log)'}","messagePattern":"Light leak program link failed: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/effects/src/light-leak.ts","lineNumber":221,"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(`Light leak program link failed: ${log ?? '(no log)'}`);\n\t}\n\n\treturn program;\n};\n\nexport const lightLeak = createEffect<LightLeakEffectParams, LightLeakGlState>({\n\ttype: 'remotion/light-leak',\n\tlabel: 'lightLeak()',\n\tdocumentationLink: 'https://www.remotion.dev/docs/effects/light-leak',\n\tbackend: 'webgl2',\n\tcalculateKey: (params) => {\n\t\tconst r = resolve(params);\n\t\treturn `light-leak-${r.seed}-${r.hueShift}-${r.progress}`;\n\t},\n\tsetup: (target) => {\n\t\tconst gl = target.getContext('webgl2', {\n\t\t\tpremultipliedAlpha: true,\n\t\t\talpha: true,","sourceCodeStart":203,"sourceCodeEnd":239,"githubUrl":"https://github.com/remotion-dev/remotion/blob/78fe4bb3fdb5a2cd68724393d63cb223db333fa7/packages/effects/src/light-leak.ts#L203-L239","documentation":"Thrown by `linkProgram()` in the light-leak effect when `gl.getProgramParameter(program, gl.LINK_STATUS)` is false. The vertex and fragment shaders compiled, but linking them failed — usually a varying/uniform mismatch between stages or a driver linker bug. The driver's info log is appended.","triggerScenarios":"Bundled shader-pair inconsistency (varying `vUv` declared differently per stage), driver linker bug, or shader-source corruption from a broken package install.","commonSituations":"Driver regression; corrupted `@remotion/effects` install; unsupported Chromium; swiftshader linker limitations.","solutions":["Reinstall `@remotion/effects` and Remotion to rule out corrupted shader source.","Update GPU drivers and Chromium.","Report the appended info log plus driver/Chrome versions to the Remotion tracker.","Temporarily remove the `lightLeak()` effect to unblock the render."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"try {\n  lightLeak({...})(...);\n} catch (err) {\n  if (/Light leak program link failed/.test(String(err))) {\n    console.error('lightLeak() link failure:', String(err));\n  } else {\n    throw err;\n  }\n}","preventionTips":["Reinstall @remotion/effects to rule out corrupted shader source.","Report the appended info log to track driver linker bugs.","Pin a known-good Chromium/GPU combo."],"tags":["light-leak","webgl2","glsl","shader-link","gpu-driver","render-env"],"backgroundTag":null,"analyzedSha":"78fe4bb3fdb5a2cd68724393d63cb223db333fa7","analyzedAt":"2026-08-12T17:18:50.444Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}