Folks:

In our first attempt at a complete run of recon-all, we hit this odd failure: 
recon-all stopped after the mri_remove_neck stage, claiming that:

1. mri_remove_neck couldn't mghWrite to nu_noneck.mgz

2. But then appeared to perform the neck removal anyway and write the output

3. But then the subsequent step: mri_em_register failed saying that it can't 
read nu_noneck.mgz

... and sure enough, there is no such file there.

The recon-all.log for these steps is copied below.

This doesn't appear to be a permissions problem, as the script happily wrote 
other files to the same mri directory.

I do wonder whether mri_remove_neck was actually using the correct directory 
(we are not using the default SUBJECTS_DIR), but the logic for that is in an 
executable that I don't think we have source for?

But the primary troubleshooting question is why the mghWrite failed, but 
processing continued anyway, with the subsequent "writing output" message 
suggesting success of this step (but no file to show for it).

Clues?

Thanks,

Graham

===============
#--------------------------------------
New invocation of recon-all 


Sun May 28 12:44:36 PDT 2006
/data/Structural/FreeSurferData/Testing20060528/subjects/40588a
/brain-bin/fs_20060528/centos4/freesurfer/bin//recon-all
-s 40588a -autorecon2
subjid 40588a
setenv SUBJECTS_DIR /data/Structural/FreeSurferData/Testing20060528/subjects
FREESURFER_HOME /brain-bin/fs_20060528/centos4/freesurfer
Actual FREESURFER_HOME /brain-bin/fs_20060528/centos4/freesurfer
Linux gwlinux.ucsd.edu 2.6.11-1.1369_FC4 #1 Thu Jun 2 22:55:56 EDT 2005 i686 
i686 i386 GNU/Linux
cputime      unlimited
filesize     unlimited
datasize     unlimited
stacksize    10240 kbytes
coredumpsize 0 kbytes
memoryuse    unlimited
vmemoryuse   unlimited
descriptors  1024 
memorylocked 32 kbytes
maxproc      8180 
########################################
program versions used
$Id: recon-all,v 1.17.2.4 2006/05/02 18:28:49 nicks Exp $
$Id: mri_motion_correct.fsl,v 1.4 2006/01/01 21:56:44 greve Exp $
mri_convert -all-info 
ProgramName: mri_convert ProgramArguments: -all-info ProgramVersion: $Name: 
stable3 $ TimeStamp: 06/05/28-19:44:36-GMT CVS: $Id: mri_convert.c,v 1.121 
2006/02/22 05:39:36 greve Exp $ User: graham Machine: gwlinux.ucsd.edu 
Platform: Linux PlatformVersion: 2.6.11-1.1369_FC4 CompilerName: GCC 
CompilerVersion: 30400
$Id: talairach,v 1.2 2005/12/12 23:04:35 greve Exp $
mri_convert --version 
stable3
# $Id: mritotal.in,v 1.12 2004/02/12 05:55:18 rotor Exp $
Program nu_correct, built from:
Package MNI N3, version 1.10, compiled by [EMAIL PROTECTED] (i686-pc-linux-gnu) 
on 2005-11-15 at 21:02:27
ProgramName: mri_normalize ProgramArguments: -all-info ProgramVersion: $Name: 
stable3 $ TimeStamp: 06/05/28-19:44:37-GMT CVS: $Id: mri_normalize.c,v 1.44.2.1 
2006/04/12 02:02:57 nicks Exp $ User: graham Machine: gwlinux.ucsd.edu 
Platform: Linux PlatformVersion: 2.6.11-1.1369_FC4 CompilerName: GCC 
CompilerVersion: 30400
ProgramName: mri_watershed ProgramArguments: -all-info ProgramVersion: $Name: 
stable3 $ TimeStamp: 06/05/28-19:44:37-GMT CVS: $Id: mri_watershed.cpp,v 1.48 
2006/02/27 16:57:57 segonne Exp $ User: graham Machine: gwlinux.ucsd.edu 
Platform: Linux PlatformVersion: 2.6.11-1.1369_FC4 CompilerName: GCC 
CompilerVersion: 30400
ProgramName: mri_segment ProgramArguments: -all-info ProgramVersion: $Name: 
stable3 $ TimeStamp: 06/05/28-19:44:37-GMT CVS: $Id: mri_segment.c,v 1.28.2.1 
2006/04/12 02:02:58 nicks Exp $ User: graham Machine: gwlinux.ucsd.edu 
Platform: Linux PlatformVersion: 2.6.11-1.1369_FC4 CompilerName: GCC 
CompilerVersion: 30400
ProgramName: mri_fill ProgramArguments: -all-info ProgramVersion: $Name: 
stable3 $ TimeStamp: 06/05/28-19:44:37-GMT CVS: $Id: mri_fill.c,v 1.101 
2006/02/22 23:05:06 nicks Exp $ User: graham Machine: gwlinux.ucsd.edu 
Platform: Linux PlatformVersion: 2.6.11-1.1369_FC4 CompilerName: GCC 
CompilerVersion: 30400
ProgramName: mri_tessellate ProgramArguments: -all-info ProgramVersion: $Name: 
stable3 $ TimeStamp: 06/05/28-19:44:37-GMT CVS: $Id: mri_tessellate.c,v 
1.27.2.1 2006/05/02 21:41:01 nicks Exp $ User: graham Machine: gwlinux.ucsd.edu 
Platform: Linux PlatformVersion: 2.6.11-1.1369_FC4 CompilerName: GCC 
CompilerVersion: 30400
ProgramName: mris_smooth ProgramArguments: -all-info ProgramVersion: $Name: 
stable3 $ TimeStamp: 06/05/28-19:44:37-GMT CVS: $Id: mris_smooth.c,v 1.13.2.1 
2006/05/02 21:41:01 nicks Exp $ User: graham Machine: gwlinux.ucsd.edu 
Platform: Linux PlatformVersion: 2.6.11-1.1369_FC4 CompilerName: GCC 
CompilerVersion: 30400
ProgramName: mris_inflate ProgramArguments: -all-info ProgramVersion: $Name: 
stable3 $ TimeStamp: 06/05/28-19:44:37-GMT CVS: $Id: mris_inflate.c,v 1.30.2.1 
2006/05/02 21:41:01 nicks Exp $ User: graham Machine: gwlinux.ucsd.edu 
Platform: Linux PlatformVersion: 2.6.11-1.1369_FC4 CompilerName: GCC 
CompilerVersion: 30400
ProgramName: mris_sphere ProgramArguments: -all-info ProgramVersion: $Name: 
stable3 $ TimeStamp: 06/05/28-19:44:37-GMT CVS: $Id: mris_sphere.c,v 1.38 
2006/02/08 00:17:40 nicks Exp $ User: graham Machine: gwlinux.ucsd.edu 
Platform: Linux PlatformVersion: 2.6.11-1.1369_FC4 CompilerName: GCC 
CompilerVersion: 30400
ProgramName: mris_fix_topology ProgramArguments: -all-info ProgramVersion: 
$Name: stable3 $ TimeStamp: 06/05/28-19:44:37-GMT CVS: $Id: 
mris_fix_topology.c,v 1.41 2006/02/06 19:41:59 nicks Exp $ User: graham 
Machine: gwlinux.ucsd.edu Platform: Linux PlatformVersion: 2.6.11-1.1369_FC4 
CompilerName: GCC CompilerVersion: 30400
ProgramName: mris_euler_number ProgramArguments: -all-info ProgramVersion: 
$Name: stable3 $ TimeStamp: 06/05/28-19:44:37-GMT CVS: $Id: 
mris_euler_number.c,v 1.4 2003/09/05 04:45:41 kteich Exp $ User: graham 
Machine: gwlinux.ucsd.edu Platform: Linux PlatformVersion: 2.6.11-1.1369_FC4 
CompilerName: GCC CompilerVersion: 30400
ProgramName: mris_make_surfaces ProgramArguments: -all-info ProgramVersion: 
$Name: stable3 $ TimeStamp: 06/05/28-19:44:37-GMT CVS: $Id: 
mris_make_surfaces.c,v 1.70.2.1 2006/04/12 02:02:59 nicks Exp $ User: graham 
Machine: gwlinux.ucsd.edu Platform: Linux PlatformVersion: 2.6.11-1.1369_FC4 
CompilerName: GCC CompilerVersion: 30400
ProgramName: mris_register ProgramArguments: -all-info ProgramVersion: $Name: 
stable3 $ TimeStamp: 06/05/28-19:44:37-GMT CVS: $Id: mris_register.c,v 1.32 
2005/12/07 14:22:57 fischl Exp $ User: graham Machine: gwlinux.ucsd.edu 
Platform: Linux PlatformVersion: 2.6.11-1.1369_FC4 CompilerName: GCC 
CompilerVersion: 30400
ProgramName: mrisp_paint ProgramArguments: -all-info ProgramVersion: $Name: 
stable3 $ TimeStamp: 06/05/28-19:44:37-GMT CVS: $Id: mrisp_paint.c,v 1.6 
2005/02/14 04:30:19 segonne Exp $ User: graham Machine: gwlinux.ucsd.edu 
Platform: Linux PlatformVersion: 2.6.11-1.1369_FC4 CompilerName: GCC 
CompilerVersion: 30400
ProgramName: mri_label2label ProgramArguments: -all-info ProgramVersion: $Name: 
stable3 $ TimeStamp: 06/05/28-19:44:37-GMT CVS: $Id: mri_label2label.c,v 1.23 
2006/02/19 17:55:08 greve Exp $ User: graham Machine: gwlinux.ucsd.edu 
Platform: Linux PlatformVersion: 2.6.11-1.1369_FC4 CompilerName: GCC 
CompilerVersion: 30400
ProgramName: mri_em_register ProgramArguments: -all-info ProgramVersion: $Name: 
stable3 $ TimeStamp: 06/05/28-19:44:37-GMT CVS: $Id: mri_em_register.c,v 1.52 
2006/01/11 21:01:40 greve Exp $ User: graham Machine: gwlinux.ucsd.edu 
Platform: Linux PlatformVersion: 2.6.11-1.1369_FC4 CompilerName: GCC 
CompilerVersion: 30400
ProgramName: mri_ca_normalize ProgramArguments: -all-info ProgramVersion: 
$Name: stable3 $ TimeStamp: 06/05/28-19:44:37-GMT CVS: $Id: 
mri_ca_normalize.c,v 1.31 2005/08/15 14:14:22 fischl Exp $ User: graham 
Machine: gwlinux.ucsd.edu Platform: Linux PlatformVersion: 2.6.11-1.1369_FC4 
CompilerName: GCC CompilerVersion: 30400
ProgramName: mri_ca_register ProgramArguments: -all-info ProgramVersion: $Name: 
stable3 $ TimeStamp: 06/05/28-19:44:37-GMT CVS: $Id: mri_ca_register.c,v 1.48 
2006/02/23 15:53:27 xhan Exp $ User: graham Machine: gwlinux.ucsd.edu Platform: 
Linux PlatformVersion: 2.6.11-1.1369_FC4 CompilerName: GCC CompilerVersion: 
30400
ProgramName: mri_ca_label ProgramArguments: -all-info ProgramVersion: $Name: 
stable3 $ TimeStamp: 06/05/28-19:44:37-GMT CVS: $Id: mri_ca_label.c,v 1.68 
2006/01/22 04:26:26 nicks Exp $ User: graham Machine: gwlinux.ucsd.edu 
Platform: Linux PlatformVersion: 2.6.11-1.1369_FC4 CompilerName: GCC 
CompilerVersion: 30400
#######################################

[...]

[EMAIL PROTECTED] Remove Neck Mon May 29 03:13:29 PDT 2006

 mri_remove_neck -radius 25 nu.mgz transforms/talairach.m3z 
/brain-bin/fs_20060528/centos4/freesurfer/average/RB_all_2006-02-15.gca 
nu_noneck.mgz 

erasing everything more than 25 mm from possible brain
reading atlas 
'/brain-bin/fs_20060528/centos4/freesurfer/average/RB_all_2006-02-15.gca'...
setting gca type = Normal gca type
reading input volume 'nu.mgz'...
reading transform 'transforms/talairach.m3z'...
mghWrite(nu_noneck.mgz, -1): could not open file
gcam->type = vox
reading labels out of gcam file...
removing structures at least 25 mm from brain...
11495184 nonbrain voxels erased
writing output to nu_noneck.mgz...
nonbrain removal took 9 minutes and 55 seconds.
#--------------------------------------
[EMAIL PROTECTED] SkullLTA Mon May 29 03:23:27 PDT 2006

 mri_em_register -skull -t transforms/talairach.lta nu_noneck.mgz 
/brain-bin/fs_20060528/centos4/freesurfer/average/RB_all_withskull_2006-02-15.gca
 transforms/talairach_with_skull.lta 

aligning to atlas containing skull, setting unknown_nbr_spacing = 5
using previously computed transform transforms/talairach.lta
reading 1 input volumes...
logging results to talairach_with_skull.log
reading 
'/brain-bin/fs_20060528/centos4/freesurfer/average/RB_all_withskull_2006-02-15.gca'...
setting gca type = Normal gca type
average std = 23.5   using min determinant for regularization = 55.2
0 singular and 6473 ill-conditioned covariance matrices regularized
reading 'nu_noneck.mgz'...
zcat: 
/data/Structural/FreeSurferData/Testing20060528/subjects/40588a/mri/nu_noneck.mgz.gz:
 No such file or directory
mghRead(/data/Structural/FreeSurferData/Testing20060528/subjects/40588a/mri/nu_noneck.mgz,
 -1): read error
mri_em_register: could not open input volume nu_noneck.mgz.

Linux gwlinux.ucsd.edu 2.6.11-1.1369_FC4 #1 Thu Jun 2 22:55:56 EDT 2005 i686 
i686 i386 GNU/Linux

recon-all exited with ERRORS at Mon May 29 03:23:35 PDT 2006
_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

Reply via email to