[Public WebGL] Negative bufferSubData() offset crash chrome

Shy Shalom [email protected]
Tue Feb 1 00:36:08 PST 2011

This little bit of code:

function crash() {
    buf = gl.createBuffer();
    gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, buf);
    gl.bufferData(gl.ELEMENT_ARRAY_BUFFER, 16, gl.DYNAMIC_DRAW);
    gl.bufferSubData(gl.ELEMENT_ARRAY_BUFFER, *-20*, new

seem to crash chrome tab in about 1 out of 3 tries on average.
After a few such crashes webgl stops working altogether but restarting the
chrome from scratch starts a clean slate.
using chrome 9.0.597.83 on Windows Vista 32bit with an nVidia card
filed a bug here <http://code.google.com/p/chromium/issues/detail?id=71520>

Haven't checked firefox yet since for some reason WebGL doesn't work for me
there as of yesterday.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://khronos.org/pipermail/public_webgl_khronos.org/attachments/20110201/8a245c63/attachment.html>

More information about the public_webgl mailing list