{"record":{"id":"dccf722ded5d8bd3","repo":"remotion-dev/remotion","slug":"emboss-program-link-failed-log-no-log","errorCode":null,"errorMessage":"Emboss program link failed: ${log ?? '(no log)'}","messagePattern":"Emboss program link failed: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/effects/src/emboss.ts","lineNumber":298,"sourceCode":"};\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);\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(`Emboss program link failed: ${log ?? '(no log)'}`);\n\t}\n\n\treturn program;\n};\n\nconst setupEmboss = (target: HTMLCanvasElement): EmbossState => {\n\tconst gl = target.getContext('webgl2', {\n\t\tpremultipliedAlpha: true,\n\t\talpha: true,\n\t\tpreserveDrawingBuffer: true,\n\t});\n\tif (!gl) {\n\t\tthrow createWebGL2ContextError('emboss effect');\n\t}\n\n\tgl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, true);\n\n\tconst vs = compileShader(gl, gl.VERTEX_SHADER, EMBOSS_VS);","sourceCodeStart":280,"sourceCodeEnd":316,"githubUrl":"https://github.com/remotion-dev/remotion/blob/78fe4bb3fdb5a2cd68724393d63cb223db333fa7/packages/effects/src/emboss.ts#L280-L316","documentation":"Thrown by emboss's linkProgram() when gl.LINK_STATUS is false despite both shaders compiling and the program being allocated. The program info log is embedded. With fixed library GLSL, a link failure points to a driver/translation defect (e.g. the translator produced incompatible stage outputs) rather than user input.","triggerScenarios":"First-frame setup of emboss() on a driver that compiles EMBOSS_VS and EMBOSS_FS but cannot link them.","commonSituations":"Buggy or outdated GPU drivers, ANGLE/SwiftShader regressions, or a Chromium shader-translator change that breaks linking on a specific platform.","solutions":["Change the GL backend and re-render: `npx remotion render <comp> --gl=swiftshader` (or --gl=angle).","Update the GPU driver and Chromium build.","If it reproduces on multiple backends, report it as a Remotion bug with the program 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 (/program link failed/i.test(msg)) {\n      return await renderMedia({...opts, gl: 'swiftshader'});\n    }\n    throw err;\n  }\n}","preventionTips":["Choose a GL backend known to link this effect's shaders correctly (swiftshader first).","Keep GPU drivers and Chromium current.","Capture the program info log from the message when escalating to a Remotion bug report.","Reproduce across at least two backends before assuming a library defect."],"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"}