Programs using qt failing to start in debian testing

For example Anki or kontact fail to start with the following error:

Gdk-Message: 14:26:27.203: python3: Fatal IO error 2 (No such file or directory) on X server :0.0.

Is happening in 2 different computers with different graphic cards and version of the driver

GeForce GTX 1060 6GB with driver 460.32.03
GeForce GT 710 with driver 450.80.02

Both run debian/testing

Ive debugged this with my distro and they came to the conclusion that the problem is in the nvidia driver which they cant not debug further :(

More details in: