{"record":{"id":"72d99e25800673fa","repo":"remotion-dev/remotion","slug":"starburst-program-link-failed-log-no-log","errorCode":null,"errorMessage":"Starburst program link failed: ${log ?? '(no log)'}","messagePattern":"Starburst program link failed: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"critical","filePath":"packages/effects/src/starburst.ts","lineNumber":268,"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(`Starburst program link failed: ${log ?? '(no log)'}`);\n\t}\n\n\treturn program;\n};\n\nexport const starburst = createEffect<StarburstEffectParams, StarburstGlState>({\n\ttype: 'remotion/starburst',\n\tlabel: 'starburst()',\n\tdocumentationLink: 'https://www.remotion.dev/docs/effects/starburst',\n\tbackend: 'webgl2',\n\tcalculateKey: (params) => {\n\t\tconst r = resolve(params);\n\t\treturn `starburst-${r.rays}-${r.colors.join('|')}-${r.rotation}-${r.smoothness}-${r.origin.join(':')}`;\n\t},\n\tsetup: (target) => {\n\t\tconst gl = target.getContext('webgl2', {\n\t\t\tpremultipliedAlpha: true,\n\t\t\talpha: true,","sourceCodeStart":250,"sourceCodeEnd":286,"githubUrl":"https://github.com/remotion-dev/remotion/blob/78fe4bb3fdb5a2cd68724393d63cb223db333fa7/packages/effects/src/starburst.ts#L250-L286","documentation":"The starburst effect's shader program failed to link after both vertex and fragment shaders compiled successfully. `gl.LINK_STATUS === false` and the program info log is included. Linking can fail when the vertex and fragment shaders' varying/interface declarations mismatch, or due to driver-specific linking bugs. Since the shaders are static library code, this usually indicates a driver issue.","triggerScenarios":"A driver bug in the program linking stage; a mismatch between vertex output varyings and fragment inputs introduced by a library edit to the shader strings; exceeding a driver-specific limit on uniform/varying count.","commonSituations":"Outdated mobile/integrated GPU drivers; software WebGL2 backends with linking quirks; a regression introduced when modifying `STARBURST_VS` or `STARBURST_FS` (e.g. renaming a varying in only one shader).","solutions":["Read the info log in the error message to see the linker's complaint (e.g. 'unbound varying', 'too many uniforms').","Update GPU drivers and browser.","If editing the shaders, ensure vertex `out` declarations exactly match fragment `in` declarations (names, types, order).","Test on another machine/browser to confirm a driver-specific issue, and report to maintainers if the shaders are unmodified."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"try {\n  starburst({...params});\n} catch (e) {\n  const msg = (e as Error).message;\n  if (/program link failed/.test(msg)) {\n    console.error('Linker failure (likely driver bug):', msg);\n    renderFallbackFrame();\n  } else throw e;\n}","preventionTips":["Maintain current GPU drivers and browsers.","When editing shaders, keep vertex `out` and fragment `in` declarations identical.","Ship a non-webgl2 fallback for driver combinations known to fail linking."],"tags":["starburst","webgl2","shader","glsl","link","driver"],"backgroundTag":null,"analyzedSha":"78fe4bb3fdb5a2cd68724393d63cb223db333fa7","analyzedAt":"2026-08-12T17:18:50.444Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}