I receive the following error when I try to run @DriveAfni:

Warning: Fatal Error:
_XmGetDefaultDisplay cannot be used prior to VendorS.Initialize, returns NULL

Fatal Signal 11 (SIGSEGV) received
Bottom of Debug Stack
** AFNI version = AFNI_17.2.17 Compile date = Sep 27 2017
** [[Precompiled binary macosx_10.7_local: Sep 27 2017]]
** Program Death **
** If you report this crash to the AFNI message board,
** please copy the error messages EXACTLY, and give
** the command line you used to run the program, and
** any other information needed to repeat the problem.
** You may later be asked to upload data to help debug.
** Crash log is appended to file /Users/Chelsea/.afni.crashlog

+++ Command Echo:
plugout_drive -npb 0 -pif DriveAfniDemo -com QUIT -quit

Thank you!

Hi Chelsea,

Are you able to run ‘suma’?

What OS and version are you running, and what does “afni -ver” show?

  • rick

It looks like you are running this on a Mac. See if you have DYLD_LIBRARY_PATH set in your .cshrc file even if you always use bash. The script is tcsh so it will use the environment variables set there. You can check that with


that will give the current setting in the shell you are in. To set the variable, use these instructions from the Mac install instructions.

touch ~/.cshrc
echo ‘setenv DYLD_LIBRARY_PATH /opt/X11/lib/flat_namespace’ >> ~/.cshrc

touch ~/.bashrc
echo ‘export DYLD_LIBRARY_PATH=/opt/X11/lib/flat_namespace’ >> ~/.bashrc