Hello,
I've got this error when trying to run a script with Brainstorm nogui
PROGRESS> Running process: Baseline normalization... [creating new file]
PROGRESS> Update results links: Updating results links...
Nativewindow X11 IOError: Display 0x7fa2e848d940 (localhost:16.0): Resource temporarily unavailable
Nativewindow X11 IOError: Display 0x7fa109699500 (localhost:16.0): Resource temporarily unavailable
Nativewindow X11 IOError: Display 0x7fa2e848d940 (localhost:16.0): Resource temporarily unavailable
Nativewindow X11 IOError: Display 0x7fa109699500 (localhost:16.0): Resource temporarily unavailable
Opening log file: /home/cnrl/java.log.26796
MATLAB: javainit.cpp:1386: void {anonymous}::mwJavaAbort(): Assertion Fatal Java Exception. See this file for details: /home/cnrl/hs_error_pid26796.log' failed. MATLAB: javainit.cpp:1386: void {anonymous}::mwJavaAbort(): Assertion Fatal Java Exception. See this file for details: /home/cnrl/hs_error_pid26796.log' failed.
Abort (core dumped)
I am still learning about Brainstorm and I don't know what that error may be. I am definitely sure that in my code I am not calling for any display that may need the gui, and it seems to be a very inconsistent error, as I may rerun the script again and it won't show up.
Could you please give me any advice on how to solve this? I provide below the line of code where this happened this time but, as said, it can happen pretty much anywhere in the code. The only consistency I can find is that it occurs when 'updating links' after any bst_process.
% Process: DC offset correction
sFiles = bst_process('CallProcess', 'process_baseline_norm', sFiles, [], ...
'baseline', epoch_baseline{w}, ...
'sensortypes', '', ...
'method', 'bl', ... % DC offset correction: x_std = x - μ
'overwrite', 1);
*Here is where the error happened
% Process: Detect bad trials: Peak-to-peak MEGGRAD(0-5000) MEGMAG(0-5000)
sFiles = bst_process('CallProcess', 'process_detectbad', sFiles, [], ...
'timewindow', [], ...
'meggrad', reject_MEG_grad, ...
'megmag', reject_MEG_mag, ...
'eeg', [0, 0], ...
'ieeg', [0, 0], ...
'eog', [0, 0], ...
'ecg', [0, 0], ...
'rejectmode', 2); % Reject the entire trial
Many thanks!
Fran