Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

0
0
Hi again,

Thanks for sharing your sample!

In our tests, your application crashes even when the iteration count is set to 1. The script attempts to create an array of 1,000 strings, each of length 1,000,000 characters. With default settings, V8 simply can't do this in a 32-bit process; it runs out of memory and kills the process. It might be possible to use resource constraints to expand V8's limits, but no amount of tweaking is likely to make this particular script work.

A 64-bit process is able to complete this script, ending up with a working set of around 1.3 GB.

Cheers!

Viewing all articles
Browse latest Browse all 2297