title: HTML5 Canvas DrawImage Unspecified Error
body: <p>I am creating a HTML5 game using canvas. When playing it in IE, I am getting a "SCRIPT16389: Unspecified error" when the following code is ran.</p>
  
  <pre><code>ctx.drawImage(
      this.img, 
      this.startX + (column*this.width), 
      this.startY + (row*this.height), 
      this.width, 
      this.height, 
      posX, 
      posY, 
      width, 
      height
  );
  </code></pre>
  
  <p>This error is occurring at the end of the game with the same image. There are other images using the exact same code throughout the whole game, but they don't get the error. Any suggestions on what could be causing this error?</p>
  
  <p>Update:</p>
  
  <p>This only happens in IE. It works fine in Chrome and Firefox.</p>
  
  <p>Here is a console.log for the variables when it crashes.</p>
  
  <pre><code>this.img.complete :true
  this.startX :0
  column :0
  this.startX + (column*this.width) :00
  this.startY :0
  row :0
  this.startY + (row*this.height) :00
  this.width :1200
  this.height :1200
  posX :204
  posY :68
  width :612
  height :612
  </code></pre>
  
  <p>The images are added to an object called Game.sprites. They are added in the following manner</p>
  
  <pre><code>var imageObj = new Image();
  imageObj.src = assetDir + "Images/myImage.png";
  Game.sprites.myImageAnimation = new AnimatedSpriteSheet(imageObj, 0, 0, 1200, 1200, 5, 24);
  //function AnimatedSpriteSheet(img, startX, startY, width, height, imagesPerRow, imageCount)
  </code></pre>
  
  <p>The spritesheet that is crashing is 1,174 KB in size. It is the largest file in the game. I also tried removing that sprite from the game, but the next image from the game also crashed it. That image was only 280 KB in size.</p>