{"record":{"id":"031b4cada20b0746","repo":"remotion-dev/remotion","slug":"failed-to-create-webgl-vertex-array-031b4c","errorCode":null,"errorMessage":"Failed to create WebGL vertex array","messagePattern":"Failed to create WebGL vertex array","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"critical","filePath":"packages/effects/src/glow/glow-runtime.ts","lineNumber":149,"sourceCode":"\tconst gl = target.getContext('webgl2', {\n\t\tpremultipliedAlpha: true,\n\t\talpha: true,\n\t\tpreserveDrawingBuffer: true,\n\t});\n\tif (!gl) {\n\t\tthrow createWebGL2ContextError('glow effect');\n\t}\n\n\tgl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, true);\n\n\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);","sourceCodeStart":131,"sourceCodeEnd":167,"githubUrl":"https://github.com/remotion-dev/remotion/blob/78fe4bb3fdb5a2cd68724393d63cb223db333fa7/packages/effects/src/glow/glow-runtime.ts#L131-L167","documentation":"Thrown by the glow setup when gl.createVertexArray() returns null. The VAO holds the fullscreen quad attributes used by all four glow passes; null indicates context loss or GPU object exhaustion.","triggerScenarios":"Lost context before VAO creation; many concurrent WebGL effects exhausting VAO pools.","commonSituations":"Compositions with many WebGL layers; headless render under memory pressure.","solutions":["Reduce concurrent WebGL 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|vertex array/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 VAO objects.","Render on a host with adequate GPU resources.","Retry after a fresh Chrome launch to clear transient context loss."],"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"}