MATLAB: Do I get ‘Error using online_con​catenator/​concat’ after a worker aborted during execution of a PARFOR loop

Parallel Computing Toolbox

I am using a PARFOR loop to perform some computations in parallel. At some point, I receive the following warning:
Warning: A worker aborted during execution of the parfor loop. The parfor loop will now run again on the remaining workers.
> In parallel_function (line 599)
However, shortly after the PARFOR loop has been restarted, the execution errors out with one of the following errors:
 
Error using online_concatenator/concat (line 46)
Assertion failed.
Error using online_concatenator/concat (line 54)
Subscript indices must either be real positive integers or logicals.

Best Answer

This is a bug that has originated in R2013b and prevents the PARFOR loop to re-run successfully after a worker aborted. There are no workarounds.
Please contact Technical Support to get assistance with finding out why the worker aborted in the first place.