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

Sebastiaan sebastia at ch.its.tudelft.nl
Mon Mar 20 08:44:13 EST 2006


Hi,

On Sat, 18 Mar 2006, Sebastiaan wrote:

> 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
>
>
Additional information: the problem occurs when using either Blackdown or 
Sun as java.

Greetz,
Sebastiaan
-------------- 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



-------------- 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