{"record":{"id":"92d49e03d356e0ac","repo":"remotion-dev/remotion","slug":"outline-program-link-failed-log-no-log","errorCode":null,"errorMessage":"Outline program link failed: ${log ?? '(no log)'}","messagePattern":"Outline program link failed: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/effects/src/outline.ts","lineNumber":260,"sourceCode":"\nconst createProgram = (gl: WebGL2RenderingContext): WebGLProgram => {\n\tconst vertexShader = compileShader(gl, gl.VERTEX_SHADER, OUTLINE_VS);\n\tconst fragmentShader = compileShader(gl, gl.FRAGMENT_SHADER, OUTLINE_FS);\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, vertexShader);\n\tgl.attachShader(program, fragmentShader);\n\tgl.linkProgram(program);\n\tgl.deleteShader(vertexShader);\n\tgl.deleteShader(fragmentShader);\n\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(`Outline program link failed: ${log ?? '(no log)'}`);\n\t}\n\n\treturn program;\n};\n\nconst createTexture = (gl: WebGL2RenderingContext): WebGLTexture => {\n\tconst texture = gl.createTexture();\n\tif (!texture) {\n\t\tthrow new Error('Failed to create WebGL texture');\n\t}\n\n\tgl.bindTexture(gl.TEXTURE_2D, texture);\n\tgl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);\n\tgl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);\n\tgl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);\n\tgl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);\n\tgl.bindTexture(gl.TEXTURE_2D, null);\n\treturn texture;","sourceCodeStart":242,"sourceCodeEnd":278,"githubUrl":"https://github.com/remotion-dev/remotion/blob/10db9de07356446fb0edb3c3ae211369b693d18b/packages/effects/src/outline.ts#L242-L278","documentation":"gl.linkProgram() failed for the outline() effect's shader program and the driver link log is embedded in the message. The shaders are library-internal and compiled successfully, so a link failure points to a WebGL2 implementation bug or a degraded context - not to any outline() parameter such as width or color.","triggerScenarios":"Applying outline() on a WebGL2 context where program linking fails (driver bug, SwiftShader edge case, context lost between compile and link). The text after 'Outline program link failed:' is the driver's stated reason.","commonSituations":"Headless Chrome with buggy GPU/SwiftShader; GPU blocklisted builds; renders that survive shader compilation but fail at link time under memory pressure. Rare in normal desktop use.","solutions":["Re-run the render or restart Studio to get a fresh context","Update Chrome/Chromium and @remotion/effects to the latest versions","Check the embedded driver log - if it mentions context loss, lower --concurrency to reduce GPU pressure","Report to Remotion with the full link log if it reproduces on a specific machine"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"try {\n  await renderMedia({composition, codec: 'h264'});\n} catch (err) {\n  if (\n    err instanceof Error &&\n    err.message.startsWith('Outline program link failed:')\n  ) {\n    // log the driver-provided reason and fall back / retry once\n    console.error(err.message);\n    await renderMedia({composition: noOutlineComposition, codec: 'h264'});\n  } else {\n    throw err;\n  }\n}","preventionTips":["Keep Chrome and @remotion/effects current (linker bugs get patched upstream)","Reduce concurrent WebGL effect setups in one browser profile","Preserve the full error message when reporting - the link log is the diagnostic"],"tags":["remotion","effects","webgl","program-link","outline","gpu"],"backgroundTag":"shader-program-link-failed","analyzedSha":"10db9de07356446fb0edb3c3ae211369b693d18b","analyzedAt":"2026-08-22T21:45:17.748Z","contentChangedAt":"2026-08-22T21:45:17.748Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}