[vtkusers] vtk5 dies with java.lang.OutOfMemoryError on amd64

Sebastiaan sebastia at ch.its.tudelft.nl
Sat Mar 18 06:56:02 EST 2006


Hi,

On Mon, 6 Mar 2006, Sebastiaan wrote:

> Hi,
>
> I am trying to build vtk-5.0.0 on a AMD64 system, but the build dies with an 
> error:
>
> (...)
> Listing /var/tmp/portage/vtk-5.0.0-r4/work/VTK/Wrapping/Python/vtk/wx ...
> Compiling 
> /var/tmp/portage/vtk-5.0.0-r4/work/VTK/Wrapping/Python/vtk/wx/__init__.py ...
> Compiling 
> /var/tmp/portage/vtk-5.0.0-r4/work/VTK/Wrapping/Python/vtk/wx/wxVTKRenderWindow.py 
> ...
> Compiling 
> /var/tmp/portage/vtk-5.0.0-r4/work/VTK/Wrapping/Python/vtk/wx/wxVTKRenderWindowInteractor.py 
> ...
> ...
> Generating ../../java/vtk/vtkBuildAllDriver.class
>
>
> The system is out of resources.
> Consult the following stack trace for details.
> java.lang.OutOfMemoryError
> make[2]: *** [java/vtk/vtkBuildAllDriver.class] Error 3
> make[1]: *** [Wrapping/Java/CMakeFiles/VTKBuildAll.dir/all] Error 2
> make: *** [all] Error 2
>
>
> The Java engine installed is blackdown 1.4.2.03. I have no problems building 
> this on a similar x86 system (Gentoo Linux).
>
> After this error, running 'make' again resumes the build and compiles VTK 
> correctly.
>
> The latest CVS version still has this problem. I am unsure if this is an 
> error in Blackdown java on amd64 or VTK.
>
> Any ideas?
>
People in gentoo-java at gentoo.org found the solution for this problem.
Adding -J-Xmx256m to the javac works for me:

So, in VTK/Wrapping/Java/CMakeFiles/VTKBuildAll.dir/build.make:
cd /var/tmp/portage/vtk-5.0.0-r5/work/VTK/Wrapping/Java && 
/opt/blackdown-jdk-1.4.2.03/bin/javac  -J-Xmx256m  -classpath 
/var/tmp/portage/vtk-5.0.0-
r5/work/VTK/java/vtk/.. -d 
/var/tmp/portage/vtk-5.0.0-r5/work/VTK/java/vtk/.. 
/var/tmp/portage/vtk-5.0.0-r5/work/VTK/java/vtk/vtkBuildAllDriver.java


Greetz,
Sebastiaan


--

English written by Dutch people is easily recognized by the improper use of 'In principle ...'

The software box said 'Requires Windows 95 or better', so I installed Linux.

Als Pacman in de jaren '80 de kinderen zo had beïnvloed zouden nu veel jongeren rondrennen 
in donkere zalen terwijl ze pillen eten en luisteren naar monotone electronische muziek. 
(Kristian Wilson, Nintendo, 1989)
-------------- next part --------------
_______________________________________________

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



More information about the vtkusers mailing list