{"record":{"id":"d8785cedbc38b47e","repo":"remotion-dev/remotion","slug":"pixel-dissolve-program-link-failed-log-no","errorCode":null,"errorMessage":"Pixel Dissolve program link failed: ${log ?? '(no log)'}","messagePattern":"Pixel Dissolve program link failed: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/effects/src/pixel-dissolve.ts","lineNumber":233,"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(`Pixel Dissolve program link failed: ${log ?? '(no log)'}`);\n\t}\n\n\treturn program;\n};\n\nconst createFullscreenQuad = (\n\tgl: WebGL2RenderingContext,\n): {\n\treadonly vao: WebGLVertexArrayObject;\n\treadonly vbo: WebGLBuffer;\n} => {\n\tconst vao = gl.createVertexArray();\n\tif (!vao) {\n\t\tthrow new Error('Failed to create WebGL vertex array');\n\t}\n\n\tgl.bindVertexArray(vao);\n","sourceCodeStart":215,"sourceCodeEnd":251,"githubUrl":"https://github.com/remotion-dev/remotion/blob/78fe4bb3fdb5a2cd68724393d63cb223db333fa7/packages/effects/src/pixel-dissolve.ts#L215-L251","documentation":"After pixelDissolve()'s shaders are attached and gl.linkProgram runs, the driver reports LINK_STATUS=false. With fixed, separately-compiled shaders this means the program failed to link on this driver (rejected varying/precision matching) or the context is failing operations due to loss. The program info log is interpolated for diagnostics.","triggerScenarios":"linkProgram() calls gl.getProgramParameter(program, LINK_STATUS) which returns false; gl.getProgramInfoLog yields the driver's link error. Occurs during pixelDissolve effect setup.","commonSituations":"Driver quirk rejecting the shader pair; lost context causing link to fail; outdated mobile/virtual GPU drivers; browser GPU blacklist degrading WebGL2.","solutions":["Render on a current Chromium build with a capable GPU (or SwiftShader in CI).","Update GPU drivers.","Handle context loss and retry initialization on restore.","Capture and report the interpolated info log if it reproduces on supported hardware."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":"// Probe program linking capability on this GPU once at startup.\nfunction canLinkPixelDissolveProgram(gl: WebGL2RenderingContext): boolean {\n  const vs = buildShader(gl, gl.VERTEX_SHADER, PIXEL_DISSOLVE_VS);\n  const fs = buildShader(gl, gl.FRAGMENT_SHADER, PIXEL_DISSOLVE_FS);\n  if (!vs || !fs) return false;\n  const p = gl.createProgram();\n  gl.attachShader(p, vs); gl.attachShader(p, fs); gl.linkProgram(p);\n  const ok = gl.getProgramParameter(p, gl.LINK_STATUS);\n  gl.deleteProgram(p);\n  return Boolean(ok);\n}","typeGuard":null,"tryCatchPattern":"try {\n  initPixelDissolve(canvas);\n} catch (err) {\n  if (String(err.message).startsWith('Pixel Dissolve program link failed')) {\n    logLinkIssue(err.message);\n    useNonGpuFallback();\n  } else throw err;\n}","preventionTips":["Render on a current Chromium build with a capable GPU (or SwiftShader in CI).","Update GPU drivers on render machines.","Handle context loss and retry setup on restore.","Report the interpolated info log if it reproduces on supported hardware."],"tags":["webgl","gpu","program","link","pixel-dissolve","driver"],"backgroundTag":null,"analyzedSha":"78fe4bb3fdb5a2cd68724393d63cb223db333fa7","analyzedAt":"2026-08-12T17:18:50.444Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}