{"record":{"id":"6069cd4bb3a978fa","repo":"remotion-dev/remotion","slug":"drop-shadow-program-link-failed-log-no-log","errorCode":null,"errorMessage":"Drop shadow program link failed: ${log ?? '(no log)'}","messagePattern":"Drop shadow program link failed: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/effects/src/drop-shadow/drop-shadow-runtime.ts","lineNumber":88,"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(`Drop shadow 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":70,"sourceCodeEnd":106,"githubUrl":"https://github.com/remotion-dev/remotion/blob/78fe4bb3fdb5a2cd68724393d63cb223db333fa7/packages/effects/src/drop-shadow/drop-shadow-runtime.ts#L70-L106","documentation":"Thrown by the drop-shadow runtime's linkProgram helper after LINK_STATUS failure, with the driver's program info log embedded. Linking fails when the vertex and fragment shaders disagree on varyings, exceed uniform/varying limits, or hit a driver bug. Because the drop-shadow shaders are paired as bundled constants, a link failure typically means a non-conformant driver or a per-resource limit hit.","triggerScenarios":"One of the four drop-shadow programs fails to link on a device whose driver mishandles the uniform/varying set, or whose MAX_VERTEX_UNIFORM_VECTORS / MAX_TEXTURE_IMAGE_UNITS is exceeded. Also seen on broken driver versions.","commonSituations":"Low-end mobile GPUs; outdated Intel/AMD driver branches; virtualized GL; remote desktop; specific Linux Mesa versions.","solutions":["Read the embedded info log for 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 = setupDropShadow(canvas);\n} catch (err) {\n  if (err instanceof Error && /program link failed/i.test(err.message)) {\n    console.error('Driver failed to link drop-shadow program:', err.message);\n    // fall back to a CSS box-shadow layer\n  } else {\n    throw err;\n  }\n}","preventionTips":["Include the embedded info log when reporting driver/linker issues.","Test on actual target hardware early.","Use a conformant software renderer in CI/headless.","Keep GPU drivers current."],"tags":["webgl2","drop-shadow","program","glsl","gpu-driver","link"],"backgroundTag":null,"analyzedSha":"78fe4bb3fdb5a2cd68724393d63cb223db333fa7","analyzedAt":"2026-08-12T17:18:50.444Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}