Kosmoon Posted February 10, 2018 Share Posted February 10, 2018 The game works perfectly on local server, however when i put it on a web server, it get stuck at 80% progress the first load attempt, if i refresh 1 or 2 times it finnally works (i think the audio finally loads thanks to the web cache), this issue is on every brower, i have my game made in states, i think the structure is good, i dont understand. only one "game.load.audio" line (even if the audio is less than 10Ko) make the loading stuck. if i erase this "game.load.audio" line, it loads fine... I have the progress function so i can see that it get stuck at the same point of the loading and the create function is never triggered unless i refresh a few times. No error appears in the console, it's just stuck at around 80% (i m monitoring the progress parameter of "onFileComplete" in console). I have tested several audio files, i tryed .ogg .mp3 .. always the same issue. I tryed opera, edge, firefox, chrome, i tryed raspberry pi web server, and OVH web server. edit: i have watched the network panel of brower's developer tools, and some files stuck at "pending" state, this happens on both my home web server and a hosted web server, but never on localhost. if i wait 2 or 3 min, it finally loads, or if i refresh. Link to comment Share on other sites More sharing options...
samme Posted February 10, 2018 Share Posted February 10, 2018 8 hours ago, Kosmoon said: i have watched the network panel of brower's developer tools, and some files stuck at "pending" state, this happens on both my home web server and a hosted web server, but never on localhost. if i wait 2 or 3 min, it finally loads, or if i refresh. Can you screenshot this? https://developers.google.com/web/tools/chrome-devtools/network-performance/issues Link to comment Share on other sites More sharing options...
Kosmoon Posted February 10, 2018 Author Share Posted February 10, 2018 wow, i have finally solved this! after 2 days of struggle, battling with my code, all for nothing, it was my antivirus software: AVAST. Never use this antivirus with phaser it broke the loading process! xhr requests taking forever. I realised that the game worked on my neigbour's computer, that's when i understood the problem was coming from my computer and i could search elsewhere than in my code. note that this guy was right: thank's for the reply, i feel so relief right now. but it also makes me worry a bit for my future players, is there a way to avoid this issue without desabling the antivirus? Link to comment Share on other sites More sharing options...
samme Posted February 10, 2018 Share Posted February 10, 2018 3 hours ago, Kosmoon said: wow, i have finally solved this! after 2 days of struggle, battling with my code, all for nothing, it was my antivirus software: AVAST. I saw some similar complaints on StackOverflow. Link to comment Share on other sites More sharing options...
Recommended Posts