• Godot Help
  • Can't run multiple instances of Godot on Linux

I recently switched to Linux Peppermint, and everything was working fine, until I tried to run multiple godot instances to test multiplayer functionality.

To my surprise, it won't run, as soon as I open a second instance of Godot, be it the editor, an exported build or whatever, the second instance just freezes, I can use my pc normally and even open multiple instances of other programs, but godot just stays there.

As soon as I close the first instance of Godot, the second one starts responding.

This happens with any Godot version.

Any ideas on how to fix it?

Sabudum changed the title to Can't run multiple instances of Godot on Linux .

Are both instances trying to act as servers? I was successfully able to run multiple instances on Linux of a Godot 3 project, but I had it set up so that before making any network connections you'd pick host, player 2, whatever and I'd make sure to pick something different on each instance. If you have multiple processes trying to listen on the same network port that could cause the sort of freeze you're describing.

It freezes even if I run two different projects without any network setup. Singleplayer games.

I have no problem opening 2 or 3 instances of exported games. I tried in Godot 3 and 4. Likely you have some sort of shared resource or are using a yield on something that is locked by the first instance.

I can't even just open the Editor, without any script or project, this happens with any version. And just with Godot, any other program will run multiple instances normally.

I tried deleting all Godot config files, and even running the Windows version via Wine, the problem persists.

Alright, just found a fix, turns out the problem lies in the nouveau nvidia driver, for some reason it blocks the execution of multiple OpenGL applications with some specific configuration, I don't know exactly why.

The solution was to completely remove the driver and install proprietary legacy nvidia drivers version 340.108 specifically, with a patch for newer linux kernels.

Thanks a lot for the help everyone!

Yeah, the noveau drivers are far from perfect, though given that they don't get much support from nvidia it's also not too surprising.

Can i post that one Linus Torvalds quote?