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 Editor v4.2 Won't Start on Windows due to Nahimic Audio Driver #85608

Closed
aggiechris opened this issue Dec 1, 2023 · 32 comments · Fixed by #99388
Closed

Godot Editor v4.2 Won't Start on Windows due to Nahimic Audio Driver #85608

aggiechris opened this issue Dec 1, 2023 · 32 comments · Fixed by #99388

Comments

@aggiechris
Copy link

aggiechris commented Dec 1, 2023

Godot version

4.2.stable

System information

Windows 10 Home 22H2 (19045.3693), Intel Core i7-7700HQ, NVIDIA GeForce GTX 1060 (driver 546.01)/Intel HD Graphics 630

Issue description

Godot v4.2 will not start on my Windows 10 machine.

Attempts to open Godot_v4.2-stable_win64.exe result in an open process in Task Manager, but the project selection window does not open, and the open process just hangs.

When attempting to open Godot_v4.2-stable_win64_console.exe from the command line, it just hangs without exiting.

I am happy to debug but have no idea where to go from here.

I am not running any 3rd party security software on this machine that would be impacting this.

Reboots do not resolve.

3.5.x and 4.1.x are not affected.

Steps to reproduce

Attempt to open Godot v4.2 on Windows (either standard or .NET build)

In the screenshot, the multiple instances are multiple attempts to open.

Screenshot 2023-12-01 082054

Minimal reproduction project

Cannot even get to the project selection window.

@akien-mga
Copy link
Member

Are you using godot-jolt by any chance? If so there's a known issue with its older versions making Godot 4.2 crash.

You should delete the version you have, and install the latest 0.10.0 which seems to work with Godot 4.2.

@aggiechris
Copy link
Author

I am not using godot-jolt (or any other extensions).

@akien-mga
Copy link
Member

Can you try to run Godot from the command line with:

Godot_v4.2-stable_win64.exe --rendering-driver opengl3

The new default in 4.2 is to use opengl3_angle for the Compatibility renderer, which may be the problem on your system.

@aggiechris
Copy link
Author

Running Godot_v4.2-stable_win64.exe --rendering-driver opengl3 does not resolve. Same behavior.

@Brixenaut
Copy link

image

Having the same issue and adding for attention to it. There is also the folder on the bottom left as shown in the image flickering for some reason, not sure if related but when I move the mouse around the screen it flickers quickly while I can only interact with the top window bar.

System Info:
_Windows 10 Home, Intel Core i9-9990K, NVIDIA GeForce RTX 2070 (non-super)/64GbRam 2TB SSD

@Brixenaut
Copy link

Running Godot_v4.2-stable_win64.exe --rendering-driver opengl3 does not resolve. Same behavior.

Do you happen to have an FPS display or overlay, or some sort of window status that shows the apps fps? I had one and turned it off, which seemed to have helped so far. This is not a solution, as I am still testing it out!

I am new to the project space for Godot, so I am learning with ya on how to help here.

Something I have tried is running as an admin, and also examining the task manager performance window as I move around the window to see what causes the heavy freezing and spikes in resource consumption.

@aggiechris
Copy link
Author

@Brixenaut I’m not sure you and I are having the same problem

I can’t even get a window to open at all (the project selector or the editor)

I do not have any sort of FPS overlay

@bk4928412
Copy link

same issue here. i've been trying to figure out what is happening but no luck yet. older builds are still working without any issues. i even cleared everything about the engine including registry keys.

@saierXP
Copy link

saierXP commented Dec 16, 2023

@bk4928412 Can you find out which 4.2 development version introduced the regression? Previous development versions can be downloaded from here, thank you.

@bk4928412
Copy link

@bk4928412 Can you find out which 4.2 development version introduced the regression? Previous development versions can be downloaded from here, thank you.

hey, its 4.2 dev3 build. the 4.2-dev2 and below that version works fine

@frnkre
Copy link

frnkre commented Dec 17, 2023

I have also a Windows 10 machine (Windows 10 Pro, 22H2, Build 19045.3803) where Godot 4.2 don't start, but simply stopped without error or notification.

I can confirm that 4.2-dev2 works fine, 4.2-dev3 and following refuse to start.

As a workaround, if commenting out the execution of GetSystemFontCollection and GetSystemFontFallback during initialization Godot 4.2 starts, but (without surprise) the handling of system fonts is messed up

HRESULT hr = DWriteCreateFactory(DWRITE_FACTORY_TYPE_SHARED, __uuidof(IDWriteFactory), reinterpret_cast<IUnknown **>(&dwrite_factory));
if (SUCCEEDED(hr)) {
hr = dwrite_factory->GetSystemFontCollection(&font_collection, false);
if (SUCCEEDED(hr)) {
dwrite_init = true;
hr = dwrite_factory->QueryInterface(&dwrite_factory2);
if (SUCCEEDED(hr)) {
hr = dwrite_factory2->GetSystemFontFallback(&system_font_fallback);
if (SUCCEEDED(hr)) {
dwrite2_init = true;
}
}
}
}
if (!dwrite_init) {
print_verbose("Unable to load IDWriteFactory, system font support is disabled.");
} else if (!dwrite2_init) {
print_verbose("Unable to load IDWriteFactory2, automatic system font fallback is disabled.");

@borjafac
Copy link

borjafac commented Jan 5, 2024

Exactly the same behavior for me, any fixes yet? It is my first time trying to open Godot and this happens, what a nice first impression xD.

@bk4928412
Copy link

Exactly the same behavior for me, any fixes yet? It is my first time trying to open Godot and this happens, what a nice first impression xD.

you can use the latest build we mentioned above.

@frnkre
Copy link

frnkre commented Jan 10, 2024

It seems as if the issue begins with commit #79693

If the COINIT_APARTMENTTHREADED in line 1717 is reverted back to the former COINIT_MULTITHREADED, the editor starts as expected

OS_Windows::OS_Windows(HINSTANCE _hInstance) {
hInstance = _hInstance;
CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED);

@saierXP
Copy link

saierXP commented Jan 11, 2024

Is it possible to start it using the godot.exe --single-window command line, or just open the editor godot.exe --single-window -e --path project-path .

Failure to launch the editor should be fixed first, and the previous "COINIT_MULTITHREADED "mode was also used to fix the inability to launch the editor.
Modified to COINIT_APARTMENTTHREADED mode due to a problem with the palm input method application not working (unpopular Chinese input method).

IMO, we can change back to COINIT_MULTITHREADED and reopen the original Chinese input method not working problem, what's your opinion? @bruvzg

@bruvzg
Copy link
Member

bruvzg commented Jan 11, 2024

MO, we can change back to COINIT_MULTITHREADED and reopen the original Chinese input method not working problem, what's your opinion?

IIRC, it was breaking more than just input. Also, previous fix was not changing to COINIT_MULTITHREADED, but removing excessive calls.

@aggiechris
Copy link
Author

Is it possible to start it using the godot.exe --single-window command line, or just open the editor godot.exe --single-window -e --path project-path .

This doesn't seem to help anything.

@saierXP
Copy link

saierXP commented Mar 15, 2024

Can the methods mentioned here solve the problem? #18320 (comment)
Will changing the anti-aliasing in the Nvidia control Panel to app control solve the problem? @aggiechris
Four months ago I had a friend come across godot running in the background invisible but with sound and input. Found that changing the anti-aliasing Settings to be controlled by the application itself solved the problem.

@aggiechris
Copy link
Author

Can the methods mentioned here solve the problem? #18320 (comment) Will changing the anti-aliasing in the Nvidia control Panel to app control solve the problem? @aggiechris Four months ago I had a friend come across godot running in the background invisible but with sound and input. Found that changing the anti-aliasing Settings to be controlled by the application itself solved the problem.

@saierXP I already had mine set to application-controlled, so no - it doesn't seem to resolve the issue.

@lukenothing
Copy link

I got same problem. And I have almost same configurations about the OS, GTX1060 as aggiechris'

Win10 22H2, 19045,.4170, GTX1060 driver 551.86, Intel HD Graphics 630

4.2.1 Can not be launched.

3.5.3, 4.1.3 are OK.

@bk4928412
Copy link

Can the methods mentioned here solve the problem? #18320 (comment) Will changing the anti-aliasing in the Nvidia control Panel to app control solve the problem? @aggiechris Four months ago I had a friend come across godot running in the background invisible but with sound and input. Found that changing the anti-aliasing Settings to be controlled by the application itself solved the problem.

interesting but it didnt help. also the problem continues on build 4.3dev5.

@saierXP
Copy link

saierXP commented Apr 3, 2024

Win10 22H2, 19045,.4170, GTX1060 driver 551.86, Intel HD Graphics 630

@lukenothing Have you tried to update Intel's latest graphics driver from the official website?

@lukenothing
Copy link

lukenothing commented Apr 3, 2024

I got same problem. And I have almost same configurations about the OS, GTX1060 as aggiechris'

Win10 22H2, 19045,.4170, GTX1060 driver 551.86, Intel HD Graphics 630

4.2.1 Can not be launched.

3.5.3, 4.1.3 are OK.

BTW, I remembered that when I first recoved my WIN10 to the factory version(MSI backups one on hd), 4.2.1 was OK. But after several times OS and NVIDIA driver updates all to the latest version, 4.2.1 could not be launched.

@lukenothing
Copy link

lukenothing commented Apr 17, 2024

Win10 22H2, 19045,.4170, GTX1060 driver 551.86, Intel HD Graphics 630

@lukenothing Have you tried to update Intel's latest graphics driver from the official website?

Hello, I just upgraded intel hd 630 driver from 31.0.101.2114 to the latest one 31.0.101.2127. Nothing changed.

And because of using external screen as main screen for my laptop which is connected with HDMI port managed by the GTX1060, I disconnected the hdmi line, only using laptop's screen managed by the Intel HD 630, then tried to lanunch the godot 4.2.1 but got the same result.

@syshcndr
Copy link

syshcndr commented Apr 27, 2024

Tried multiple but these only worked for me Godot_v4.2-dev2_win64, Godot_v4.0-beta7_win64

@bk4928412
Copy link

it seems like this issue also affects games made with 4.2 dev3 and later.

need someone to confirm.

@Dark-Occultist
Copy link

Was having this same issue, found a solution that worked for me over on the Godot forums
https://forum.godotengine.org/t/godot-wont-launch-or-open-but-its-running-in-task-manager-fix/47502/2
Check to see if you are running Nahemic Audio Driver, if so exit out and see if that works

@bk4928412
Copy link

Was having this same issue, found a solution that worked for me over on the Godot forums https://forum.godotengine.org/t/godot-wont-launch-or-open-but-its-running-in-task-manager-fix/47502/2 Check to see if you are running Nahemic Audio Driver, if so exit out and see if that works

can confirm it works

@frnkre
Copy link

frnkre commented May 20, 2024

Was having this same issue, found a solution that worked for me over on the Godot forums https://forum.godotengine.org/t/godot-wont-launch-or-open-but-its-running-in-task-manager-fix/47502/2 Check to see if you are running Nahemic Audio Driver, if so exit out and see if that works

I too can confirm that this works. As soon as the Nahemic Audio Driver is stopped, the editor starts as expected.

Many thanks for the hint!

@aggiechris
Copy link
Author

Was having this same issue, found a solution that worked for me over on the Godot forums https://forum.godotengine.org/t/godot-wont-launch-or-open-but-its-running-in-task-manager-fix/47502/2 Check to see if you are running Nahemic Audio Driver, if so exit out and see if that works

Yep, works for me too

@akien-mga akien-mga changed the title Godot Editor v4.2 Won't Start on Windows Godot Editor v4.2 Won't Start on Windows due to Nahemic Audio Driver May 22, 2024
@lukenothing
Copy link

Was having this same issue, found a solution that worked for me over on the Godot forums https://forum.godotengine.org/t/godot-wont-launch-or-open-but-its-running-in-task-manager-fix/47502/2 Check to see if you are running Nahemic Audio Driver, if so exit out and see if that works

Woo~~~, It's OK for me too.

@KoBeWi KoBeWi modified the milestones: 4.3, 4.x Aug 4, 2024
@akien-mga akien-mga changed the title Godot Editor v4.2 Won't Start on Windows due to Nahemic Audio Driver Godot Editor v4.2 Won't Start on Windows due to Nahimic Audio Driver Nov 13, 2024
@akien-mga
Copy link
Member

Related to #13208.

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.