Today I got a segmentation fault when running ShapeWorksRun on my CT image of 5 volumes. From the screen log, it seems the segfault happened at the "optimization step". Below I attached the log, the xml configuration file and the files that have been generated before the segfault happens.
I was monitoring the memory usage and found the allocated memory was within the limit of my physical memory.
Any insights on this issue? Or any flag to turn on to print more debug information?
weiliu@lando:/scratch/experiments/shapeworks> /scratch/packages/shapeworks.git/build/ShapeWorksRun/ShapeWorksRun lung.correspondence.xml
m_processing_mode = 3
m_number_of_particles = 256
m_optimization_iterations = 200
m_output_points_prefix = lung
m_output_transform_file = output_transform_file
m_domains_per_shape = 1
m_timepts_per_subject = 1
m_starting_regularization = 10
m_ending_regularization = 0.1
m_iterations_per_split = 200
m_relative_weighting = 1
m_norm_penalty_weighting = 0
m_initial_relative_weighting = 0.05
m_initial_norm_penalty_weighting = 0
m_adaptivity_strength = 0
m_attributes_per_domain = 0
m_checkpointing_interval = 20
m_transform_file =
m_prefix_transform_file =
m_procrustes_interval = 0
m_recompute_regularization_interval = 1
m_procrustes_scaling = 1
m_adaptivity_mode = 0
m_keep_checkpoints = 0
m_optimization_iterations_completed = 0
Procrustes scaling is on
Mean curvature magnitude = 0.0410644
Std deviation = 0.0386809
Mean curvature magnitude = 0.0483452
Std deviation = 0.0401311
Mean curvature magnitude = 0.0528453
Std deviation = 0.0415891
Mean curvature magnitude = 0.0442168
Std deviation = 0.0440822
Mean curvature magnitude = 0.039068
Std deviation = 0.0368917
------------------------------
*** Initialize Step
------------------------------
Particle count: 2
Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Writing lung.0.wpts with 2points
Writing lung.1.wpts with 2points
Writing lung.2.wpts with 2points
Writing lung.3.wpts with 2points
Writing lung.4.wpts with 2points
Particle count: 4
Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Writing lung.0.wpts with 4points
Writing lung.1.wpts with 4points
Writing lung.2.wpts with 4points
Writing lung.3.wpts with 4points
Writing lung.4.wpts with 4points
Particle count: 8
Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Writing lung.0.wpts with 8points
Writing lung.1.wpts with 8points
Writing lung.2.wpts with 8points
Writing lung.3.wpts with 8points
Writing lung.4.wpts with 8points
Particle count: 16
Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Writing lung.0.wpts with 16points
Writing lung.1.wpts with 16points
Writing lung.2.wpts with 16points
Writing lung.3.wpts with 16points
Writing lung.4.wpts with 16points
Particle count: 32
Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Writing lung.0.wpts with 32points
Writing lung.1.wpts with 32points
Writing lung.2.wpts with 32points
Writing lung.3.wpts with 32points
Writing lung.4.wpts with 32points
Particle count: 64
Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Writing lung.0.wpts with 64points
Writing lung.1.wpts with 64points
Writing lung.2.wpts with 64points
Writing lung.3.wpts with 64points
Writing lung.4.wpts with 64points
Particle count: 128
Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Writing lung.0.wpts with 128points
Writing lung.1.wpts with 128points
Writing lung.2.wpts with 128points
Writing lung.3.wpts with 128points
Writing lung.4.wpts with 128points
Particle count: 256
Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Performing global step
..........Writing lung.0.wpts with 256points
Writing lung.1.wpts with 256points
Writing lung.2.wpts with 256points
Writing lung.3.wpts with 256points
Writing lung.4.wpts with 256points
Writing lung.0.wpts with 256points
Writing lung.1.wpts with 256points
Writing lung.2.wpts with 256points
Writing lung.3.wpts with 256points
Writing lung.4.wpts with 256points
------------------------------
*** AddAdaptivity Step
------------------------------
------------------------------
*** Optimize Step
------------------------------
Optimizing correspondences.
Performing global step
BeforeIteration counter = 0
0: -1.95399e-12
1: 2233.63
2: 6109.69
3: 9130.2
4: 13024.7
ENERGY = 7.00618 MinimumVariance = 10
..........Performing global step
BeforeIteration counter = 0
0: 9.722e-12
1: 2632.27
2: 7232.2
3: 10060.2
4: 14207.3
ENERGY = 7.10904 MinimumVariance = 7.94328
..........Writing lung.0.wpts with 256points
Writing lung.1.wpts with 256points
Writing lung.2.wpts with 256points
Writing lung.3.wpts with 256points
Writing lung.4.wpts with 256points
Performing global step
BeforeIteration counter = 0
0: 1.0556e-11
1: 3094.51
2: 8472.64
3: 11077.3
4: 15777.5
ENERGY = 7.21294 MinimumVariance = 6.30957
..........Performing global step
BeforeIteration counter = 0
0: 2.98161e-12
1: 3625.51
2: 9820.69
3: 12145.6
4: 17588.4
ENERGY = 7.31406 MinimumVariance = 5.01187
..........Writing lung.0.wpts with 256points
Writing lung.1.wpts with 256points
Writing lung.2.wpts with 256points
Writing lung.3.wpts with 256points
Writing lung.4.wpts with 256points
Performing global step
BeforeIteration counter = 0
0: 1.29785e-11
1: 4217.28
2: 11188.9
3: 13313.2
4: 19565.2
ENERGY = 7.40989 MinimumVariance = 3.98107
..........Performing global step
BeforeIteration counter = 0
0: 1.87255e-11
1: 4865.53
2: 12485.8
3: 14779.8
4: 21615.6
ENERGY = 7.50115 MinimumVariance = 3.16228
.........Segmentation fault