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

Debug error in Exclusive Fullscreen causes game becoming unresponsive, can't alt tab until process is killed/suspended #73979

Closed
Lippanon opened this issue Feb 26, 2023 · 4 comments

Comments

@Lippanon
Copy link

Godot version

v4.0.rc5.official [6296b46]

System information

Windows 10, Vulkan

Issue description

When running a project/game from the editor in Exclusive Fullscreen mode, if an error is thrown, the editor won't be brought to the front/top to show where the error is, like normal. Instead, the project/game process will freeze and become unresponsive and one has to wait for the 'not responding' window to close it, or kill the process.
image

During this time alt-tab'ing doesn't work for me to go back to the editor (which works fine), I have to Ctrl+alt+del to bring Task Manager with priority (Ctrl+Shift+Esc doesn't work even with Task Manager having 'Always on top' enabled).
This is very annoying when debugging a game in Exclusive Fullscreen mode.

Steps to reproduce

Enable Exclusive Fullscreen (through code or Project Settings) and run into an error.
Run the MRP, it has an error setup on purpose, and has Exclusive Fullscreen enabled.

MRP code:

extends Control

@onready var throw_error = $doesnt_exist

func _ready() -> void:
	print(throw_error.name)

Minimal reproduction project

EF bug.zip

@Calinou Calinou added this to the 4.x milestone Feb 26, 2023
@Calinou
Copy link
Member

Calinou commented Feb 26, 2023

This should likely be fixed by making the script error handler cause the window to have fullscreen disabled (and maximizing it instead).

@3ter
Copy link

3ter commented Mar 17, 2024

This also happens when setting a breakpoint.

The workaround of course is to set the mode in the project settings to something else than Exclusive Fullscreen. is to use the Windows key in case of a Breakpoint or an Error to get back to the editor and see it. Now I don't keep that unstaged change lingering anymore 🙏 .

@Chaosus
Copy link
Member

Chaosus commented Mar 20, 2024

A linked proposal (probably):

@Chaosus
Copy link
Member

Chaosus commented Jul 17, 2024

@Chaosus Chaosus closed this as completed Jul 17, 2024
@Chaosus Chaosus modified the milestones: 4.x, 4.3 Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants