remotion-dev/remotion · critical · Error
Glow program link failed: ${log ?? '(no log)'}
Error message
Glow program link failed: ${log ?? '(no log)'} What it means
Thrown when gl.linkProgram fails for a glow program, with the GPU info log appended. Means the compiled vertex/fragment pair are individually valid but incompatible (varying in/out mismatch, undeclared uniforms, qualifier conflict), pointing at a bug in the shipped glow shader pair.
Source
Thrown at packages/effects/src/glow/glow-runtime.ts:87
};
const linkProgram = (
gl: WebGL2RenderingContext,
vs: WebGLShader,
fs: WebGLShader,
): WebGLProgram => {
const program = gl.createProgram();
if (!program) {
throw new Error('Failed to create WebGL program');
}
gl.attachShader(program, vs);
gl.attachShader(program, fs);
gl.linkProgram(program);
if (!gl.getProgramParameter(program, gl.LINK_STATUS)) {
const log = gl.getProgramInfoLog(program);
gl.deleteProgram(program);
throw new Error(`Glow program link failed: ${log ?? '(no log)'}`);
}
return program;
};
const createProgram = (
gl: WebGL2RenderingContext,
vertexSource: string,
fragmentSource: string,
): WebGLProgram => {
const vs = compileShader(gl, gl.VERTEX_SHADER, vertexSource);
const fs = compileShader(gl, gl.FRAGMENT_SHADER, fragmentSource);
const program = linkProgram(gl, vs, fs);
gl.deleteShader(vs);
gl.deleteShader(fs);
return program;
};
View on GitHub (pinned to 78fe4bb3fd)
Solutions
- Inspect the appended info log for the mismatched symbol.
- Restore the shipped shader sources from a clean checkout.
- File a Remotion bug with the log and environment details.
Defensive patterns
Strategy: try-catch
Try / catch
try {
effect = glow(params);
} catch (err) {
if (/program link failed/i.test(String(err))) {
console.error('Glow link failure; info log:', String(err));
}
throw err;
} Prevention
- If you modify glow shaders, keep vertex/fragment in/out declarations and uniforms matched.
- Restore shaders from a clean checkout if link errors appear after edits.
- Report persistent link failures with the info log and environment details.
When it happens
Trigger: Editing GLOW_VS or a GLOW_*_FS and forgetting to mirror an in/out declaration; tampered shader source; driver rejecting a qualifier at link time.
Common situations: Local shader development; partial GLSL ES 300 driver support.
Related errors
- Flannel program link failed: ${log ?? '(no log)'}
- Glow shader compile failed: ${log ?? '(no log)'}
- Program link failed: ${log ?? '(no log)'}
- Burlap program link failed: ${log ?? '(no log)'}
- Failed to create WebGL shader
AI-assisted analysis of remotion-dev/remotion@78fe4bb3fd (2026-08-12).
Data as JSON: /api/errors/6143ab9ca185dbd6.
Report an issue: GitHub.