{"record":{"id":"aa22107a0cb581ee","repo":"remotion-dev/remotion","slug":"shader-compile-failed-log-no-log-aa2210","errorCode":null,"errorMessage":"Shader compile failed: ${log ?? '(no log)'}","messagePattern":"Shader compile failed: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"critical","filePath":"packages/effects/src/zoom-blur/zoom-blur-runtime.ts","lineNumber":36,"sourceCode":"\t};\n};\n\nconst compileShader = (\n\tgl: WebGL2RenderingContext,\n\ttype: number,\n\tsource: string,\n): WebGLShader => {\n\tconst shader = gl.createShader(type);\n\tif (!shader) {\n\t\tthrow new Error('Failed to create WebGL shader');\n\t}\n\n\tgl.shaderSource(shader, source);\n\tgl.compileShader(shader);\n\tif (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) {\n\t\tconst log = gl.getShaderInfoLog(shader);\n\t\tgl.deleteShader(shader);\n\t\tthrow new Error(`Shader compile failed: ${log ?? '(no log)'}`);\n\t}\n\n\treturn shader;\n};\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);","sourceCodeStart":18,"sourceCodeEnd":54,"githubUrl":"https://github.com/remotion-dev/remotion/blob/78fe4bb3fdb5a2cd68724393d63cb223db333fa7/packages/effects/src/zoom-blur/zoom-blur-runtime.ts#L18-L54","documentation":"The zoomBlur fragment or vertex shader failed to compile. The GLSL source is a hardcoded constant internal to the library, so a compile failure usually indicates a GPU driver bug or a WebGL2 implementation that rejects valid GLSL ES 3.00. The info log from the driver is included in the error message.","triggerScenarios":"The shader sources (ZOOM_BLUR_VS / ZOOM_BLUR_FS) contain GLSL that a particular driver cannot parse, or the driver's shader compiler has a bug. Since the shaders are fixed, this is environmental rather than caused by user parameters.","commonSituations":"Rendering on older mobile GPUs, buggy integrated graphics drivers, virtual machines with incomplete WebGL2 support, or headless Chrome with an outdated SwiftShader build.","solutions":["Update the GPU driver or the headless browser's GPU support (e.g., update Chrome/SwiftShader).","Test on a different machine or GPU to confirm it is driver-specific.","Report the issue to Remotion with the shader info log from the error message.","On CI, ensure the Docker image includes a working GL stack (e.g., appropriate mesa/libGL packages)."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"try {\n  zoomBlur({ amount: 40 });\n} catch (err) {\n  if (err instanceof Error && err.message.startsWith('Shader compile failed')) {\n    // log the driver info and fall back to a different effect or skip\n    console.error('Shader compile failed on this GPU:', err.message);\n  } else {\n    throw err;\n  }\n}","preventionTips":["Test effects on the target rendering GPU before deploying.","Keep GPU drivers and headless browser versions current.","Report driver-specific shader failures to Remotion."],"tags":["webgl","effects","zoom-blur","gpu","shader","runtime"],"backgroundTag":null,"analyzedSha":"78fe4bb3fdb5a2cd68724393d63cb223db333fa7","analyzedAt":"2026-08-12T17:18:50.444Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}