help > Volume Mapping Errors
Showing 1-6 of 6 posts
Display:
Results per page:
May 30, 2018  09:05 PM | Delin Sun - Duke-UNC Brain Imaging and Analysis Center
Volume Mapping Errors
Dear Prof. Xia,

I am trying to display volume from a .nii file using the most updated BrainNet Viewer (20171031 version) on a Matlab R2018a platform running on MacOS Sierra. I met the below error messages. I do not know what problem it is and I am looking forward to your feedback. Great thanks!

Bests,
Delin Sun
Duke University

----------------------
Invalid MEX-file '/Users/ds366/Documents/MATLAB/SDLToolBox/BrainNetViewer_20171031/BrainNet_spm8_files/BrainNet_spm_existfile.mexmaci64':
dlopen(/Users/ds366/Documents/MATLAB/SDLToolBox/BrainNetViewer_20171031/BrainNet_spm8_files/BrainNet_spm_existfile.mexmaci64, 6): Library
not loaded: @loader_path/libmex.dylib
Referenced from: /Users/ds366/Documents/MATLAB/SDLToolBox/BrainNetViewer_20171031/BrainNet_spm8_files/BrainNet_spm_existfile.mexmaci64
Reason: image not found.

Error in read_extras (line 21)
if BrainNet_spm_existfile(mname),
Error in nifti (line 28)
extras = read_extras(fname);
Error in spm_vol_nifti (line 19)
N = nifti(P);
Error in spm_vol>spm_vol_hdr (line 128)
V = spm_vol_nifti(p,n);
Error in spm_vol (line 61)
v = spm_vol_hdr(deblank(P(i,:)));
Error in BrainNet_LoadFiles>VF_load (line 450)
hdr=spm_vol(filename); %%% Edited by Mingrui Xia, 111026, integrated SPM NIFTI into BrainNet Viewer.
Error in BrainNet_LoadFiles>OK_button_Callback (line 196)
[surf.hdr,surf.vol]=VF_load(File.VF);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in BrainNet_LoadFiles (line 56)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)BrainNet_LoadFiles('OK_button_Callback',hObject,eventdata,guidata(hObject))
Error using uiwait (line 81)
Error while evaluating UIControl Callback.
Invalid MEX-file '/Users/ds366/Documents/MATLAB/SDLToolBox/BrainNetViewer_20171031/BrainNet_spm8_files/BrainNet_spm_existfile.mexmaci64':
dlopen(/Users/ds366/Documents/MATLAB/SDLToolBox/BrainNetViewer_20171031/BrainNet_spm8_files/BrainNet_spm_existfile.mexmaci64, 6): Library
not loaded: @loader_path/libmex.dylib
Referenced from: /Users/ds366/Documents/MATLAB/SDLToolBox/BrainNetViewer_20171031/BrainNet_spm8_files/BrainNet_spm_existfile.mexmaci64
Reason: image not found.
Error in read_extras (line 21)
if BrainNet_spm_existfile(mname),
Error in nifti (line 28)
extras = read_extras(fname);
Error in spm_vol_nifti (line 19)
N = nifti(P);
Error in spm_vol>spm_vol_hdr (line 128)
V = spm_vol_nifti(p,n);
Error in spm_vol (line 61)
v = spm_vol_hdr(deblank(P(i,:)));
Error in BrainNet_LoadFiles>VF_load (line 450)
hdr=spm_vol(filename); %%% Edited by Mingrui Xia, 111026, integrated SPM NIFTI into BrainNet Viewer.
Error in BrainNet_LoadFiles>OK_button_Callback (line 196)
[surf.hdr,surf.vol]=VF_load(File.VF);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in BrainNet_LoadFiles (line 56)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)BrainNet_LoadFiles('OK_button_Callback',hObject,eventdata,guidata(hObject))
Error using uiwait (line 81)
Error while evaluating UIControl Callback.
Jun 4, 2018  01:06 PM | Mingrui Xia
RE: Volume Mapping Errors
Dear Delin, 

It seems that the toolbox doesn't recognize your file while calling spm8 functions. Could your please check if your file is correct? 

Best,
Mingrui
Aug 3, 2018  09:08 PM | Xiangyu Long
RE: Volume Mapping Errors
Hi Prof. Xia,

I got the same error when I tried to load a nifti file in the BrainNet Viewer, ver.20171031. The OS is MacOS X Yosemite, Matlab ver 8.5.0.197613 (R2015a).

The nifti file can be opened by MRIcron, AFNI and FSL. 

Best,
Xiangyu
Aug 4, 2018  08:08 AM | Mingrui Xia
RE: Volume Mapping Errors
Dear Xiangyu, 

The loading of nifti file in BrainNet Viewer relies on calling the function spm_vol and spm_read_vols in spm8 or spm12. Please check if these two functions work correctly on your machine. 

Best,
Mingrui
Aug 10, 2018  08:08 PM | Xiangyu Long
RE: Volume Mapping Errors
Thanks for the reply! I "fixed" the issue by using Matlab 2014 instead of 2018.

Best,
Xiangyu
Sep 10, 2018  06:09 PM | avantika mathur - UNL
RE: Volume Mapping Errors
Hi
I am facing the same error while opening the file. What is the solution for the same? I am using MATLAB 2017 and latest version (v 1.61) of BrainNet.

Following is the error
Invalid MEX-file
'/Users/postdoc/Mtools/BrainNetViewer_20171031/BrainNet_spm8_files/BrainNet_spm_existfile.mexmaci64':
dlopen(/Users/postdoc/Mtools/BrainNetViewer_20171031/BrainNet_spm8_files/BrainNet_spm_existfile.mexmaci64,
6): Library not loaded: @loader_path/libmex.dylib
Referenced from:
/Users/postdoc/Mtools/BrainNetViewer_20171031/BrainNet_spm8_files/BrainNet_spm_existfile.mexmaci64
Reason: image not found.

Error in read_extras (line 21)
if BrainNet_spm_existfile(mname),
Error in nifti (line 28)
extras = read_extras(fname);
Error in spm_vol_nifti (line 19)
N = nifti(P);
Error in spm_vol>spm_vol_hdr (line 128)
V = spm_vol_nifti(p,n);
Error in spm_vol (line 61)
v = spm_vol_hdr(deblank(P(i,:)));
Error in BrainNet_LoadFiles>VF_load (line 450)
hdr=spm_vol(filename); %%% Edited by Mingrui Xia, 111026, integrated SPM NIFTI into BrainNet Viewer.
Error in BrainNet_LoadFiles>OK_button_Callback (line 196)
[surf.hdr,surf.vol]=VF_load(File.VF);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in BrainNet_LoadFiles (line 56)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)BrainNet_LoadFiles('OK_button_Callback',hObject,eventdata,guidata(hObject))
Error using uiwait (line 81)
Error while evaluating UIControl Callback.
Invalid MEX-file
'/Users/postdoc/Mtools/BrainNetViewer_20171031/BrainNet_spm8_files/BrainNet_spm_existfile.mexmaci64':
dlopen(/Users/postdoc/Mtools/BrainNetViewer_20171031/BrainNet_spm8_files/BrainNet_spm_existfile.mexmaci64,
6): Library not loaded: @loader_path/libmex.dylib
Referenced from:
/Users/postdoc/Mtools/BrainNetViewer_20171031/BrainNet_spm8_files/BrainNet_spm_existfile.mexmaci64
Reason: image not found.
Error in read_extras (line 21)
if BrainNet_spm_existfile(mname),
Error in nifti (line 28)
extras = read_extras(fname);
Error in spm_vol_nifti (line 19)
N = nifti(P);
Error in spm_vol>spm_vol_hdr (line 128)
V = spm_vol_nifti(p,n);
Error in spm_vol (line 61)
v = spm_vol_hdr(deblank(P(i,:)));
Error in BrainNet_LoadFiles>VF_load (line 450)
hdr=spm_vol(filename); %%% Edited by Mingrui Xia, 111026, integrated SPM NIFTI into BrainNet Viewer.
Error in BrainNet_LoadFiles>OK_button_Callback (line 196)
[surf.hdr,surf.vol]=VF_load(File.VF);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in BrainNet_LoadFiles (line 56)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)BrainNet_LoadFiles('OK_button_Callback',hObject,eventdata,guidata(hObject))
Error using uiwait (line 81)
Error while evaluating UIControl Callback.