{"action":"opened","issue":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/9797","repository_url":"https://api.github.com/repos/mrdoob/three.js","labels_url":"https://api.github.com/repos/mrdoob/three.js/issues/9797/labels{/name}","comments_url":"https://api.github.com/repos/mrdoob/three.js/issues/9797/comments","events_url":"https://api.github.com/repos/mrdoob/three.js/issues/9797/events","html_url":"https://github.com/mrdoob/three.js/issues/9797","id":180003868,"number":9797,"title":"ImageLoader.load never suceeds or fails, if createElementNS fails","user":{"login":"griffin2000","id":1008962,"avatar_url":"https://avatars.githubusercontent.com/u/1008962?v=3","gravatar_id":"","url":"https://api.github.com/users/griffin2000","html_url":"https://github.com/griffin2000","followers_url":"https://api.github.com/users/griffin2000/followers","following_url":"https://api.github.com/users/griffin2000/following{/other_user}","gists_url":"https://api.github.com/users/griffin2000/gists{/gist_id}","starred_url":"https://api.github.com/users/griffin2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/griffin2000/subscriptions","organizations_url":"https://api.github.com/users/griffin2000/orgs","repos_url":"https://api.github.com/users/griffin2000/repos","events_url":"https://api.github.com/users/griffin2000/events{/privacy}","received_events_url":"https://api.github.com/users/griffin2000/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-29T09:54:56Z","updated_at":"2016-09-29T09:54:56Z","closed_at":null,"body":"##### Description of the problem \r\n\r\nImageLoader.load does not handle error case for the createElementNS call (on line 30 src\\loaders\\ImageLoader.js). This means if createElementNS throws an error (which happens 100% of the time in my node.js setup) then ImageLoader.load the call just disappears, neither onLoad or onError are ever called.\r\n\r\nIf think all that is needed to fix this is simply add to line 32 of ImageLoader.js:\r\n`\t\timage.onerror = onError;`\r\n\r\nThen you get an error callback in this case\r\n\r\n##### Three.js version\r\n\r\n- [X ] Dev\r\n- [X ] r81\r\n\r\n##### Browser\r\n\r\n- [x] All of them\r\n- [ ] Chrome\r\n- [ ] Firefox\r\n- [ ] Internet Explorer\r\n\r\n##### OS\r\n\r\n- [x] All of them\r\n- [ ] Windows\r\n- [ ] Linux\r\n- [ ] Android\r\n- [ ] IOS\r\n\r\n##### Hardware Requirements (graphics card, VR Device, ...)\r\n\r\n\r\n"}}
{"actor":{"display_login":"griffin2000"}}