This is the place that causes the issue. Using writer.printMatrixSize(new MatrixSize)) assumes a coordinate matrix if a MatrixInfo isn't provided