godotengine / godotengine/godot
[4.x] Godot flies out when I hide the window
- 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+:

Errors in Mobile:

### Steps to reproduce
1. Run my example and run it in Forward+ or Mobile mode
2. Minimize a window

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
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