remotion-dev/remotion · critical · Error

Glow shader compile failed: ${log ?? '(no log)'}

Error message

Glow shader compile failed: ${log ?? '(no log)'}

What it means

Thrown when a glow GLSL shader (GLOW_EXTRACT_FS, GLOW_BLUR_FS_HORIZONTAL/VERTICAL, or GLOW_COMPOSITE_FS) fails to compile; the GPU info log is appended. Indicates a defect in the bundled glow shader sources or a GLSL feature the device rejects.

Source

Thrown at packages/effects/src/glow/glow-runtime.ts:65

	cachedColorRgba: ParsedColorRgba;
};

const compileShader = (
	gl: WebGL2RenderingContext,
	type: number,
	source: string,
): WebGLShader => {
	const shader = gl.createShader(type);
	if (!shader) {
		throw new Error('Failed to create WebGL shader');
	}

	gl.shaderSource(shader, source);
	gl.compileShader(shader);
	if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) {
		const log = gl.getShaderInfoLog(shader);
		gl.deleteShader(shader);
		throw new Error(`Glow shader compile failed: ${log ?? '(no log)'}`);
	}

	return shader;
};

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);

View on GitHub (pinned to 78fe4bb3fd)

Solutions

  1. Read the appended info log for the failing GLSL line.
  2. Restore shader sources from a clean checkout if modified.
  3. Report with log and GPU info if reproducing on a released version.
Defensive patterns

Strategy: try-catch

Try / catch

try {
  effect = glow(params);
} catch (err) {
  if (/shader compile failed/i.test(String(err))) {
    console.error('Glow shader compile failure; info log:', String(err));
  }
  throw err;
}

Prevention

When it happens

Trigger: Editing GLOW_*_FS and introducing a syntax/type error; device whose GLSL ES 300 support is incomplete; shader string truncated.

Common situations: Local development of the glow shader; older mobile/embedded GPU with partial GLSL support.

Related errors


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