{"record":{"id":"ca41bb0bb70ceeec","repo":"remotion-dev/remotion","slug":"noise-program-link-failed-log-no-log","errorCode":null,"errorMessage":"Noise program link failed: ${log ?? '(no log)'}","messagePattern":"Noise program link failed: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"critical","filePath":"packages/effects/src/noise.ts","lineNumber":178,"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(`Noise program link failed: ${log ?? '(no log)'}`);\n\t}\n\n\treturn program;\n};\n\nconst setupNoise = (target: HTMLCanvasElement): NoiseState => {\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('noise effect');\n\t}\n\n\tgl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, true);\n\n\tconst vs = compileShader(gl, gl.VERTEX_SHADER, NOISE_VS);","sourceCodeStart":160,"sourceCodeEnd":196,"githubUrl":"https://github.com/remotion-dev/remotion/blob/78fe4bb3fdb5a2cd68724393d63cb223db333fa7/packages/effects/src/noise.ts#L160-L196","documentation":"Thrown by linkProgram (packages/effects/src/noise.ts:178) when the noise program's LINK_STATUS is false; the info log is appended. Both shaders compiled but linking failed, which for these hardcoded correct shaders points to a driver bug, an attribute/uniform binding inconsistency in the driver, or context corruption — not user input.","triggerScenarios":"Linking the noise program on a driver that compiles GLSL ES 3.00 but links it incorrectly; linking after a context-loss/restoration that left GL state inconsistent; exceeding a driver-specific uniform/attribute limit at link time.","commonSituations":"Buggy or outdated GPU drivers; software rasterizers with incomplete linkers; rendering on VM/remote display adapters.","solutions":["Update the GPU driver / browser on the render host.","Render on real GPU hardware or GPU-enabled headless Chrome.","Read the appended info log, report it, and disable the noise effect for that environment."],"exampleFix":"// before\nnoise({amount: 0.2}); // link fails on this driver\n\n// after: feature-probe linking once per host and fall back\nconst ok = await probeNoiseProgramLinks();\nconst effects = ok ? [noise({amount: 0.2})] : [];","handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":"try {\n  scene.push(noise({amount: 0.2}));\n} catch (err) {\n  if (/Noise program link failed/.test(String(err?.message))) {\n    // driver linker bug: disable noise for this host, log info log\n  } else throw err;\n}","preventionTips":["Keep GPU drivers and the browser current.","Render on real GPU hardware, not a software rasterizer.","Capture the appended info log and report it; gate noise() off on affected hosts."],"tags":["webgl","gpu","noise","effects","program","driver","glsl"],"backgroundTag":null,"analyzedSha":"78fe4bb3fdb5a2cd68724393d63cb223db333fa7","analyzedAt":"2026-08-12T17:18:50.444Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}