HTML5 "unable to store in cache due to internal error"

Hi,

I have a HTML5 project which ran fine in in Firefox and Chrome 32-bit versions when packaged using UE 4.6.1. Packaging the same game with UE 4.7.2, I now get an emscripten warning stating

Successfully compiled asm.js code (total compilation time 10310ms; unable to store in cache due to internal error (consider filing a bug); 1 functions compiled slowly: __Z49Z_Construct_UEnum_UEngineBaseTypes_EViewModeIndexv:47322:9 (332ms))

I even sometimes get an out of memory error when running in Firefox. This never happened before.

I am well aware of the TOTAL_GAME_MEMORY setting and the HTML5ToolChain.cs file and I am using just the same settings with the new UE version than with the older one. I thought this may is an emscripten error so I tested it with emscripten 1.25.0 and 1.29.0.

Why is this?

Hey Trutty,

Thanks for writing us today regarding your HTML5 issue. I have reviewed the Unreal Engine 4 Documentation, and within the HTML5 links, it states that a 64-bit browser is required for HTML5 builds. So where I would first start to work on correcting the issue you’re experiencing is upgrading my web browser to a 64-bit version.

You can learn more information from here: Sharing and Releasing Projects for Unreal Engine | Unreal Engine 5.1 Documentation

Cheers!

Hi ,

thanks for your reply. I downloaded the newest 64-bit build. The out of memory error seems to be gone in the 64-bit browser. The warning with unable to store in cache still appears.

My point is, that with UE 4.6.1 my HTML5 packages never threw an out of memory error or the said warning. But with 4.7.2 this now happens, which makes my game not playable. I would really like to get rid of those, cause otherwise I would need to downgrade to UE4.6.1.

Hi trutty,

The ‘unable to store in cache’ error is new to me. I’m guessing here a little but is firefox failing to write to it’s temp folder in AppData/Local maybe? might be worth clearing firefox’s cache manually, I think it can be done via the Options->Advanced menu.
Also, is there any difference between development builds and shipping builds? The out of memory could just be that your game was very close to the limit in 4.6 and new code in 4.7 pushed it over the edge. The fact the 64bit browser works suggests this to me, if shipping works then again would suggest that’s the case.

Hi JoJo_2nd,

I cleared the cache manually, as you suggested. As I mentioned in my question, the out of memory error just happens sometimes. After clearing the cache the game runs fine (with the warning, though). After a couple of refreshes/revisites of the site, the error appears again (in Shipping; again, only sometimes) (Firefox even crashed once, I attached the [crash report][1], maybe this is relevant).

The warning appears every time, in development and in shipping builds.

The package size with UE4.6.1 was about 91 MB.

34032-size_html5_shipping_ue4.6.1.jpg

With UE4.7.2 it is about 70 MB. I didn’t change game content. I guess the smaller size is due to the better compression and the .pak file which was introduced in the new engine version… When serving the game compressed, the size is 27.7MB.

34031-size_html5_shipping_ue4.7.2.jpg

Hey trutty,

Sorry for the late reply. Ok, so this sounds off as we don’t cache anything currently other than save games and let the browser do the rest of the work. I’m thinking it’s possibly a new(?) issue with firefox. Did you say shipping still worked with Chrome? Do you have access to other OSs? I’d be interested to know if its a windows only issue or not. If you’re ok with putting a link to a build (shipping build please :wink: ) I can try it on a few browsers/OS.

Hey Trutty,

I haven’t heard from you in a few days so for tracking purposes, I must close this thread out. If you have any further questions regarding this specific topic, please respond back on this thread. If you have any other questions, please post another question to AnswerHub.

Cheers!