View Single Post
  #1  
Old 10-07-2012, 01:01 PM
troypiggo's Avatar
troypiggo (Troy)
Bust Duster

troypiggo is offline
 
Join Date: Nov 2008
Location: Brisbane, Australia
Posts: 4,846
[PixInsight] Using BatchPreprocessing script on 32bit Win and having memory issues?

If you're having trouble on Win32 platform with memory and ImageIntegration (II), I believe the workaround is to reduce the Buffer Size from 16MB to, say, 1MB, and Stack Size from 1024MB to, say, 100MB. Can tweak the numbers, but these are a good starting point. This is pretty easy to do if you're manually using II, but if you're using the BPP script these variables are hard coded in the script.

The solution is to roll up your sleeves and manually edit the file. It's easy to do, it's just a plain text file. Using either Notepad or the inbuilt PI script editor, you want to edit the file BatchPreprocessing-engine.js. Around lines 1010 and 1011 you'll see this:

Code:
   var II = new ImageIntegration;

   II.inputHints             = this.inputHints();
   II.bufferSizeMB           = 16;                                     
   II.stackSizeMB            = 1024;
   II.images                 = frameSet.enableTargetFrames( 2 );
You just need to change the 16 to 1, and 1024 to 100, then save the file and close, and restart PI.

Code:
   var II = new ImageIntegration;

   II.inputHints             = this.inputHints();
   II.bufferSizeMB           = 1;                                            
   II.stackSizeMB            = 100;
   II.images                 = frameSet.enableTargetFrames( 2 );
Reply With Quote