Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Godot glitches out and becomes unusable after being left in the background for a long time #72728

Closed
MewPurPur opened this issue Feb 4, 2023 · 9 comments · Fixed by #76868
Closed

Comments

@MewPurPur
Copy link
Contributor

MewPurPur commented Feb 4, 2023

Godot version

4.0 beta 17 (but I've encountered it since early alphas)

System information

Ubuntu 22.04.1 LTS

Issue description

Sorry for the jank, I just went to record this as soon as I could catch it on camera. The task bar is on the left and I'm clicking the Godot icon. It auto-minimizes when I try to open it most of the time.

2023-02-04.19-54-12.mp4

I'm pressing F5 here to play the project normally, but it closes immediately:

2023-02-04.19-54-55.mp4

Steps to reproduce

I have been unable to reproduce it, but leaving Godot in the background for a few hours often leads to it happening. For all I know, it seems random. Happens even on a tiny project.

However, one reliable way to trigger this behavior seems to be suspending my machine.

the "About" of my laptop:

image

Minimal reproduction project

N/A

@JulianHeuser
Copy link
Contributor

JulianHeuser commented Feb 4, 2023

I've noticed this too (both behaviors). Somtimes the 3d viewport also gets really laggy, as if it's framerate limited.
(Using Linux Mint 21.1 Cinnamon)

@Calinou
Copy link
Member

Calinou commented Mar 16, 2023

Can anyone experiencing this issue test #69995?

I've noticed this too (both behaviors). Somtimes the 3d viewport also gets really laggy, as if it's framerate limited. (Using Linux Mint 21.1 Cinnamon)

This may be due to the editor thinking it's unfocused. You can disable FPS limiting when unfocused by decreasing Unfocused Low Processor Mode Sleep Usec to 6900 in the Editor settings.

@naturally-intelligent
Copy link

For myself this is immediate if I minimize Godot, whether after 1 second of use or 2 hours, it will not unminimize, and must be closed

@vvvvvvitor
Copy link

Same is happening here in Fedora, allegedly it affects both Wayland and X11 and can also happen in any DE.

@chfoo
Copy link
Contributor

chfoo commented May 8, 2023

I think I found a way to reproduce the behavior of the bug using an editor plugin with the following script:

@tool
extends EditorPlugin

var panel_container := HFlowContainer.new()
var button := Button.new()

func _enter_tree() -> void:
	button.text = "Do bug"
	button.pressed.connect(bug)
	panel_container.add_child(button)
	add_control_to_bottom_panel(panel_container, "Bug 72728")

func _exit_tree() -> void:
	remove_control_from_bottom_panel(panel_container)
	panel_container.queue_free()

func bug() -> void:
	DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_MINIMIZED)
	await get_tree().create_timer(0.1).timeout
	DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_MAXIMIZED)
	await get_tree().create_timer(0.1).timeout

	var editor := get_editor_interface()
	editor.set_main_screen_editor("Script")
	editor.edit_script(get_script())

Create the plugin, paste this script, and enable it. Then click the button found in the bottom panel. There will be some flashing as the window minimizes. Trying to open the editor again will have the window glitched on minimize. Note that this is only reliable if a script editor is opened which is why the last few lines opens itself in the script editor. This was tested on a dev build using commit 64eeb04 on Ubuntu 23.04.

@vvvvvvitor
Copy link

Still happens on 4.0.3, it can happen randomly after you focus on editable text.
Gravação de tela de 2023-05-19 17-29-38.webm

@thebigtoona
Copy link

can confirm this is happening for me as well on 4.0.3. I'm running Pop!_OS 22.04 LTS.
commenting here as #74336 was closed as a duplicate.

@chfoo
Copy link
Contributor

chfoo commented Jun 23, 2023

Issues dealing with popup windows on Linux might be a different bug specifically with text input boxes: #60073 and #77333.

@MewPurPur
Copy link
Contributor Author

Well, I've been using 4.1 betas and I've not encountered the issue in the first video. But I still encounter the issue in the second video. I'll open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants