Repository: godot
Issue: Godot 4.3 EXE Freezes on Non-Primary Screen When Using --screen Command
Labels: bug,platform:windows,topic:porting

### Tested versions

godot 4.3 C# 



### System information

Win11 godot 4.3 4090

### Issue description

I’m developing an EXE with Godot 4.3 and encountering an issue. I have three screens, and I want the EXE to launch directly on the third screen. I used the --screen 2 method via the command line, but after launching, the EXE shows a black screen briefly and then freezes. I also tried --screen 0 and --screen 1, and only --screen 0 works correctly. I tested this on other computers, and the issue doesn’t occur. I enabled logging mode, and I noticed the logs stop after a certain point when the program starts. What could be causing this issue?

Godot Engine v4.3.stable.mono.official.77dcf97d8 - https://godotengine.org
TextServer: Added interface "Dummy"
TextServer: Added interface "ICU / HarfBuzz / Graphite (Built-in)"
Native OpenGL API detected: 3.3: NVIDIA - NVIDIA GeForce RTX 4090
NVAPI: Init OK!
NVAPI: Disabled OpenGL threaded optimization successfully
NVAPI: Disabled G-SYNC for windowed mode successfully
Using "winink" pen tablet driver...
Shader 'CanvasSdfShaderGLES3' SHA256: e0ddef25c1b566c51a1ca570485c46c1cffe94f9df15454228cc6b21246f37c7
Shader 'SkeletonShaderGLES3' SHA256: 1c4150efb77da59925a20f9f587b19fdf5e78fe72cbdc3cc93312c1966c095c5
Shader 'ParticlesShaderGLES3' SHA256: b7f70ed8f7d6ad544f55835602cd1f0566ae891187b6b840e95bb1942fc1b519
Shader 'ParticlesCopyShaderGLES3' SHA256: c52aa5518d931a1df301d051af5fcffbeb74d4b9841df7f2a1061d69cc50bfa4
Shader 'CopyShaderGLES3' SHA256: f6b5be83766c81cc934a79668351b00d9c8afd58fee7c6dabb98ea4017faff85
Shader 'CubemapFilterShaderGLES3' SHA256: 49ecb39146190d3d2b031c58170c55342d4b287164eaccb27390b5f267d0d262
Shader 'GlowShaderGLES3' SHA256: b811d3296b5df16fb73b31331aefe925a9c6b274f4aed85cca70dcfd85c4e808
Shader 'PostShaderGLES3' SHA256: 75370cfb4a5db5eb5842f65733570b31e253505667900eefa7aa2920224e4d29
Shader 'CanvasShaderGLES3' SHA256: b99cc6436a163c5e67ca0c7d9a33c04e302a339a57ad49345a68d3c9d4a62e7f
Shader 'CanvasOcclusionShaderGLES3' SHA256: 8e9af0b3f49adb7ead1cf79d5c89fb2f675439bdcedbda488f4b337b4d7c6bd2
Shader 'SceneShaderGLES3' SHA256: 6995ba9bf4bc9b65d4708bdb6c747dcea5bd1f5cd4a7084dbc6a9f49b1972882
Shader 'SkyShaderGLES3' SHA256: cd78594cd3a39a35e084d25d15e29ec710c524392491b45906100f11e5aa3f52
OpenGL API 3.3.0 NVIDIA 560.94 - Compatibility - Using Device: NVIDIA - NVIDIA GeForce RTX 4090
WASAPI: Activated output_device using IAudioClient3 interface
WASAPI: wFormatTag = 65534
WASAPI: nChannels = 2
WASAPI: nSamplesPerSec = 48000
WASAPI: nAvgBytesPerSec = 384000
WASAPI: nBlockAlign = 8
WASAPI: wBitsPerSample = 32
WASAPI: cbSize = 22
WASAPI: mix_rate = 48000
WASAPI: fundamental_period_frames = 1
WASAPI: min_period_frames = 336
WASAPI: max_period_frames = 480
WASAPI: selected a period frame size of 480
WASAPI: detected 2 channels
WASAPI: audio buffer frames: 480 calculated latency: 10ms


if work normal ,it will output next :

TextServer: Primary interface set to: "ICU / HarfBuzz / Graphite (Built-in)".
.NET: Initializing module...
Found hostfxr: D:/Build/UITest/data_Test1_windows_x86_64/hostfxr.dll
.NET: hostfxr initialized
.NET: GodotPlugins initialized
CORE API HASH: 1186918252
EDITOR API HASH: 3138346866
Loaded system CA certificates

### Steps to reproduce

See Issue description

### Minimal reproduction project (MRP)

See Issue description