kripken / xml.js

Port of libxml to JavaScript using Emscripten
Other
174 stars 67 forks source link

IE - Error: Out of memory #19

Open suad2017 opened 7 years ago

suad2017 commented 7 years ago

IE - Error: Out of memory I have xml file, the file size is 2KB, and it is XSD valid When I run xmllint.validateXML with TOTAL_MEMORY = 1073741824 I get Out of memory This happen only in IE in Chrome it work fine

When I update the TOTAL_MEMORY to 2147483648 I get the error Invalid function argument

Can you advice?

Thanks, Suad

suad2017 commented 7 years ago

Hi @sterpe ,

Can you help whith this issue?

Thanks, Suad

suad2017 commented 7 years ago

Hi @jacobmischka ,

Can you help whith this issue?

Thanks, Suad

jacobmischka commented 7 years ago

Sorry, not sure. I ended up using regular xmllint on the desktop instead.

Leigh-M commented 2 years ago

I'm seeing the same issue: Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 16777216, (2) compile with ALLOW_MEMORY_GROWTH which adjusts the size at runtime but prevents some optimizations, or (3) set Module.TOTAL_MEMORY before the program runs

It's for a fairly large XML (12 MB) I assume it's either trying to validate the entire thing in one go and hitting a nodeJs memory limit (Ubuntu 21.10 Core i9 processor 32 GM RAM - not an OS RAM issue per se) perhaps an application issue just not handling larger files correctly, or a memory leak