{"record":{"id":"213540fcbe0c2c28","repo":"remotion-dev/remotion","slug":"liquid-contours-program-link-failed-log-no","errorCode":null,"errorMessage":"Liquid contours program link failed: ${log ?? '(no log)'}","messagePattern":"Liquid contours program link failed: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"critical","filePath":"packages/effects/src/liquid-contours.ts","lineNumber":314,"sourceCode":"\t}\n\n\treturn shader;\n};\n\nconst createProgram = (gl: WebGL2RenderingContext): WebGLProgram => {\n\tconst vs = compileShader(gl, gl.VERTEX_SHADER, VERTEX_SHADER);\n\tconst fs = compileShader(gl, gl.FRAGMENT_SHADER, FRAGMENT_SHADER);\n\tconst program = gl.createProgram();\n\tif (!program) throw new Error('Failed to create WebGL program');\n\tgl.attachShader(program, vs);\n\tgl.attachShader(program, fs);\n\tgl.linkProgram(program);\n\tgl.deleteShader(vs);\n\tgl.deleteShader(fs);\n\tif (!gl.getProgramParameter(program, gl.LINK_STATUS)) {\n\t\tconst log = gl.getProgramInfoLog(program);\n\t\tgl.deleteProgram(program);\n\t\tthrow new Error(\n\t\t\t`Liquid contours program link failed: ${log ?? '(no log)'}`,\n\t\t);\n\t}\n\n\treturn program;\n};\n\nconst setup = (target: HTMLCanvasElement): LiquidContoursState => {\n\tconst gl = target.getContext('webgl2', {\n\t\tpremultipliedAlpha: true,\n\t\talpha: true,\n\t\tpreserveDrawingBuffer: true,\n\t});\n\tif (!gl) throw createWebGL2ContextError('liquid contours effect');\n\tconst program = createProgram(gl);\n\tconst vao = gl.createVertexArray();\n\tif (!vao) throw new Error('Failed to create WebGL vertex array');\n\tgl.bindVertexArray(vao);","sourceCodeStart":296,"sourceCodeEnd":332,"githubUrl":"https://github.com/remotion-dev/remotion/blob/78fe4bb3fdb5a2cd68724393d63cb223db333fa7/packages/effects/src/liquid-contours.ts#L296-L332","documentation":"A plain Error thrown by createProgram in the Liquid contours effect when gl.getProgramParameter(program, gl.LINK_STATUS) is false. The program is deleted and the info log is appended. Linking can fail even when both shaders compiled (e.g. exceeding uniform/varying limits on the device).","triggerScenarios":"The device compiles both Liquid contours shaders but the linker rejects the program. Shaders are static library code and user params flow through uniforms, so this is a driver/limits issue, not user input.","commonSituations":"Mobile/embedded GPUs with low uniform or varying limits; buggy ANGLE/D3D/Vulkan/Metal backends; outdated drivers. The info log pinpoints the cause.","solutions":["Read the embedded info log for the exact linker complaint.","Update GPU drivers / Chromium build.","Switch GL backend to isolate driver bugs.","File a Remotion issue with device, driver, and info log."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"try {\n  liquidContours(...);\n} catch (err) {\n  if (err instanceof Error && /program link failed/.test(err.message)) {\n    // log info log, switch GL backend or update driver\n  } else throw err;\n}","preventionTips":["Read the embedded info log to confirm a driver/limits issue.","Test on the lowest-spec target device to catch uniform/varying link failures early.","Report recurring driver-specific link failures to Remotion maintainers."],"tags":["webgl2","liquid-contours-effect","glsl","program-link","driver"],"backgroundTag":null,"analyzedSha":"78fe4bb3fdb5a2cd68724393d63cb223db333fa7","analyzedAt":"2026-08-12T17:18:50.444Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}