{"record":{"id":"33420e5d1d661953","repo":"remotion-dev/remotion","slug":"failed-to-create-webgl-buffer-33420e","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/zoom-blur/zoom-blur-runtime.ts","lineNumber":118,"sourceCode":"\t}\n\n\tgl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, true);\n\n\tconst program = createProgram(gl, ZOOM_BLUR_VS, ZOOM_BLUR_FS);\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\tgl.bindVertexArray(null);\n\n\tconst textureSource = createRgbaTexture(gl);\n\n\treturn {\n\t\tgl,\n\t\tprogram,\n\t\tvao,\n\t\tvbo,","sourceCodeStart":100,"sourceCodeEnd":136,"githubUrl":"https://github.com/remotion-dev/remotion/blob/78fe4bb3fdb5a2cd68724393d63cb223db333fa7/packages/effects/src/zoom-blur/zoom-blur-runtime.ts#L100-L136","documentation":"During zoomBlur setup, `gl.createBuffer()` returned `null`, meaning the WebGL2 context could not allocate a vertex buffer object for the fullscreen-quad geometry. This is a resource-exhaustion or context-loss condition, not a user parameter issue.","triggerScenarios":"WebGL2 context lost, GPU buffer/object limit reached from many concurrent effects, or a degraded driver state.","commonSituations":"Compositions stacking many WebGL2 effects, context loss after GPU reset, rendering on hardware with tight WebGL2 object limits, or long-running sessions that leak GL objects.","solutions":["Reduce the number of concurrent WebGL effects.","Handle context loss and recreate effect state.","Update GPU drivers.","Ensure effect cleanup (`cleanupZoomBlur`) is called to free GL objects."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"try {\n  zoomBlur({ amount: 40 });\n} catch (err) {\n  if (err instanceof Error && err.message.includes('WebGL buffer')) {\n    console.error('VBO creation failed:', err.message);\n  } else {\n    throw err;\n  }\n}","preventionTips":["Reduce the number of concurrent WebGL effects.","Handle context loss and recreate effect state.","Ensure cleanupZoomBlur is called to free GL objects."],"tags":["webgl","effects","zoom-blur","gpu","memory","runtime"],"backgroundTag":null,"analyzedSha":"78fe4bb3fdb5a2cd68724393d63cb223db333fa7","analyzedAt":"2026-08-12T17:18:50.444Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}