{"record":{"id":"31ca21483836ddf4","repo":"remotion-dev/remotion","slug":"paper-program-link-failed-log-no-log","errorCode":null,"errorMessage":"Paper program link failed: ${log ?? '(no log)'}","messagePattern":"Paper program link failed: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"critical","filePath":"packages/effects/src/paper.ts","lineNumber":687,"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(`Paper program link failed: ${log ?? '(no log)'}`);\n\t}\n\n\treturn program;\n};\n\nconst createSourceTexture = (gl: WebGL2RenderingContext): WebGLTexture => {\n\tconst texture = gl.createTexture();\n\tif (!texture) {\n\t\tthrow new Error('Failed to create WebGL texture');\n\t}\n\n\tgl.bindTexture(gl.TEXTURE_2D, texture);\n\tgl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);\n\tgl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);\n\tgl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);\n\tgl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);\n\tgl.bindTexture(gl.TEXTURE_2D, null);\n\treturn texture;","sourceCodeStart":669,"sourceCodeEnd":705,"githubUrl":"https://github.com/remotion-dev/remotion/blob/78fe4bb3fdb5a2cd68724393d63cb223db333fa7/packages/effects/src/paper.ts#L669-L705","documentation":"Thrown by linkProgram (packages/effects/src/paper.ts:687) when the paper program's LINK_STATUS is false; the info log is appended. PAPER_VS and PAPER_FS compiled but linking failed — for these hardcoded correct shaders that points to a driver link bug, an attribute/uniform binding inconsistency in the driver, or context corruption.","triggerScenarios":"Linking the paper program on a driver that compiles GLSL ES 3.00 but links incorrectly; linking after a context loss/restoration that left state inconsistent; exceeding a driver-specific uniform/attribute limit at link time.","commonSituations":"Buggy or outdated GPU drivers; software rasterizers with incomplete linkers; 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 paper() for that environment."],"exampleFix":"// before\npaper({amount: 1}); // program link fails on this driver\n\n// after: feature-probe linking once per host, fall back if it fails\nconst ok = await probePaperProgramLinks();\nconst effects = ok ? [paper({amount: 1})] : [];","handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":"try {\n  scene.push(paper({amount: 1}));\n} catch (err) {\n  if (/Paper program link failed/.test(String(err?.message))) {\n    // driver linker bug: disable paper 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 paper() off on affected hosts."],"tags":["webgl","gpu","paper","effects","program","driver","glsl"],"backgroundTag":null,"analyzedSha":"78fe4bb3fdb5a2cd68724393d63cb223db333fa7","analyzedAt":"2026-08-12T17:18:50.444Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}