Can't build project (SOLVED)

I was trying to build my project and I get this error on MacOS:

PANIC: unprotected error in call to Lua API (not enough memory)

I also try it in Windows and I don’t get any error but I can’t build it too.

Are you using any libs? Is your project huge >2GB?

I am using luasocket and http and my project size is about 7MB

I would bet it has something to do with the use of either of those in some way.
Can you try to make a small reproducible example?

So, no additional libraries? Can you share your project (bjorn.ritzl@king.com)?

In e-mail?

If you’re using Defold for project hosting you can add his e-mail to your project’s team

2 Likes

Ok, the project is shared.

You have a huuuuuuge loop on line #77 of data.lua. That loop will eat all of your memory and then some.

2 Likes

Ok, I made the loop a little bit small and then the game can be builded, thanks. :smiley:

2 Likes