Warning in <TCanvas::ResizePad>: gPad has at least one zero dimension

ROOT Version:6.26
I use the windows 11

 Hi.I have to treat the below problem(see photo)

I tried to run my programs in root and it show me the below error:
The previous times,i run the programs succeed.I don’t know where is my wrong.
I use C language.

How can i treat this?

It looks like your macro generates a Pad or a Canvas with the wrong parameters. We need to see your macro to understand what’s wrong.