Hi, I have converted my game from Unity4 WebPlayer to Unity5 WebGL. On local drive, the game (index.html) works fine; but after uploaded on the server I have this error:
An error occured running the Unity content on this page. See your browser’s JavaScript console for more info. The error was:
could not load memory initializer Release/Profughi.html.mem
Update:
I have inserted the mime-type on my IIS (.mem and .data) but now I have these errors:
An error occured running the Unity content on this page. See your browser’s JavaScript console for more info. The error was:
abort() at jsStackTrace@http://…/webgl/Release/Profughi.js:1:19009
stackTrace@http://…/webgl/Release/Profughi.js:1:19195
abort@http://…/webgl/Release/Profughi.js:102:75532
ktp@http://…/webgl/Release/Profughi.js:21:1310691
G0b@http://…/webgl/Release/Profughi.js:69:1017856
F0b@http://…/webgl/Release/Profughi.js:69:1017395
I5d@http://…/webgl/Release/Profughi.js:53:125102
AWf@http://…/webgl/Release/Profughi.js:61:124723
func@http://…/webgl/Release/Profughi.js:1:25679
callRuntimeCallbacks@http://…/webgl/Release/Profughi.js:1:21377
ensureInitRuntime@http://…/webgl/Release/Profughi.js:1:21893
doRun@http://…/webgl/Release/Profughi.js:102:74485
http://…webgl/Release/Profughi.js:102:74829
If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.
…and it is very strange that you do not see the icons of unity and the loading
update 2:
I have tried used chrome and in the javascript console there is:
Uncaught ReferenceError: Invalid left-hand side in assignment
chrome-extension://cccpiddacjljmfbbgeimpelpndgpoknn/lib/middlemouse.js:142 Uncaught ReferenceError: addEvent is not defined
extensions::uncaught_exception_handler:8 Error in response to storage.get: TypeError: Cannot read property ‘offsetHeight’ of null
at module.exports (chrome-extension://cccpiddacjljmfbbgeimpelpndgpoknn/lib/au.min.js:1:25862)
at Object.module.exports.inject (chrome-extension://cccpiddacjljmfbbgeimpelpndgpoknn/lib/au.min.js:1:22500)
at Object.module.exports.start (chrome-extension://cccpiddacjljmfbbgeimpelpndgpoknn/lib/au.min.js:1:20874)
at chrome-extension://cccpiddacjljmfbbgeimpelpndgpoknn/lib/au.min.js:1:20549
at chrome-extension://cccpiddacjljmfbbgeimpelpndgpoknn/lib/au.min.js:1:14765
at chrome-extension://cccpiddacjljmfbbgeimpelpndgpoknn/lib/au.min.js:1:9708
at chrome-extension://cccpiddacjljmfbbgeimpelpndgpoknn/lib/au.min.js:1:7757
at chrome-extension://cccpiddacjljmfbbgeimpelpndgpoknn/lib/au.min.js:1:14765
at chrome-extension://cccpiddacjljmfbbgeimpelpndgpoknn/lib/au.min.js:1:17305
at complete (chrome-extension://cccpiddacjljmfbbgeimpelpndgpoknn/lib/au.min.js:1:2238)
at StorageInMemory.ChromeStorage.init (chrome-extension://cccpiddacjljmfbbgeimpelpndgpoknn/lib/au.min.js:1:2026)
at chrome-extension://cccpiddacjljmfbbgeimpelpndgpoknn/lib/au.min.js:1:17254
at chrome-extension://cccpiddacjljmfbbgeimpelpndgpoknn/lib/au.min.js:1:14821
at Object. (chrome-extension://cccpiddacjljmfbbgeimpelpndgpoknn/lib/au.min.js:1:17604)
at require (chrome-extension://cccpiddacjljmfbbgeimpelpndgpoknn/lib/au.min.js:1:627)
at Object. (chrome-extension://cccpiddacjljmfbbgeimpelpndgpoknn/lib/au.min.js:2:4115)
at require (chrome-extension://cccpiddacjljmfbbgeimpelpndgpoknn/lib/au.min.js:1:627)
extensions::uncaught_exception_handler:8 Error in event handler for (unknown): TypeError: Cannot read property ‘value’ of undefined
at chrome-extension://jjhaafelbmbpohgmabippkndaaikgdih/sup-fdi/script.js:7:3023
12extensions::uncaught_exception_handler:8 Error in event handler for (unknown): TypeError: Cannot read property ‘value’ of undefined
at chrome-extension://mmffncokckfccddfenhkhnllmlobdahm/scripts/env_setup.js:51:30 www..com/:33 run() called, but dependencies remain, so not running
UnityConfig.js:74 Invoking error handler due to
Script error. ads.panoramtech.net//coupons_support2.js?client=utc&referrer=http://www..com/:2 Uncaught SyntaxError: Unexpected identifier
(index):29 40
(index):33 40
UnityConfig.js:74 Invoking error handler due to
Uncaught abort() at Error
at jsStackTrace (http://www./webgl/Release/Profughi.js:1:19000)
at stackTrace (http://www.webgl/Release/Profughi.js:1:19183)
at abort (http://www./webgl/Release/Profughi.js:102:75522)
at Array.ktp (http://www./webgl/Release/Profughi.js:21:1310689)
at G0b (http://www./webgl/Release/Profughi.js:69:1017856)
at F0b (http://www./webgl/Release/Profughi.js:69:1017392)
at I5d (http://www./webgl/Release/Profughi.js:53:125099)
at AWf (http://www./webgl/Release/Profughi.js:61:124720)
at ATINIT.push.func (http://www./webgl/Release/Profughi.js:1:25661)
at callRuntimeCallbacks (http://www./webgl/Release/Profughi.js:1:21373)
If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.
Profughi.js:102 Uncaught abort() at Error
at jsStackTrace (http://www./webgl/Release/Profughi.js:1:19000)
at stackTrace (http://www./webgl/Release/Profughi.js:1:19183)
at abort (http://www./webgl/Release/Profughi.js:102:75522)
at Array.ktp (http://www./webgl/Release/Profughi.js:21:1310689)
at G0b (http://www./webgl/Release/Profughi.js:69:1017856)
at F0b (http://www./webgl/Release/Profughi.js:69:1017392)
at I5d (http://www./webgl/Release/Profughi.js:53:125099)
at AWf (http://www./webgl/Release/Profughi.js:61:124720)
at ATINIT.push.func (http://www./webgl/Release/Profughi.js:1:25661)
at callRuntimeCallbacks (http://www./webgl/Release/Profughi.js:1:21373)
If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.
mmm… I have the same problem with and empty project… without any objects on scene… or with a simple sphere in scene
and the index.html doesn’t load the loading icon, logo icon etc… ( http://www.smallthinggame.com/~unity/test/ )
“You either aren’t allocating enough memory or it’s trying to push too much stuff into localstorage…”
what do you mean? there are rules to follow to create the scene for a game that has to go in WebGL?
That was based on errors I saw in the js console. Looks like you have server configuration issues which may be a problem too. All your on files are coming back with a 200 status code but as zero bytes.
Thanks! I did not know of this thing!
I attached the shot… all files are 200 OK Status… but on web page the png don’t appear.
I have attached also the web.config… maybe is wrong it?
That web.config looks like it’s missing a lot of stuff. Is that the one from the root of your web application? Also, be careful posting the web configs as they may contain things like connection strings for databases… this one doesn’t but make sure you scrub them first.
My game don’t works on Safari, Chrome, Firefox… now I have build with Unity5.0.1 and before the game works in local with Unity5.0, now I have a new problem (write a new thread inside this forum)
I see my error (uncaught abort) is connected to Google Chrome itself, not Unity, as it doesn’t happen in older versions of Chrome. I hope Google makes a fix asap.
Might not be that easy. IIS versions are bundled with Windows Server versions. IIS 7 is bundled with Windows Server 2008. IIS 7.5 is bundled with 2008 R2 and IIS 8 is bundled with Windows Server 2012 and you can’t just upgrade IIS.
On top of that, IIS isn’t your problem, it’s likely configuration related. It’s just been so long since I’ve don’t any configuration in IIS 6 I couldn’t tell you were you change anything anymore. They changed the IIS Management console quite a bit in v7.