chrisidefix / cgal-bindings

Automatically exported from code.google.com/p/cgal-bindings
Boost Software License 1.0
0 stars 0 forks source link

Error in "Virtual Memory Allocation" #43

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I follow the steps, including switch the git version to e77c16bd5a65.
2.When I am running > make -j 4, it stops at Mesh_3, and report the error: 
cannot allocate memory.

What is the expected output? What do you see instead?
The expected output is the successful compiling. But My compiling stops at 
Mesh_3

What version of the product are you using? On what operating system?
CGAL version: 3.9
SWIG version: 2.0.4
cmake version: 2.8.7
Java version: 1.6.0-30
Ubuntu version: 12.04

Please provide any additional information below.

Original issue reported on code.google.com by kate.yan...@gmail.com on 18 Mar 2014 at 6:53

GoogleCodeExporter commented 9 years ago
Looks like you're running out of memory. How much memory do you have? Did you 
try without the parallel build?

Original comment by sloriot...@gmail.com on 24 Mar 2014 at 7:07

GoogleCodeExporter commented 9 years ago
I guess it was not the memory problem. Because my memory is 4GB, but the 
compiling procedure used less than 2G, and then it stopped.

Finally I removed the Mesh_3 from compiling, and then it's ok. 

Maybe there are any problems in Mesh_3?

Sorry, I don't know how to build parallel...

Original comment by kate.yan...@gmail.com on 24 Mar 2014 at 7:32

GoogleCodeExporter commented 9 years ago
remove -j 4

Original comment by sloriot...@gmail.com on 24 Mar 2014 at 7:47

GoogleCodeExporter commented 9 years ago
still not working. There are logs.

> make
...
[ 81%] Built target CGAL_AABB_tree
[ 83%] Built target CGAL_Surface_mesher_cpp
[ 87%] Built target CGAL_Surface_mesher
Scanning dependencies of target CGAL_Mesh_3_cpp
[ 88%] Building CXX object 
SWIG_CGAL/Mesh_3/CMakeFiles/CGAL_Mesh_3_cpp.dir/Object.cpp.o
Linking CXX shared library ../../lib/libCGAL_Mesh_3_cpp.so
[ 88%] Built target CGAL_Mesh_3_cpp
[ 90%] Swig source
Scanning dependencies of target CGAL_Mesh_3
[ 92%] Building CXX object 
SWIG_CGAL/Mesh_3/CMakeFiles/CGAL_Mesh_3.dir/CGAL_Mesh_3JAVA_wrap.cxx.o
virtual memory exhausted: Cannot allocate memory
make[2]: *** 
[SWIG_CGAL/Mesh_3/CMakeFiles/CGAL_Mesh_3.dir/CGAL_Mesh_3JAVA_wrap.cxx.o] Error 1
make[1]: *** [SWIG_CGAL/Mesh_3/CMakeFiles/CGAL_Mesh_3.dir/all] Error 2
make: *** [all] Error 2

Original comment by kate.yan...@gmail.com on 24 Mar 2014 at 7:58

GoogleCodeExporter commented 9 years ago
What is the output of ulimit -a?

Original comment by sloriot...@gmail.com on 24 Mar 2014 at 8:15

GoogleCodeExporter commented 9 years ago
The output is below. At beginning, I thought it may be the virtual memory 
problem. So I had already set virtual memory to unlimited. But it doesn't work.
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 30541
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 30541
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

Original comment by kate.yan...@gmail.com on 24 Mar 2014 at 8:18