dyne / restroom-mw

🛠 Easy REST API builder executing Zencode
https://restroom.dyne.org
GNU Affero General Public License v3.0
3 stars 11 forks source link

Possible memory leak in restroom-mw or zenroom(NPM) #29

Closed andrea-dintino closed 3 years ago

andrea-dintino commented 3 years ago

At some point, apiroom/restroom crashes, this is what happens behind the scene

0|apiroom  | GET /api/dyneorg/-generate-random-array 500 677.413 ms - 652
0|apiroom  | RangeError: WebAssembly.Memory(): could not allocate memory
0|apiroom  |     at Object.default (/home/apiroom/public_html/node_modules/zenroom/dist/main/zenroom.js:1347:18)
0|apiroom  |     at Object.exports.zencode_exec (/home/apiroom/public_html/node_modules/zenroom/dist/main/index.js:9:46)
0|apiroom  |     at /home/apiroom/public_html/node_modules/@restroom-mw/core/dist/index.js:66:19
0|apiroom  |     at Generator.next (<anonymous>)
0|apiroom  |     at fulfilled (/home/apiroom/public_html/node_modules/@restroom-mw/core/dist/index.js:5:58)
0|apiroom  |     at processTicksAndRejections (internal/process/task_queues.js:93:5)