remotion-dev/remotion · error · Error

Program link failed: ${log ?? '(no log)'}

Error message

Program link failed: ${log ?? '(no log)'}

What it means

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.

Source

Thrown at packages/effects/src/corner-pin/corner-pin-runtime.ts:59

};

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(`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

  1. Update GPU drivers.
  2. Test on a different GPU or browser to isolate driver-specific linker behavior.
  3. Use a Chrome build with full WebGL2 support for headless rendering.
  4. Report the info log with GPU/driver details to Remotion if reproducing on modern hardware.
Defensive patterns

Strategy: try-catch

Try / catch

try {
  cornerPin({...})(source, target);
} catch (e) {
  if (e instanceof Error && e.message.startsWith('Program link failed')) {
    // driver-specific linker issue — capture info log from message
  }
  throw e;
}

Prevention

When it happens

Trigger: During setupCornerPin, the compiled vertex and fragment shaders are attached and gl.linkProgram() is called, but LINK_STATUS returns false.

Common situations: Strict driver rejecting a vertex/fragment interface mismatch; GPU driver linker bug; incomplete WebGL2 implementation; older mobile GPU drivers failing cross-shader validation.

Related errors


AI-assisted analysis of remotion-dev/remotion@78fe4bb3fd (2026-08-12). Data as JSON: /api/errors/708e376444523cdc. Report an issue: GitHub.