{"record":{"id":"4aed4ca8207c54ee","repo":"remotion-dev/remotion","slug":"failed-to-create-webgl-framebuffer-4aed4c","errorCode":null,"errorMessage":"Failed to create WebGL framebuffer","messagePattern":"Failed to create WebGL framebuffer","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"critical","filePath":"packages/effects/src/glow/glow-runtime.ts","lineNumber":179,"sourceCode":"\t}\n\n\tgl.bindBuffer(gl.ARRAY_BUFFER, vbo);\n\tgl.bufferData(gl.ARRAY_BUFFER, data, gl.STATIC_DRAW);\n\n\tgl.enableVertexAttribArray(0);\n\tgl.vertexAttribPointer(0, 2, gl.FLOAT, false, 16, 0);\n\tgl.enableVertexAttribArray(1);\n\tgl.vertexAttribPointer(1, 2, gl.FLOAT, false, 16, 8);\n\n\tgl.bindVertexArray(null);\n\n\tconst textureSource = createRgbaTexture(gl);\n\tconst textureGlowA = createRgbaTexture(gl);\n\tconst textureGlowB = createRgbaTexture(gl);\n\n\tconst framebuffer = gl.createFramebuffer();\n\tif (!framebuffer) {\n\t\tthrow new Error('Failed to create WebGL framebuffer');\n\t}\n\n\tconst colorCanvas = document.createElement('canvas');\n\tcolorCanvas.width = 1;\n\tcolorCanvas.height = 1;\n\tconst colorCtx = colorCanvas.getContext('2d', {willReadFrequently: true});\n\tif (!colorCtx) {\n\t\tthrow new Error('Failed to acquire 2D context for color parsing');\n\t}\n\n\treturn {\n\t\tgl,\n\t\tprogramExtract,\n\t\tprogramHorizontal,\n\t\tprogramVertical,\n\t\tprogramComposite,\n\t\tvao,\n\t\tvbo,","sourceCodeStart":161,"sourceCodeEnd":197,"githubUrl":"https://github.com/remotion-dev/remotion/blob/78fe4bb3fdb5a2cd68724393d63cb223db333fa7/packages/effects/src/glow/glow-runtime.ts#L161-L197","documentation":"Thrown by the glow setup when gl.createFramebuffer() returns null. The framebuffer is the offscreen render target that lets the blur passes ping-pong between textureGlowA and textureGlowB; null indicates context loss or framebuffer-object exhaustion.","triggerScenarios":"Lost context before framebuffer creation; many glow effects each needing their own FBO; driver with strict FBO limits.","commonSituations":"Stacking multiple glow layers in one composition; headless render near GPU object limits.","solutions":["Reduce concurrent glow effects.","Retry on a fresh Chrome instance.","Use a host with more GPU resources."],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":"let effect;\nfor (let attempt = 0; attempt < 3; attempt++) {\n  try {\n    effect = glow(params);\n    break;\n  } catch (err) {\n    if (attempt === 2 || !/WebGL|framebuffer/i.test(String(err))) throw err;\n    await new Promise((r) => setTimeout(r, 200 * (attempt + 1)));\n  }\n}","preventionTips":["Each glow effect needs its own FBO; keep concurrent glow layer count modest.","Render on a host with adequate GPU resources.","Retry transient context loss on a fresh Chrome process."],"tags":["webgl","glow","gpu","framebuffer","runtime"],"backgroundTag":null,"analyzedSha":"78fe4bb3fdb5a2cd68724393d63cb223db333fa7","analyzedAt":"2026-08-12T17:18:50.444Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}