{"record":{"id":"7a8f649a8478c4da","repo":"remotion-dev/remotion","slug":"evolve-shader-compile-failed-log-no-log","errorCode":null,"errorMessage":"Evolve shader compile failed: ${log ?? '(no log)'}","messagePattern":"Evolve shader compile failed: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/effects/src/evolve.ts","lineNumber":206,"sourceCode":"}\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(`Evolve 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":188,"sourceCodeEnd":224,"githubUrl":"https://github.com/remotion-dev/remotion/blob/78fe4bb3fdb5a2cd68724393d63cb223db333fa7/packages/effects/src/evolve.ts#L188-L224","documentation":"Thrown by evolve's compileShader() when gl.COMPILE_STATUS is false. The driver's info log is embedded. EVOLVE_VS / EVOLVE_FS are hardcoded #version 300 es GLSL constants in the library, so a compile failure reflects a driver/translation defect, not caller input.","triggerScenarios":"Rendering or previewing evolve() on a GPU/driver that cannot compile the bundled vertex or fragment shader.","commonSituations":"Outdated or buggy GPU drivers, an ANGLE/SwiftShader regression, virtualized/headless environments with incomplete WebGL2 shader support, or a Chromium update that altered shader compilation.","solutions":["Switch the GL backend and re-render: `npx remotion render <comp> --gl=swiftshader` (or --gl=angle).","Update the GPU driver and Chromium build.","On Lambda, use a supported Chrome layer version.","If it reproduces across all backends, file a Remotion bug with the embedded shader info log."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":"async function renderWithFallback(opts) {\n  try {\n    return await renderMedia(opts);\n  } catch (err) {\n    const msg = String(err?.message ?? '');\n    if (/shader compile failed/i.test(msg)) {\n      return await renderMedia({...opts, gl: 'swiftshader'});\n    }\n    throw err;\n  }\n}","preventionTips":["Use a GL backend known to compile this effect's shaders (swiftshader is the safest headless default).","Update GPU drivers and Chromium before investigating shader failures.","On Lambda, use a current Chrome layer.","Preserve the embedded info log when reporting; it names the GLSL line the driver rejected."],"tags":["webgl","glsl","shader","gpu","effects","rendering"],"backgroundTag":null,"analyzedSha":"78fe4bb3fdb5a2cd68724393d63cb223db333fa7","analyzedAt":"2026-08-12T17:18:50.444Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}