This is something we have observed with modern GNOME desktop environments.
The child processes started by GNOME may be placed in the incorrect cgroup, outside the SLURM control group, resulting in resource management not working as expected. Sessions may even fail to start in some cases.