godotengine / godotengine/godot

[4.x] Godot flies out when I hide the window

Open
#89,651 8 comments 0 reactions 0 assignees View on GitHub
bug topic:rendering
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

Godot 4.1.3, Godot 4.2.1

### System information

Godot v4.1.3.stable - Windows 10.0.19045 - Vulkan (Mobile) - dedicated Radeon RX 560 Series (Advanced Micro Devices, Inc.; 31.0.14001.45012) - Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz (4 Threads)

### Issue description

When I click the "minimize" button in a running application, godot displays many errors in the console and crashes.
In the example, I use [this plugin](https://github.com/MizunagiKB/gd_cubism), it’s unlikely that this is the problem, since this happens in all modes except “compatibility”

Errors in Forward+:
![err](https://github.com/godotengine/godot/assets/130399274/ce8c34e8-e899-4bbd-ae9f-473d34263f7a)

Errors in Mobile:
![errMobile](https://github.com/godotengine/godot/assets/130399274/bfd1aafa-6707-44e0-a12e-5f28323b979f)

### Steps to reproduce

1. Run my example and run it in Forward+ or Mobile mode
2. Minimize a window
![w](https://github.com/godotengine/godot/assets/130399274/edf50b7d-5f1b-4f04-8f26-8285e6fd5401)
3. Wait about 15 seconds and you will see a huge number of errors

### Minimal reproduction project (MRP)
[demoGD.zip](https://github.com/godotengine/godot/files/14639407/demoGD.zip)

Contributor guide

Open the contributing guide

Research direction

Start with the attached demoGD.zip and reproduce the crash by minimizing the running project in Forward+ and Mobile mode, then compare the behavior with Compatibility mode. Use the reported console errors and confirm that minimizing no longer produces the error flood or crash after the fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.