Error: reshape: SIZE must be non-negative

Dear Prof. Pfeifer,

I encountered following error while estimating a model;

error: reshape: SIZE must be non-negative
error: called from
McMCDiagnostics at line 94 column 11
dynare_estimation_1 at line 490 column 20
dynare_estimation at line 118 column 5

What is causing this error?

Without the codes it is impossible to tell.