html5 out of memory

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By leg0
:warning: Old Version Published before Godot 3 was released.

Hey there,

I just started a new project that need to be publish on the web and when I start the exported html page it says in the console :

Successfully compiled asm.js code (loaded from cache in 227ms) debug.asm.js
uncaught exception: out of memory

I don’t have much in my project so far :

  • 1 load(res://(…).png) ~100ko
  • 1 json file loaded at runtime
  • 1 dynamic font

And because the error doesn’t really give me more information I have no idea what caused this

What are things that you shouldn’t use with html5 export ?

Thanks for the help !

EDIT

v2.1.2

I tried to create a new empty project and build : it works
I tried to remove all assets & scripts and now I have only a scene and a script in my project and I still have an out of memory error … It’s getting weird.

Version of Godot?
Other projects work fine? (like the demo projects)


You can try increasing the memory on the export options.

Also test on different browsers, I have some systems where Firefox works fine and Chrome don’t and others the opposite, also I know some people that can’t make it run on any of their computers.


On 2.1.2 the things that failed to me were looping samples, some 3D shaders, Environment settings working weird.

Inputs (like mouse) and controls may fail too but I have not tested much.

eons | 2017-03-20 23:07

I tried a ton of different stuff and sometimes it works and sometimes it won’t.

Mostly by creating another empty project and merging the content of the original.

It seems that deleting the export.cfg file gives the best result. But I wasn’t able to locate what was exactly the issue …

leg0 | 2017-03-21 15:40

Browser extensions?

Debug and release does the same?

Browser’s developer console says anything?


It could be bad luck and you hit a specific bug in your system.

As most major engines, Godot will support webassembly on next version, if your project can wait for that, you can start looking to port it to 3 (2.1.3 will come with a exporter)

eons | 2017-03-21 16:37