Javascript WebGL error
        Posted  
        
            by 
                Chris
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Chris
        
        
        
        Published on 2010-12-28T12:48:53Z
        Indexed on 
            2010/12/28
            12:54 UTC
        
        
        Read the original article
        Hit count: 533
        
Hi I can load 400 textured cylinders using o3d webl, as soon as I push the test upto 600 cylinders I get the following..
uncaught exception: [Exception... "Could not convert JavaScript argument arg 0 [nsIDOMWebGLRenderingContext.getShaderInfoLog" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT-JS)" location: "JS frame :: file:///d:/o3d-webgl/effect.js :: :: line 181" data: no)
This is the error from minefield, does anyone know what this means?
This is the function:
o3d.Effect.prototype.bindAttributesAndLinkIfReady = function() {
  if (this.vertexShaderLoaded_ && this.fragmentShaderLoaded_) {
    var semanticMap = o3d.Effect.semanticMap_;
    for (var name in semanticMap) {
      this.gl.bindAttribLocation(
          this.program_, semanticMap[name].gl_index, name);
    }
    this.gl.linkProgram(this.program_);
    if (!this.gl.getProgramParameter(this.program_, this.gl.LINK_STATUS)) {
      var log = this.gl.getShaderInfoLog(this.program_);
      this.gl.client.error_callback(
          'Program link failed with error log:\n' + log);
    }
    this.getUniforms_();
    this.getAttributes_();
  }
};
It falls over on ... var log = this.gl.getShaderInfoLog(this.program_);
© Stack Overflow or respective owner