kiwi icon indicating copy to clipboard operation
kiwi copied to clipboard

in the node environment The execution of decodeMessage leads to a memory overflow

Open yi-xiaobai opened this issue 9 months ago • 2 comments

node versions:18+

Scene:

  1. in node environment
  2. When reading large files, call decodeMessage for reproduction

how should i solve it?

yi-xiaobai avatar May 23 '25 04:05 yi-xiaobai

How to solve it depends on a lot of things having to do with your situation. You could try allowing more memory to be used: https://nodejs.org/en/learn/diagnostics/memory/understanding-and-tuning-memory#--max-old-space-size

evanw avatar May 23 '25 14:05 evanw

I did do it this way, but is there a file size limit during parsing? Now it seems that files over 500M are sent, causing this problem

yi-xiaobai avatar May 26 '25 01:05 yi-xiaobai