{"record":{"id":"0426c4ed89051e68","repo":"remotion-dev/remotion","slug":"dot-grid-program-link-failed-log-no-log","errorCode":null,"errorMessage":"Dot grid program link failed: ${log ?? '(no log)'}","messagePattern":"Dot grid program link failed: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/effects/src/dot-grid.ts","lineNumber":188,"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(`Dot grid program link failed: ${log ?? '(no log)'}`);\n\t}\n\n\treturn program;\n};\n\nexport const dotGrid = createEffect<DotGridParams, DotGridState>({\n\ttype: 'dev.remotion.effects.dotGrid',\n\tlabel: 'dotGrid()',\n\tdocumentationLink: 'https://www.remotion.dev/docs/effects/dot-grid',\n\tbackend: 'webgl2',\n\tcalculateKey: (params) => {\n\t\tconst r = resolve(params);\n\t\treturn `dot-grid-${r.dotSize}-${r.gridSize}-${r.invert ? 1 : 0}`;\n\t},\n\tsetup: (target) => {\n\t\tconst gl = target.getContext('webgl2', {\n\t\t\tpremultipliedAlpha: true,\n\t\t\talpha: true,","sourceCodeStart":170,"sourceCodeEnd":206,"githubUrl":"https://github.com/remotion-dev/remotion/blob/78fe4bb3fdb5a2cd68724393d63cb223db333fa7/packages/effects/src/dot-grid.ts#L170-L206","documentation":"Thrown by dot-grid's linkProgram helper after gl.getProgramParameter reports LINK_STATUS failure. The message includes the driver's program info log. Linking fails when vertex and fragment shaders disagree on varying declarations, exceed uniform limits, or hit a driver bug. Because both shaders are bundled together, a link failure usually means a non-conformant driver or resource limit (too many uniforms/varyings for the device).","triggerScenarios":"The dot-grid program fails to link on a device whose driver mishandles the uniform set, or whose MAX_VERTEX_UNIFORM_VECTORS / MAX_FRAGMENT_UNIFORM_VECTORS is exceeded (rare for this small shader). Also seen with broken driver versions that fail valid program links.","commonSituations":"Low-end mobile GPUs; outdated Intel/AMD driver branches; virtualized GL; remote desktop; some Linux Mesa versions on specific hardware.","solutions":["Read the embedded info log to see the linker's complaint.","Update GPU drivers and browser; try another device or browser.","For headless/CI, run under SwiftShader which links conformant programs.","If the log indicates a genuine defect in the bundled shaders, file a Remotion issue with the full log and device info."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"try {\n  state = dotGrid().setup(canvas);\n} catch (err) {\n  if (err instanceof Error && /program link failed/i.test(err.message)) {\n    console.error('Driver failed to link dot-grid program:', err.message);\n    // fall back to a non-shader approach\n  } else {\n    throw err;\n  }\n}","preventionTips":["Include the embedded info log when reporting driver/linker issues.","Test on the actual target hardware early.","Use a conformant software renderer in CI/headless.","Keep GPU drivers current."],"tags":["webgl2","dot-grid","program","glsl","gpu-driver","link"],"backgroundTag":null,"analyzedSha":"78fe4bb3fdb5a2cd68724393d63cb223db333fa7","analyzedAt":"2026-08-12T17:18:50.444Z","schemaVersion":2},"datasetVersion":"2026-08-13T19:17:28.613Z"}