pritasam / ceres-solver

Automatically exported from code.google.com/p/ceres-solver
Other
0 stars 0 forks source link

failed to test on ubuntu 12.04 #43

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The system_test fails on ceres-solver 1.2.0
It doesn't occur on 1.1.1

Operating system: Ubuntu 12.04 (32bit, 64bit)
glog: 3.2.0
gflags: 2.0

The following is the output of the test suite.
====

Running tests...
/usr/bin/ctest --force-new-ctest-process -j1
Test project /build/buildd/ceres-solver-1.2.0/obj-x86_64-linux-gnu
      Start  1: array_utils_test
 1/42 Test  #1: array_utils_test ..........................   Passed    0.06 sec
      Start  2: autodiff_test
 2/42 Test  #2: autodiff_test .............................   Passed    0.05 sec
      Start  3: autodiff_cost_function_test
 3/42 Test  #3: autodiff_cost_function_test ...............   Passed    0.04 sec
      Start  4: block_random_access_dense_matrix_test
 4/42 Test  #4: block_random_access_dense_matrix_test .....   Passed    0.08 sec
      Start  5: block_random_access_sparse_matrix_test
 5/42 Test  #5: block_random_access_sparse_matrix_test ....   Passed    0.09 sec
      Start  6: block_sparse_matrix_test
 6/42 Test  #6: block_sparse_matrix_test ..................   Passed    0.07 sec
      Start  7: canonical_views_clustering_test
 7/42 Test  #7: canonical_views_clustering_test ...........   Passed    0.05 sec
      Start  8: compressed_row_sparse_matrix_test
 8/42 Test  #8: compressed_row_sparse_matrix_test .........   Passed    0.07 sec
      Start  9: conditioned_cost_function_test
 9/42 Test  #9: conditioned_cost_function_test ............   Passed    0.06 sec
      Start 10: corrector_test
10/42 Test #10: corrector_test ............................   Passed    0.20 sec
      Start 11: dense_sparse_matrix_test
11/42 Test #11: dense_sparse_matrix_test ..................   Passed    2.24 sec
      Start 12: evaluator_test
12/42 Test #12: evaluator_test ............................   Passed    0.11 sec
      Start 13: gradient_checking_cost_function_test
13/42 Test #13: gradient_checking_cost_function_test ......   Passed    0.09 sec
      Start 14: graph_test
14/42 Test #14: graph_test ................................   Passed    0.06 sec
      Start 15: graph_algorithms_test
15/42 Test #15: graph_algorithms_test .....................   Passed    0.06 sec
      Start 16: implicit_schur_complement_test
16/42 Test #16: implicit_schur_complement_test ............   Passed    0.14 sec
      Start 17: iterative_schur_complement_solver_test
17/42 Test #17: iterative_schur_complement_solver_test ....   Passed    0.22 sec
      Start 18: jet_test
18/42 Test #18: jet_test ..................................   Passed    0.06 sec
      Start 19: levenberg_marquardt_strategy_test
19/42 Test #19: levenberg_marquardt_strategy_test .........   Passed    0.09 sec
      Start 20: local_parameterization_test
20/42 Test #20: local_parameterization_test ...............   Passed    0.14 sec
      Start 21: loss_function_test
21/42 Test #21: loss_function_test ........................   Passed    0.04 sec
      Start 22: normal_prior_test
22/42 Test #22: normal_prior_test .........................   Passed    0.05 sec
      Start 23: numeric_diff_cost_function_test
23/42 Test #23: numeric_diff_cost_function_test ...........   Passed    0.07 sec
      Start 24: parameter_block_test
24/42 Test #24: parameter_block_test ......................   Passed    0.10 sec
      Start 25: partitioned_matrix_view_test
25/42 Test #25: partitioned_matrix_view_test ..............   Passed    0.07 sec
      Start 26: problem_test
26/42 Test #26: problem_test ..............................   Passed    0.17 sec
      Start 27: residual_block_test
27/42 Test #27: residual_block_test .......................   Passed    0.07 sec
      Start 28: residual_block_utils_test
28/42 Test #28: residual_block_utils_test .................   Passed    0.04 sec
      Start 29: rotation_test
29/42 Test #29: rotation_test .............................   Passed    0.71 sec
      Start 30: runtime_numeric_diff_cost_function_test
30/42 Test #30: runtime_numeric_diff_cost_function_test ...   Passed    0.27 sec
      Start 31: schur_complement_solver_test
31/42 Test #31: schur_complement_solver_test ..............   Passed    0.16 sec
      Start 32: schur_eliminator_test
32/42 Test #32: schur_eliminator_test .....................   Passed   79.75 sec
      Start 33: schur_ordering_test
33/42 Test #33: schur_ordering_test .......................   Passed    0.05 sec
      Start 34: solver_impl_test
34/42 Test #34: solver_impl_test ..........................   Passed    0.21 sec
      Start 35: suitesparse_test
35/42 Test #35: suitesparse_test ..........................   Passed    0.07 sec
      Start 36: symmetric_linear_solver_test
36/42 Test #36: symmetric_linear_solver_test ..............   Passed    0.15 sec
      Start 37: triplet_sparse_matrix_test
37/42 Test #37: triplet_sparse_matrix_test ................   Passed    0.05 sec
      Start 38: trust_region_minimizer_test
38/42 Test #38: trust_region_minimizer_test ...............   Passed    0.01 sec
      Start 39: unsymmetric_linear_solver_test
39/42 Test #39: unsymmetric_linear_solver_test ............   Passed    0.03 sec
      Start 40: visibility_test
40/42 Test #40: visibility_test ...........................   Passed    0.01 sec
      Start 41: visibility_based_preconditioner_test
41/42 Test #41: visibility_based_preconditioner_test ......   Passed    0.20 sec
      Start 42: system_test
42/42 Test #42: system_test ...............................***Exception: 
Other321.06 sec
[==========] Running 2 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 2 tests from SystemTest
[ RUN      ] SystemTest.PowellsFunction
[       OK ] SystemTest.PowellsFunction (3 ms)
[ RUN      ] SystemTest.BundleAdjustmentProblem
CHOLMOD warning: matrix not positive definite
CHOLMOD warning: matrix not positive definite
CHOLMOD warning: matrix not positive definite
CHOLMOD warning: matrix not positive definite
CHOLMOD warning: matrix not positive definite
CHOLMOD warning: matrix not positive definite
CHOLMOD warning: matrix not positive definite
CHOLMOD warning: matrix not positive definite
CHOLMOD warning: matrix not positive definite
CHOLMOD warning: matrix not positive definite
CHOLMOD warning: matrix not positive definite
CHOLMOD warning: matrix not positive definite
CHOLMOD warning: matrix not positive definite
CHOLMOD warning: matrix not positive definite
CHOLMOD warning: matrix not positive definite
CHOLMOD warning: matrix not positive definite
CHOLMOD warning: matrix not positive definite
CHOLMOD warning: matrix not positive definite
CHOLMOD warning: matrix not positive definite
CHOLMOD warning: matrix not positive definite
CHOLMOD warning: matrix not positive definite
CHOLMOD warning: matrix not positive definite
CHOLMOD warning: matrix not positive definite
CHOLMOD warning: matrix not positive definite

98% tests passed, 1 tests failed out of 42

Total Test time (real) = 408.66 sec

The following tests FAILED:
     42 - system_test (OTHER_FAULT)
Errors while running CTest
make[1]: *** [test] Error 8

Original issue reported on code.google.com by vbkaise...@gmail.com on 10 Jun 2012 at 2:57

GoogleCodeExporter commented 9 years ago
Hi Koichi,

I think this is a timeout issue and not a test failure. on my machine make test 
runs fine in about 181 seconds. My guess is that your machine is a bit slower 
and cmake is timing out.  The reason is that now that we have cxsparse support, 
the number of tests in system_test has increased further, making it an even 
more expensive test.

Could you run the system_test manually on your machine (assuming you built 
inside ceres-solver-1.2.0/build)

./internal/ceres/system_test -test_srcdir=../data

and see if you still get a test failure? 

Original comment by sameerag...@google.com on 10 Jun 2012 at 6:23

GoogleCodeExporter commented 9 years ago
Hi,

I ran system_test manually and it uses huge space of memory (about 3.5 GiB of 
3.7 GiB) and killed automatically.

I think it is critical problem for non high-end machine. Could you write it on 
tutorial   or provide another way to test it?

Original comment by vbkaise...@gmail.com on 10 Jun 2012 at 11:18

GoogleCodeExporter commented 9 years ago
Yes, the cxsparse tests are very expensive. I will add a note in the 
documentation. I will look to see if we can simplify the tests a bit and not go 
so combinatorial testing crazy.
Sameer

Original comment by sameerag...@google.com on 10 Jun 2012 at 5:18

GoogleCodeExporter commented 9 years ago
I have sent a patch to keir to review to disable these tests. This should be 
checked into the master branch later today. 

Original comment by sameerag...@google.com on 10 Jun 2012 at 7:28

GoogleCodeExporter commented 9 years ago
The changed has been pushed to master. Could you test and let me know if things 
are better now?

Original comment by sameerag...@google.com on 11 Jun 2012 at 3:46

GoogleCodeExporter commented 9 years ago
Hi,

It's better now. All of tests were passed.

Thanks.
2012/06/12 0:46 <ceres-solver@googlecode.com>:

Original comment by vbkaise...@gmail.com on 12 Jun 2012 at 3:49

GoogleCodeExporter commented 9 years ago
Thanks for reporting. I mark this as closed. There should be a 1.2.1 soonish 
with this change.
Sameer

Original comment by sameerag...@google.com on 12 Jun 2012 at 2:46

GoogleCodeExporter commented 9 years ago

Original comment by sameerag...@google.com on 12 Jun 2012 at 2:47