elsioneto Posted September 30, 2014 Share Posted September 30, 2014 HI everybody. I'm using phaser 2.0.2 and I have an issue with I.E. When I load my game, I keep getting warning and error messages like "Phaser.Loader error loading file : 'foo' from URL 'fooUrl'"(Warning) and/or "Unable to set property "loaded" of undefined or null reference"(Error) Through some debugging, I've commented all the audio files and the game worked. However, when I was uncommenting the audios loader blocks to load it again, the error kept reappering. The issue also appeared when I loaded just some of the files and kept refreshing the page. Does anyone knows anything about it? Thanks in advance! Edit: The problem occurs in windows 7! In windows 8.1 is fine (don't know about windows 8) Link to comment Share on other sites More sharing options...
Sebi Posted September 30, 2014 Share Posted September 30, 2014 Sounds like a caching issue.What is the exact error message? Link to comment Share on other sites More sharing options...
elsioneto Posted September 30, 2014 Author Share Posted September 30, 2014 It is what I was thinking, though I'm using a tag to not keep the cache I keep getting a warning and a error the warning is "Phaser.Loader error loading file : 'someAsset' from URL 'someUrl'" and the error is : "Unable to set property "loaded" of undefined or null reference" Link to comment Share on other sites More sharing options...
stupot Posted October 1, 2014 Share Posted October 1, 2014 It sounds very much like this problem I was having http://www.html5gamedevs.com/topic/9557-failed-audio-file-request-gets-reported-as-failed-image-request-in-ie/ It would finally do the unable to set loaded on undefined message, after some other messages. My problem was that the audio files didn't load and this was not being handled correctly - hiding the audio file loads and it worked without problem. Obviously fixing the failed audio file loads also fixed the problem. Link to comment Share on other sites More sharing options...
elsioneto Posted October 1, 2014 Author Share Posted October 1, 2014 Hey stupot, thanks! That actually stopped me from getting errors, but I'm still getting warnings. It seems to be a memory issue on the I.E. I'll try to do some workarounds here, but your topic helped me a lot! Link to comment Share on other sites More sharing options...
stupot Posted October 1, 2014 Share Posted October 1, 2014 What warnings are you getting? Link to comment Share on other sites More sharing options...
elsioneto Posted October 2, 2014 Author Share Posted October 2, 2014 On loader I get "Phaser.Loader error loading file : 'foo' from URL 'fooUrl'" The warning only occurs on refresh page situations and with audio files The game runs fine on a first load, but when I refresh, it keeps getting warnings loading assets (audios) It seems to be a memory/cache issue of the I.E. , or something related do HTML audio... Does anyone knows something about it? Link to comment Share on other sites More sharing options...
stupot Posted October 2, 2014 Share Posted October 2, 2014 Mmmmm, I've not had that (yet). Which version of IE and on what type of device is it? Can you produce a minimal example? Link to comment Share on other sites More sharing options...
elsioneto Posted October 3, 2014 Author Share Posted October 3, 2014 I'm having trouble with I.E. 11 at Windows 7. I cant post any example because it's professional related. :/ Link to comment Share on other sites More sharing options...
elsioneto Posted October 3, 2014 Author Share Posted October 3, 2014 It seems to be something related to the HTML audio... I.E. seems to have a limited number of audios that can load.For some reasons, when I reload the page, the assets doesn't seems to unload... Link to comment Share on other sites More sharing options...
Recommended Posts