Illustrator Crashes When Running Script After Extended Period of Time
First time posting here,
I have an Illustrator script that I wrote in ExtendScript that runs for about 20 minutes before it crashes. It finds two existing images, superimposes them onto each other, modifies them, and saves the new image as a .svg and .eps file. After saving the files, it will close them to start on another image. When there are not a lot of images (less than 400-500 images) to create, the script will complete without any errors; however, the demands are usually around thousands of images.
When it crashes, it will do one of the following: close Illustrator without an error message, provide a blank error message, or provide an error 1200 message that says a document doesn't exist. If I close out of Illustrator and run the script again, it will resume from where it crashed, continue creating more images for another 20 minutes, and then crash again. While this works, I need something that can run for an extended period of time.
This is not a RAM issue; my computer has 16 GB of RAM and still has about 8 GBs left of memory while the script is running. Also, I've ran this script on multiple other setups, ranging from 8-32 GB of RAM with the same issue and same results. These computers have i7s and also have video cards ranging from 2.8-3.6 GHz core speeds. They all fail at around 20 minutes of running the script.
Any theories or potential solutions to this issue would be much appreciated!