prometheus-lua / Prometheus

Lua Obfuscator written in pure Lua
https://levno-710.gitbook.io/prometheus/
GNU Affero General Public License v3.0
205 stars 61 forks source link

[BUG] ENOBUFS #73

Closed artificialai223 closed 1 year ago

artificialai223 commented 1 year ago

Getting an ENOBUFS error with a 5,000 line lua script. LuaU, Medium.

levno-710 commented 1 year ago

How much ram do you have?

ENOBUFS means there is no sufficient memory available and the system(kernel) can not allocate any more.

artificialai223 commented 1 year ago

I have 128GB of ram, I am using the API option and i believe the issue is the print()

levno-710 commented 1 year ago

What print do you mean?

artificialai223 commented 1 year ago

https://levno-710.gitbook.io/prometheus/advanced/using-prometheus-in-your-lua-application

The print that has :apply() inside of it

levno-710 commented 1 year ago

I think this may be, because the Ast of your file is too big for lua. Luajit for example can by default only handle 2GB of ram.

levno-710 commented 1 year ago

It could also be the case, that the obfuscated code is too large to be printed. You could try to write the code to a file in multiple steps.