Error in cvx_end ?!

Your first post is confusing because you show the beginning of Mosek output. But if the error was in cvx_end, I don’t believe you would have seen any Mosek output.

Please show your entire program.

What is the output of cvx_version ? Do NOT use CVX 3.0beta, which is riddled with bugs.

Have you tried using a new MATLAB session in case your previous session was corrupted? Perhaps reinstalling CVX? If so, use CVX 2.2.2. Announcement: CVX 2.2.2, the first "full" open-source release