{"action":"created","issue":{"url":"https://api.github.com/repos/photonstorm/phaser/issues/2053","labels_url":"https://api.github.com/repos/photonstorm/phaser/issues/2053/labels{/name}","comments_url":"https://api.github.com/repos/photonstorm/phaser/issues/2053/comments","events_url":"https://api.github.com/repos/photonstorm/phaser/issues/2053/events","html_url":"https://github.com/photonstorm/phaser/issues/2053","id":104513220,"number":2053,"title":"Queuing multiple identical items in the loader can cause CRC2D TypeError","user":{"login":"tennysonholloway","id":4596069,"avatar_url":"https://avatars.githubusercontent.com/u/4596069?v=3","gravatar_id":"","url":"https://api.github.com/users/tennysonholloway","html_url":"https://github.com/tennysonholloway","followers_url":"https://api.github.com/users/tennysonholloway/followers","following_url":"https://api.github.com/users/tennysonholloway/following{/other_user}","gists_url":"https://api.github.com/users/tennysonholloway/gists{/gist_id}","starred_url":"https://api.github.com/users/tennysonholloway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tennysonholloway/subscriptions","organizations_url":"https://api.github.com/users/tennysonholloway/orgs","repos_url":"https://api.github.com/users/tennysonholloway/repos","events_url":"https://api.github.com/users/tennysonholloway/events{/privacy}","received_events_url":"https://api.github.com/users/tennysonholloway/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-02T15:50:48Z","updated_at":"2015-09-02T19:43:59Z","closed_at":null,"body":"Error Message: `TypeError: Argument 1 of CanvasRenderingContext2D.drawImage could not be converted to any of: HTMLImageElement, HTMLCanvasElement, HTMLVideoElement, ImageBitmap.`\r\n@ phaser.js:15492  using phaser 2.4.3 at  486c15f \r\nI am receiving image URLs from a web socket at a very high speed, this was the code that was producing errors:\r\n\r\n```javascript\r\nvar url = data from websocket //can come in very fast\r\ngame.load.image(url, url);\r\ngame.load.onFileComplete.addOnce(function (prog, key, success) {\r\n    // function call that eventually did game.add.image(.... key)\r\n});\r\ngame.load.start()\r\n```\r\nI think the intended behavior should not be to error out if queuing multiple similar items, or raise an error if you attempt to add to the loader something that is in the load queue. This was my code that mitigated the error (prevents image from being loaded if load.checkKeyExists or cache.checkKeyExists)\r\n```javascript\r\nvar url = data from websocket //can come in very fast\r\nif (game.cache.checkImageKey(url) {\r\n    // function call to game.add.image\r\n} else if (game.load.checkKeyExists('image', url) {\r\n    // do nothing (image is loading already)\r\n} else {\r\n    game.load.image(url, url);\r\n    game.load.onFileComplete.addOnce(function (prog, key, success) {\r\n        // function call that eventually did game.add.image(.... key)\r\n    });\r\n    game.load.start()\r\n}\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/photonstorm/phaser/issues/comments/137223987","html_url":"https://github.com/photonstorm/phaser/issues/2053#issuecomment-137223987","issue_url":"https://api.github.com/repos/photonstorm/phaser/issues/2053","id":137223987,"user":{"login":"pnstickne","id":1430176,"avatar_url":"https://avatars.githubusercontent.com/u/1430176?v=3","gravatar_id":"","url":"https://api.github.com/users/pnstickne","html_url":"https://github.com/pnstickne","followers_url":"https://api.github.com/users/pnstickne/followers","following_url":"https://api.github.com/users/pnstickne/following{/other_user}","gists_url":"https://api.github.com/users/pnstickne/gists{/gist_id}","starred_url":"https://api.github.com/users/pnstickne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnstickne/subscriptions","organizations_url":"https://api.github.com/users/pnstickne/orgs","repos_url":"https://api.github.com/users/pnstickne/repos","events_url":"https://api.github.com/users/pnstickne/events{/privacy}","received_events_url":"https://api.github.com/users/pnstickne/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T19:43:59Z","updated_at":"2015-09-02T19:43:59Z","body":"Is the same url ever loaded multiple times?"}}