This code causes Mathematica to slowly accumulate memory until it hard crashes my operating system. It does this by overwriting OS memory (windows start going black, graphics drivers start crashing etc.)
```
Table[RandomImage[1, {1000, 100}, ColorSpace -> "RGB"] // TextRecognize // StringLength, 5000] // Total
```
I've done enough testing to be pretty confident the issue with this line is with `TextRecognize`. My "real" application makes a *lot* of `TextRecognize` calls while monitoring computer screens and it always crashes after about an hour of running. I'd like it to run for at least 24 hours reliably.
I'm running 64 bit Windows 10 with 16GB of RAM.
I have a machine with 128GB of RAM same problem.
Is there a way to force Mathematica to keep the memory usage in check?
UPDATES:
Yes this is *stupid* code. No one actually recognizes text in random data. But, this allows anyone to reproduce the issue I'm seeing without passing around images. Copy paste this into your Mathematica install. Do you see the memory usage grow, so that after half an hour or so you've consumed 32GB of RAM? That's what I'm seeing.