{"record":{"id":"85909691463f7322","repo":"remotion-dev/remotion","slug":"program-link-failed-log-no-log-859096","errorCode":null,"errorMessage":"Program link failed: ${log ?? '(no log)'}","messagePattern":"Program link failed: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"critical","filePath":"packages/effects/src/blur/blur-runtime.ts","lineNumber":68,"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(`Program link failed: ${log ?? '(no log)'}`);\n\t}\n\n\treturn program;\n};\n\nconst createProgram = (\n\tgl: WebGL2RenderingContext,\n\tvertexSource: string,\n\tfragmentSource: string,\n): WebGLProgram => {\n\tconst vs = compileShader(gl, gl.VERTEX_SHADER, vertexSource);\n\tconst fs = compileShader(gl, gl.FRAGMENT_SHADER, fragmentSource);\n\tconst program = linkProgram(gl, vs, fs);\n\tgl.deleteShader(vs);\n\tgl.deleteShader(fs);\n\treturn program;\n};\n","sourceCodeStart":50,"sourceCodeEnd":86,"githubUrl":"https://github.com/remotion-dev/remotion/blob/78fe4bb3fdb5a2cd68724393d63cb223db333fa7/packages/effects/src/blur/blur-runtime.ts#L50-L86","documentation":"Thrown by the blur effect's `linkProgram` when both shaders compiled but `gl.linkProgram` produced a falsy LINK_STATUS. The message embeds the info log. Blur uses two separable programs (horizontal, vertical) that share BLUR_VS, so a link failure usually traces to a vertex/fragment interface mismatch in the shipped shaders or a driver limitation.","triggerScenarios":"Fires at line 68 when `gl.getProgramParameter(program, gl.LINK_STATUS)` is falsy after linking either the horizontal or vertical blur program.","commonSituations":"Shipped shader revision with a varying/in-out mismatch between BLUR_VS and a BLUR_FS_*; driver rejects uniform/attribute declarations; software rasterizer with stricter linking; corrupted shader constants from a bad build.","solutions":["Read the embedded info log for the precise linker diagnostic.","Update @remotion/effects — link regressions are fixed upstream.","Reproduce on another GPU/browser to detect driver-specific linking bugs.","For headless rendering, confirm WebGL2 is hardware-backed and report the GL_RENDERER."],"exampleFix":"// Library-internal shader issue; capture the info log and report upstream.\nconsole.error(gl.getParameter(gl.RENDERER));","handlingStrategy":"fallback","validationCode":"// Probe linking with a minimal program before setup.\nconst p = gl.createProgram();\nif (!p) { /* skip */ }\n// attach minimal compiled vs/fs, link, check LINK_STATUS, then delete\n","typeGuard":null,"tryCatchPattern":"try {\n  const state = setupBlur(canvas);\n} catch (err) {\n  if (/Program link failed/.test(err.message)) {\n    // fall back to a non-WebGL effect; report info log upstream\n  } else { throw err; }\n}","preventionTips":["Pin a known-good @remotion/effects version.","Log GL_RENDERER with errors for driver triage.","Provide a fallback effect when linking fails."],"tags":["webgl2","shader","glsl","blur","driver","link"],"backgroundTag":null,"analyzedSha":"78fe4bb3fdb5a2cd68724393d63cb223db333fa7","analyzedAt":"2026-08-12T17:18:50.444Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}