WebGL Error :(

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

Where I wrong?

Thanks for help… this is very important for us!

Stefano

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

:frowning:

please help me!!

Thanks!

Stefano

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.

Thanks!

Stefano

ok… to esclude my project I have generated a simple test with a sphere that jumps
Doesn’t works…

http://www.smallthinggame.com/~unity/test

An error occured running the Unity content on this page. See your browser’s JavaScript console for more info. The error was:
Uncaught abort() at Error
at jsStackTrace (http://www.smallthinggame.com/~unity/test/Release/Test.js:992:13)
at stackTrace (http://www.smallthinggame.com/~unity/test/Release/Test.js:1009:22)
at abort (http://www.smallthinggame.com/~unity/test/Release/Test.js:2935631:25)
at Array.b128 (http://www.smallthinggame.com/~unity/test/Release/Test.js:2932407:60)
at __ZN13MemoryManager8AllocateEji10MemLabelIdiPKci [MemoryManager::Allocate?1(unsigned int, int)] (http://www.smallthinggame.com/~unity/test/Release/Test.js:911711:41)
at __Z15malloc_internaljj10MemLabelIdiPKci [malloc_internal?1(unsigned int, unsigned int)] (http://www.smallthinggame.com/~unity/test/Release/Test.js:911538:8)
at __ZN19CollisionListener2DC2Ev [CollisionListener2D::CollisionListener2D()] (http://www.smallthinggame.com/~unity/test/Release/Test.js:1787258:9)
at __GLOBAL__I_a14191 (http://www.smallthinggame.com/~unity/test/Release/Test.js:1802265:2)
at ATINIT.push.func (http://www.smallthinggame.com/~unity/test/Release/Test.js:1326:66)
at callRuntimeCallbacks (http://www.smallthinggame.com/~unity/test/Release/Test.js:1092:7)
If this abort() is unexpected, build…

Thanks!

Stefano

anyone could help me? the problem is not the my game but WebgGL that doesn’t works on server… :frowning:

http://www.smallthinggame.com/~unity/test

Thanks!

“SCRIPT14: Not enough storage is available to complete this operation.”

You either aren’t allocating enough memory or it’s trying to push too much stuff into localstorage…

mmm… I have the same problem with and empty project… without any objects on scene… or with a simple sphere in scene :frowning:
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?

Thanks a lot for you help!

Stefano

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.

Sorry I am not a IT manager :frowning:
I thought it was enough to upload files to the server and the game worked :frowning:

“All your on files are coming back with a 200 status code but as zero bytes.”
How can I see this? I have a IIS server where I uploaded the files…

I also changed the server but the images on index.html (icon, loading etc…) still not visible… :frowning:

Thanks for help!

I just loaded it in IE and hit F12 to bring up the dev tools and networking tab. You cam do the same with Firefox and firebug or chrome.

Thanks! I did not know of this thing! :sweat_smile:
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?

Thanks for help!!


2064941–134628–web.config.txt (1.43 KB)

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.

ah… I have copied the file from another example…
There is somewhere an correct version? If I exclude the server from errors I exclude already a cause!

Is in the root of web site together with index.html of website. Is better move where is index.html of WebGL application?

Of course, but I have looked it, before upload it :slight_smile:

Thanks for help!

Do you have a correct web.config sample? I have found that my server is a IIS6.x

Thanks!

I’m experiencing the same problem, but only on Chrome. On Firefox my game loads fine.

Uncaught abort() at Error
at jsStackTrace …
If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.

Any help would be appreciated…

1 Like

My game don’t works on Safari, Chrome, Firefox… :frowning: 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)

Unity3d help please :frowning:

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.

Holy moly… is your server running Windows Server 2003? For security reasons alone you should be on IIS 7 / 7.5 at a minimum.

Ah, thanks for this information. Now I find a IIS7 to check if the game works.

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.