How to use CVX in wireless communication,especially in long and complex expressions?

Perhaps you can help people help you by telling us exactly where your difficulty is. Before you do so, please make sure you have proven that each times CVX is called, it is being presented a convex optimization problem, as discussed in Why isn't CVX accepting my model? READ THIS FIRST! .

You seem to be calling CVX in a while loop. But from the code you show (perhaps this is not all of your code), it is not apparent to me how the problem inputs change across while loop iterations. if you are doing some form of SCA, which is not apparent from your code, that can have its own issues, including not converging to anything, possibly with solutions and inputs becoming wilder and wilder until the solver fails for some reason, or converging to something which is not even a local optimum of the optimal problem, let alone a global optimum.