Recently I came across a problem where virt-viewer a program which provides a viewer for virtual machines would suddenly crash.
I was able to reproduce this a couple of times so I looked into it trying to research the root cause problem.
In the terminal I noticed the below:
Gdk-Message: 07:27:13.932: Error flushing display: Resource temporarily unavailable
On further research I noticed that other apps also had the error. It appears that Wayland causes this crash.
Heres a workaround:
run the app in terminal with:
env GDK_BACKEND=x11