godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.85k stars 21.14k forks source link

Ubuntu - Can't run project after logging out and logging back in #88035

Open blubbers122 opened 9 months ago

blubbers122 commented 9 months ago

Tested versions

v4.2.stable.official [46dc27791]

System information

Godot v4.2.stable - Ubuntu 22.04.3 LTS 22.04 - X11 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 970 (nvidia; 535.154.05) - Intel(R) Core(TM) i9-10900K CPU @ 3.70GHz (20 Threads)

Issue description

Whenever I log out and back in while the editor is running, I can't run the project with the play button unless I restart the editor

Steps to reproduce

Minimal reproduction project (MRP)

an empty project

Calinou commented 9 months ago

If you're logging out and then back in, how are you keeping the same editor session? Logging out and back in implies closing all programs from your user session. Are you referring to switching users instead?

Also, can you try running Godot from a terminal then following the same steps? You should see something appear in terminal output when trying to run the project after logging back in.

blubbers122 commented 9 months ago

I would "Lock" and then sign in again to the same user to find I couldn't run the game.

I was actually able to get this issue to go away just now by switching to using the godot-4 snap version. Before I ran the Linux app I downloaded from the Godot website by just right clicking and clicking 'run as a program' on the desktop.

The issue also went away when I ran the linux version from the website from the terminal instead of the right-click method I was using.