KDE freezes on a java exception

I have a java application that at some point throws an exception, I already found the error and I’m correcting it, but I noticed that my application freezes and I can’t kill the process using KDE (touchscreen device), I was using GNOME and when I had some exception, I kept clicking on the screen and a screen appeared to close the program, in KDE it also appears, but only when I do it from the keyboard, and the close option simply does not close the application

Oh, and about the windows manager, it’s X11, it has to be X11 on this case