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 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.<anonymous> (chrome-extension://cccpiddacjljmfbbgeimpelpndgpoknn/lib/au.min.js:1:17604) at require (chrome-extension://cccpiddacjljmfbbgeimpelpndgpoknn/lib/au.min.js:1:627) at Object.<anonymous> (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.<removed>.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.<removed>.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.<removed>/webgl/Release/Profughi.js:1:19000) at stackTrace (http://www.<removed>webgl/Release/Profughi.js:1:19183) at abort (http://www.<removed>/webgl/Release/Profughi.js:102:75522) at Array.ktp (http://www.<removed>/webgl/Release/Profughi.js:21:1310689) at G0b (http://www.<removed>/webgl/Release/Profughi.js:69:1017856) at F0b (http://www.<removed>/webgl/Release/Profughi.js:69:1017392) at I5d (http://www.<removed>/webgl/Release/Profughi.js:53:125099) at AWf (http://www.<removed>/webgl/Release/Profughi.js:61:124720) at __ATINIT__.push.func (http://www.<removed>/webgl/Release/Profughi.js:1:25661) at callRuntimeCallbacks (http://www.<removed>/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.<removed>/webgl/Release/Profughi.js:1:19000) at stackTrace (http://www.<removed>/webgl/Release/Profughi.js:1:19183) at abort (http://www.<removed>/webgl/Release/Profughi.js:102:75522) at Array.ktp (http://www.<removed>/webgl/Release/Profughi.js:21:1310689) at G0b (http://www.<removed>/webgl/Release/Profughi.js:69:1017856) at F0b (http://www.<removed>/webgl/Release/Profughi.js:69:1017392) at I5d (http://www.<removed>/webgl/Release/Profughi.js:53:125099) at AWf (http://www.<removed>/webgl/Release/Profughi.js:61:124720) at __ATINIT__.push.func (http://www.<removed>/webgl/Release/Profughi.js:1:25661) at callRuntimeCallbacks (http://www.<removed>/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... 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 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 I thought it was enough to upload files to the server and the game worked "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... 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! 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!!
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 Thanks for help!
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...
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) Unity3d help please
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.
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.
For what it's worth, I was having this same problem with my host. I use Netfirms. The solution was to replace the .htaccess script with the code below. Simply adding mime types or whatever did not work. They also said that gzip compression was off, even though that was one of the first things I asked them. Every time I got a new response it was from a different person. Each response contradicted at least one other. Clowns. Code (CSharp): <ifModule mod_gzip.c> mod_gzip_on Yes mod_gzip_dechunk Yes mod_gzip_item_include file .(html?|txt|css|js|php|pl)$ mod_gzip_item_include handler ^cgi-script$ mod_gzip_item_include mime ^text/.* mod_gzip_item_include mime ^application/x-javascript.* mod_gzip_item_exclude mime ^image/.* mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.* </ifModule> AddType application/octet-stream .mem AddType application/octet-stream .data
@lordubik - You appear to still have some issues. Your PNG files are coming across with the correct MIME type now, but they are not showing up. Either your image files are corrupt or your server isn't returning them properly. Try browsing directly to one of the images: http://www.smallthinggame.com/~unity/test/TemplateData/progresslogo.png Also, I tried with the script debugger running in Firefox, Chrome, and IE. In IE it throws an Out of Memory exception. In Chrome and Firefox you get an uncaught error: Code (csharp): An error occured running the Unity content on this page. See your browser's JavaScript console for more info. The error was: uncaught exception: abort() at jsStackTrace@http://www.smallthinggame.com/~unity/test/Release/Test.js:1:18996 stackTrace@http://www.smallthinggame.com/~unity/test/Release/Test.js:1:19164 abort@http://www.smallthinggame.com/~unity/test/Release/Test.js:78:72881 Jvk@http://www.smallthinggame.com/~unity/test/Release/Test.js:69:618098 FRb@http://www.smallthinggame.com/~unity/test/Release/Test.js:41:435646 BRb@http://www.smallthinggame.com/~unity/test/Release/Test.js:41:434397 sNd@http://www.smallthinggame.com/~unity/test/Release/Test.js:17:259003 gOd@http://www.smallthinggame.com/~unity/test/Release/Test.js:17:309869 .func@http://www.smallthinggame.com/~unity/test/Release/Test.js:1:25660 callRuntimeCallbacks@http://www.smallthinggame.com/~unity/test/Release/Test.js:1:21373 ensureInitRuntime@http://www.smallthinggame.com/~unity/test/Release/Test.js:1:21873 doRun@http://www.smallthinggame.com/~unity/test/Release/Test.js:78:71846 run/<@http://www.smallthinggame.com/~unity/test/Release/Test.js:78:72202 If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.
My guess is that you still have some MIME mappings misconfigured somewhere. For what it's worth, I have seen similar behaviors in IIS with PNG's before. This can happen when you have the same MIME mapping at both the server level and the site level for that file extension.
is strange because I have build on Unity3d and after transfer on server... maybe is the ftp transfert the problem? mmm... the Mime is configured on IIS and added on web.config... is wrong? But all this on a IIS6.x... (in a my virtual server based on Windows Server 2003)... there is somewhere a free provider that running Unity3d/WegGL? Sorry, for my "dummy" question...
What .NET version is it? If you want I can temporarily setup a site for you on my server running IIS 8 and you can publish to it and see what happens. Just IM me with your email address.
@lordubik @Ben BearFish So i just got my build to work fine after facing similar issues as you guys for the past couple days. I got mine to work by doing the following: Go to Edit > Project Settings > Player > Other Settings > Uncheck "Strip Engine Code*"
That's means your project needs some code that has been stripped out during the build process to make the final js smaller. Even though, unchecking "Strip Engine Code" allows you to work, it does not really fix the underlying issue. Would you be able to submit a bug report ?
Marco, Thanks for the reply. I placed a bug report yesterday. Bug report# 726233 I've reviewed several threads over the past day or so and it seems like it's been a recurring issue? Is this a problem with the stripping function that's being called during the stripping. Or does the issue lie in the project assets?
If it's striping-related, it might be caused by a script that depends on some native code that was stripped out. If you could attach a repro project to the bug report, then we could tell exactly what's causing it.
I don't know more what I can do to fix it.... My project stuck in this issue I tried everything and I can't understand why. WebGL from Unity sucks! Sorry. But a lot of things don't make sense, like myapp.js is not found (error 404)... But Unity is not generating this file! Only the Release folder without myapp.js. In this folder exist 5 files: 1. .htaccess 2. myapp.datagz 3. myapp.jsgz 4. myapp.memgz 5. UnityLoader.js The error is the same in Firefox and Chrome:
As of 5.3, it's normal to see one 404 error regarding <build_name>.js in release builds. - At build-time, we do generate <build_name>.js, but then we pack it into <build_name>.jsgz - At run-time, we try to download <build_name>.js, if it's not found we assume the server is not setup to use compression and we continue by downloading jsgz (+ datagz, memgz) Hope that makes sense.
Thanks for reply So I can disconsider this error, right? Will not impact in something, like performance as an exception? Beside... What you could say about the error in the quote above? "An error occured running the Unity content on this page. See your browser's JavaScript console for more info. The error was: uncaught exception: abort(90)..." Thanks!!!
the browser's console should say something like: "Decompressed [..] in [...]ms. You can remove this delay if you configure your web server to host files using gzip compression." basically there is a delay because we try to download the code using the uncompressed filename, usually it's not significant but you can improve the user experience by setting up the server to use compression. would you mind opening a new thread for that? ...and please post a stacktrace from a Development build
i am trying to inetgrate unity webgl files in angular project. but i am getting error like 1.Cannot read property 'preRun' of undefined 2.Cannot set property 'asm' of undefined 3.Cannot set property 'memoryInitializerRequest' of undefined
Topofsteel, I too started having errors. I tried your code and it works fine on all browsers, EXCEPT that Chrome runs but it has no sound. Smaller test apps using the Standard Unity .htaccess, work fine, and give audio in Chrome. Server is Apache. Can anyone help please?
Follow https://forum.unity.com/threads/chr...on-66-may-block-audio-for-unity-webgl.517758/ for your audio problem.
I spoke too soon. Topofsteel's fix works fine in my main product but after adding the Chrome audio fix, our short demo version now suffers a similar problem to what I had previously " Uncaught abort(-1) at Error at jsStackTrace (blob:http://www.q-skills.com/751db6a5-30d5-4f2d-8883-5df63331fbe5:1:22814) at stackTrace (blob:http://www.q-skills.com/751db6a5-30d5-4f2d-8883-5df63331fbe5:1:22997) at abort (blob:http://www.q-skills.com/751db6a5-30d5-4f2d-8883-5df63331fbe5:36:53511) at _JS_Sound_ReleaseInstance (blob:http://www.q-skills.com/751db6a5-30d5-4f2d-8883-5df63331fbe5:1:198345) at lTc (blob:http://www.q-skills.com/751db6a5-30d5-4f2d-8883-5df63331fbe5:25:95273) at qVc (blob:http://www.q-skills.com/751db6a5-30d5-4f2d-8883-5df63331fbe5:25:128809) at cRc (blob:http://www.q-skills.com/751db6a5-30d5-4f2d-8883-5df63331fbe5:25:57758) at CRc (blob:http://www.q-skills.com/751db6a5-30d5-4f2d-8883-5df63331fbe5:25:78148) at GMc (blob:http://www.q-skills.com/751db6a5-30d5-4f2d-8883-5df63331fbe5:10:955129) at $Ra (blob:http://www.q-skills.com/751db6a5-30d5-4f2d-8883-5df63331fbe5:23:334011) If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information." The crash seems to now occur immediately at the first user interaction (used to initiate audio in Chrome). The crash now happens in both Chrome and Firefox at this point. Marco, is there an error in your script? Help please!