0 votes

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.

in Engine by (31 points)
edited by

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.

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 ...

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)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.