[vtkusers] Application crashes with large image data

Pierre Barbier de Reuille pbarbier at ucalgary.ca
Fri Oct 19 22:12:56 EDT 2007


Hi,

Windows (XP, Vista or previous) do not allow a single program to use
more than 2GB on a 32bit machine (3GB for the windows XP advanced
server). This is a problem I hit recently processing 512x512x512
images and helped me justify a switch to Linux which do not have this
problem. For windows, this problem is due to the fact that the first
bit decides if the memory is user or system. So that leaves only 2GB
for user space memory (on advanced server, the two first bits decides
... leaving 3GB to user). Only solution: use images with less bit per
pixel, or process by block !

Pierre


On 10/19/07, Meisam Aliroteh < meisam.aliroteh at gmail.com> wrote:
>
> Hi Marcelo,
>
> Based on your email I assumed that you are running on Windows OS. Eventhough you have 2Gb of RAM not all of it is considered as free memory (I think Windows XP consumes around 500Mb). If you have Windows XP or Vista, the default value of Virtual memory is around  1.5Gb. I don't know if this is going to help or not but you might want to give it a shot:
>
> 1) Go to Control Panel and double-click on SYSTEM icon to get the "System Properties" window
> 2) Click on ADVANCED tab and under "Performance" click the "Settings" button to get the "Performance Options" dialog
> 3) Again click on ADVANCED tab and under "Virtual Memory" click the "Change" button.
> 4) Select the drive on which Windows is installed (usually C:)
> 5) Pick "Custom Size" and put 4092 for the initial and maximum values
> 6) press the SET button and then press the ok button (press the ok button on all remaining windows)
> 7) reboot your system
>
> You should now have 4Gb of VIRTUAL memory which MIGHT help with this issue.
>
> good luck and if you figure out another fix for this, please post your fix for others to know as well.
>
>
>
>
> On 10/19/07, Marcelo Amati < marcelo.amati at hotmail.com> wrote:
> >
> >
> > Hello,
> >
> > I hope someone can help me because I don`t know what to do anymore.
> >
> > My application can`t process an imagedata of size 512x512x550. It doesn`t consume more than 1.4 GB og RAM while processing.
> >    If I run the same pipeline with an imagedata of size 512x512x300 it works perfectly!
> >
> > The pipeline is very simple: vtkImageReader -> vtkImageFlip -> Crash!
> >
> > I`m using VTK 5.03, Python Wrapping compiled in VS7 and windows XP. The machine: AMD 2Ghz processor, 2GB of RAM and ATI Radeon of 128 MB.
> >
> > Do you have any ideas about how to solve this problem???
> >
> > Thanks,
> > Marcelo
> >
> >  ________________________________
 Get news, entertainment and everything you care about at Live.com.
Check it out!
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at:    http://www.vtk.org/Wiki/VTK_FAQ
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:   http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>


-- 
Barbier de Reuille Pierre



More information about the vtkusers mailing list