MATLAB: Matlab parallel processing failure

2019aparallel computing

Hi,
I am running matlab 2019a on Win10, i am trying to start parallel processing toolbox and i get the following message
NaN/Inf breakpoint hit for CJSCluster.m on line 622.
line622– factoryNumWorkers = Inf;
I understand that the number of workers is not determined but i thought this should be automatically assigned when you change the parallel pool properties (number of worker is set to be 12 in my computer)
thanks in advance
Untitled.png

Best Answer

Quit debugging, turn off the Error Breakpoint "Pause on NaN or Inf", and rerun your code that starts the parallel pool.
Internally the functions that start the pool may use inf or nan as placeholders, but those should not be the final value for the size of the pool.