error running lines with parallel computing toolbox,

조회 수: 8(최근 30일)
qi zeng
qi zeng 2022년 6월 3일
댓글: qi zeng 2022년 6월 6일
I am adopting NODDI toolbox in the following link Microstructure Imaging Group | NODDI Matlab toolbox ( in R2019a
batch_fitting('NODDI_roi.mat', protocol, noddi, 'FittedParams.mat', 8);
This batch fitting run on a 8-core machine and require parallel computing toolbox. I checked license('test','Distrib_Computing_Toolbox') and it exists. However, I encoutered error message and wonder how to resolve it:
"{Error using ParforProgMon (line 118)
Java exception occurred:
at java.awt.Window.<init>(
at java.awt.Frame.<init>(
at javax.swing.JFrame.<init>(
at ParforProgressMonitor.createServer(
Error in batch_fitting (line 91)
ppm = ParforProgMon(['Fitting ' roifile, ' : '],


Edric Ellis
Edric Ellis 2022년 6월 6일
I suspect you're running MATLAB in a -nodisplay mode, and somwhere inside the code you're using, ParforProgMon is not equipped to handle that.
Somehow, you need to disable ParforProgMon in this case. Without seeing all the code you're using, the sort of thing you need to do is inject a call to usejava a bit like this:
if usejava('awt')
% Use ParforProgMon
% Don't use ParforProgMon
  댓글 수: 1
qi zeng
qi zeng 2022년 6월 6일
Yes, I did submit a lsf job with matlab -nodisplay -batch. Do you mean adding the beforementioned to the batch script I am submitting?

댓글을 달려면 로그인하십시오.


Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by