Yes picture is taken on Ubuntu, but I also tried on Debian, and I experienced same thing. Also note I am currently using popOS, facing same issue.
when a user logged out with nvidia attached seat the entire system forced to logged out. It might be bug in loginctl.