Troubleshooting

From CCN Wiki
Revision as of 14:16, 25 July 2017 by Chris (talk | contribs)
Jump to navigation Jump to search
Have you tried turning it on and off again?

Having computer problems? Here's a few things to try

  1. Can you replicate the problem?
    • If the problem comes and goes randomly, it's going to be amazingly more difficult to diagnose. Try and figure out the conditions under which the problem occurs and fails to occur. This will be a clue
  2. Are you using the most up-to-date versions of any scripts or functions?
    • You will find updated copies in the ubfs folder. Maybe you're experiencing a bug that has since been fixed.
    • Be in the habit of keeping your ~/bin and ~/Documents/MATLAB folders updated
  3. Typo?
    • Many of the commands you will type in will involve long file names and parameter sets. You're probably 99.9% certain you typed the command in correctly. Be 100% certain.
    • Especially when files are concerned, the program output often displays the name of the file it was told to work on. If you see a message along the lines of "cannot stat such-and-such" or 'file not found', look to see what file it was looking for, and what files exist.
    • Could be a typo in the file name; could be that the program was supposed to be run from a specific directory (this happens often)
  4. Missing variables?
    • For FREESURFER processing, half the time I forget to set SUBJECTS_DIR, causing the scripts to fail to find the subject whose folder is staring me right in the face.
    • Many of the MATLAB scripts have been poorly written (by yours truly) to require a fixed set of arguments in a fixed order. Missing or incorrectly-specified parameters to these programs are likely to cause errors.