The resluts include NaN

Why did my program output NaN, while it is still running? Is there anything wrong for this results that seem to be abnormal?

We have no idea what program you ran, nor the solver and CVX output.