In the same function, why some print functions can run, and some can't?

In Taichi func, the line 83 could print info I need, but the print func in line 93, 116,1117, 128 could run. why?

Hi @Aspen, could you share the minimal code that reproduces this?