{"record":{"id":"5a56efb074535ff8","repo":"remotion-dev/remotion","slug":"failed-to-create-webgl-buffer-5a56ef","errorCode":null,"errorMessage":"Failed to create WebGL buffer","messagePattern":"Failed to create WebGL buffer","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"critical","filePath":"packages/effects/src/glow/glow-runtime.ts","lineNumber":160,"sourceCode":"\tconst programExtract = createProgram(gl, GLOW_VS, GLOW_EXTRACT_FS);\n\tconst programHorizontal = createProgram(gl, GLOW_VS, GLOW_BLUR_FS_HORIZONTAL);\n\tconst programVertical = createProgram(gl, GLOW_VS, GLOW_BLUR_FS_VERTICAL);\n\tconst programComposite = createProgram(gl, GLOW_VS, GLOW_COMPOSITE_FS);\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\n\tconst data = new Float32Array([\n\t\t-1, -1, 0, 0, 1, -1, 1, 0, -1, 1, 0, 1, 1, 1, 1, 1,\n\t]);\n\n\tconst vbo = gl.createBuffer();\n\tif (!vbo) {\n\t\tthrow new Error('Failed to create WebGL buffer');\n\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) {","sourceCodeStart":142,"sourceCodeEnd":178,"githubUrl":"https://github.com/remotion-dev/remotion/blob/78fe4bb3fdb5a2cd68724393d63cb223db333fa7/packages/effects/src/glow/glow-runtime.ts#L142-L178","documentation":"Thrown by the glow setup when gl.createBuffer() returns null after the VAO was created. The VBO stores the fullscreen-quad vertex data; null indicates context loss or GPU buffer-object exhaustion.","triggerScenarios":"Lost context between VAO and VBO creation; buffer-object pool exhausted by many effects.","commonSituations":"Many WebGL layers; headless Chrome close to GPU object limits.","solutions":["Reduce concurrent WebGL effects.","Retry on a fresh Chrome process.","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|buffer/i.test(String(err))) throw err;\n    await new Promise((r) => setTimeout(r, 200 * (attempt + 1)));\n  }\n}","preventionTips":["Reduce concurrent WebGL effects to free VBO objects.","Render on a host with adequate GPU resources.","Retry after a fresh Chrome launch."],"tags":["webgl","glow","gpu","geometry","runtime"],"backgroundTag":null,"analyzedSha":"78fe4bb3fdb5a2cd68724393d63cb223db333fa7","analyzedAt":"2026-08-12T17:18:50.444Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}