godotengine / godot

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

Godot freezes on 2nd monitor not connected via docking station #58145

Open JakubDemocko opened 2 years ago

JakubDemocko commented 2 years ago

Godot version

3.4.2, in 4.0 issue not present

System information

Windows 10, 3 monitor setup, docking station

Issue description

I'm using 3 monitors - two connected via Display port into docking station and one via HDMI straight into laptop.

On those two everything works fine, but when moving whichever godot window onto the HDMI one, you cannot see any input reaction or anything moving.

Steps to reproduce

  1. Connect 1st monitor into docking station and 2nd straight into PC/laptop
  2. Open godot editor on 1st monitor
  3. ✔️ Buttons react upon hover, you can click them, you can drag things
  4. Drag godot editor window on 2nd monitor
  5. Buttons don't react upon hover, you can click them but you won't see anything happening, you can drag things but you won't see anything happening
  6. Drag godot editor window back to the 1st monitor
  7. Everything is working again
  8. You can see, that changes you've done on the 2nd monitor did apply - e. g. you dragged items.
  9. Change window size
  10. Move the window to the 2nd monitor and make it fullsize by bringing it to edge of screen.
  11. Window content doesn't resize
  12. Try the same on the 1st monitor
  13. ✔️ Content does resize

Same happens with running game - on 2nd monitor (straight into PC/laptop) you won't see player (or anything) moving, but after moving window back to the 1st one (docking station) you can see, that the player actually moved, you just didn't see it.

Minimal reproduction project

No response

Calinou commented 2 years ago

Related to https://github.com/godotengine/godot/issues/57859.

guilleatm commented 1 year ago

Similar issue in Ubuntu 18.04 and godot 4.1.1

In my case I have a closed laptop connected to two monitors, one via HDMI, the other via dock station. When I try to edit any project in the dock station connected monitor, the screen freezes.

If I unplug the monitors and try the same on my laptop screen, it works fine. With the laptop open the dock station screen works fine.

vladevelops commented 11 months ago

Encountering the Same Issue

Vulkan API 1.3.242 - Forward Mobile - Using Vulkan Device #2: NVIDIA GeForce RTX 3050 Ti Laptop GPU Victus by HP Laptop 16-d1xxx Ubuntu 22.04.3 LTS x86_64 CPU: 12th Gen Intel i7-12700H (20) @ 4.600GHz

I work with two different setups. On my workstation, there are no issues with two monitors. However, with the laptop and a secondary monitor, the system becomes unstable. The bug occurs when I press "run" for debugging. As the game starts, everything freezes, and often, the secondary monitor becomes unresponsive. To resolve this, I need to unplug and plug back in the HDMI cable.

Moreover, when I launch Godot from the terminal, I encounter the following errors:

libGL error: glx: failed to create dri3 screen libGL error: failed to load driver: nouveau

I resolved this issue by using the command:

DRI_PRIME=0 godot

However, I don't think it's supposed to be this way.

kyushu commented 2 months ago

Encountering the Same Issue

Vulkan API 1.3.242 - Forward Mobile - Using Vulkan Device #2: NVIDIA GeForce RTX 3050 Ti Laptop GPU Victus by HP Laptop 16-d1xxx Ubuntu 22.04.3 LTS x86_64 CPU: 12th Gen Intel i7-12700H (20) @ 4.600GHz

I work with two different setups. On my workstation, there are no issues with two monitors. However, with the laptop and a secondary monitor, the system becomes unstable. The bug occurs when I press "run" for debugging. As the game starts, everything freezes, and often, the secondary monitor becomes unresponsive. To resolve this, I need to unplug and plug back in the HDMI cable.

Moreover, when I launch Godot from the terminal, I encounter the following errors:

libGL error: glx: failed to create dri3 screen libGL error: failed to load driver: nouveau

I resolved this issue by using the command:

DRI_PRIME=0 godot

However, I don't think it's supposed to be this way.

i have the same issue on my laptop is the secondary monitor becomes unresponsive. To resolve this, I need to unplug and plug back in the HDMI cable.

my environment Ubuntu 22.04 CPU: 14th Gen Intel i9 14900H GPU: Nvidia RTX 4090, Driver: 550