godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.36k stars 21.25k forks source link

Editor crashes immediately when opening a project #92428

Open yoyomonem opened 6 months ago

yoyomonem commented 6 months ago

Tested versions

I first found this bug in Godot v4.2.1-stable. I tried v4.0-stable too and it crashed just like it did in Godot v4.2.1-stable. I thought it would FINALLY be fixed in Godot v4.2.2, but turns out, that never happened. I have confirmed that this is reproducible in Godot v4.x because of this.

System information

Windows 11 (originally ran Windows 10, but I immediately upgraded it to Windows 11) - Samsung Galaxy Book Pro (original, NOT Galaxy Book3) - Godot v4.2.2-stable - Vulkan (Forward+) - Intel Iris Xe Graphics - Intel Evo i7

Issue description

The editor crashes immediately when I try to open any project using the Forward+ renderer, brand new and existing. (I've come across this bug when I once used Godot v4.2.1-stable too.)

When I try to open a project, the editor window is completely blank and I saw this error. (Same thing goes with Godot v4.2.1-stable.) The issue

After only a few seconds, both windows close.

Steps to reproduce

THE ONLY STEP TO REPRODUCE: NO, SERIOUSLY.

Minimal reproduction project (MRP)

N/A

arkology commented 6 months ago

Maybe your GPU doesn't support Vulkan (idk actually). Try Compatibility renderer.

theraot commented 6 months ago

In the picture we can see it is running an Intel Xe GPU. I don't have more details to go by, but Intel claims the Intel Xe line supports Vulkan, thus there is a chance a driver update would fix this for you.


By the way, I would expect DirectX 12 to work on your machine. But, Godot support for DirectX has not been rolled out at the time of writing. See https://github.com/godotengine/godot/pull/91475


The Compatiblity renderer should work (this is what the project manager uses). Thus, I would also expect that you can create a new project with the Compatiblity renderer without issue.

About opening an existing project with a different renderer (e.g. compatibility), I believe it is possible with comman line arguments, see: https://docs.godotengine.org/en/stable/tutorials/editor/command_line_tutorial.html (I mention this in case you need to access some existing project).

Calinou commented 6 months ago

Maybe your GPU doesn't support Vulkan (idk actually). Try Compatibility renderer.

All Iris Xe IGPs have Vulkan 1.3 support, so that's not the issue. The fact I'm only seeing Vulkan 1.2 in the header message makes me think the driver is outdated though.

My guess is that you have some kind of broken driver installation, or a highly outdated one. Try downloading the latest Intel GPU drivers from Intel's website (not your laptop's OEM, not Windows Update).

RealMadvicius commented 6 months ago

Did you install the Vulkan runtime on your PC ? On the official website for Vulkan SDK you can either get the full sdk and/or just the runtime normaly.

https://vulkan.lunarg.com/sdk/home

On unity there were lots of people having video player crashing and some other features because the users didnt have Vulkan runtime installed on their PC. Sometimes games may install it or when you are a dev with lots of SDKs you tend to forget or not notice you already installed, and that is why many times it works for some and not for other. I may be wrong but cost nothing to try installing the runtime and see if it fixes the issue. ( if anyone from godot project can confirm ? )

yoyomonem commented 6 months ago

@RealMadvicius said: Did you install the Vulkan runtime on your PC ? On the official website for Vulkan SDK you can either get the full sdk and/or just the runtime normaly.

https://vulkan.lunarg.com/sdk/home

On unity there were lots of people having video player crashing and some other features because the users didnt have Vulkan runtime installed on their PC. Sometimes games may install it or when you are a dev with lots of SDKs you tend to forget or not notice you already installed, and that is why many times it works for some and not for other. I may be wrong but cost nothing to try installing the runtime and see if it fixes the issue. ( if anyone from godot project can confirm ? )

For some reason, when I tried installing the latest Vulkan runtime, the installer failed to write to a DLL that the installer said is Vulkan 1.2. That's something I consider weird.

RealMadvicius commented 5 months ago

@yoyomonem did you have more time to look again at this issue since we cant reproduce on our side? It would help other devs to get better ideas about hints and clues why it happens only for you.

RealMadvicius commented 4 months ago

@yoyomonem any more luck getting some time to look again by any chance? ( still can't reproduce ) maybe trying with one of the newest build and check if you still have your issue could help knowing if it was potentialy a fixed issue or if it is still something that should be looked for.

yoyomonem commented 4 months ago

@RealMadvicius said: --SNIPPED-- ( still can't reproduce ) --SNIPPED--

If you can't reproduce the issue, how about you get a Samsung Galaxy Book Pro and see for yourself?

RealMadvicius commented 4 months ago

@yoyomonem said: If you can't reproduce the issue, how about you get a Samsung Galaxy Book Pro and see for yourself?

If someone sends me the money to buy one or kindly gift me one then why not.

Though from all info gathered from the different posts, it really seems like a driver issue + runtime issue.

Quote from some of the Vulkan forums: Vulkan is compatible with Intel graphics cards. However, the performance and compatibility of Vulkan with Intel graphics cards can vary depending on the specific model and driver support. It's important to ensure that you have the latest graphics drivers installed for your Intel graphics card to maximize compatibility and performance with Vulkan.

So short answer is yes Vulkan works in general with Intel integrated iGPU BUT the quality of the support depends on the model and the driver version used. So you could try to check if you have the very latest drivers for your iGPU ( and update if possible ) and retry again to install the vulkan runtime or the vulkan SDK and then try to launch the latest Godot version in case there were some vulkan related fixes done meanwhile and that got merged, that could help with better supporting Vulkan for Intel iGPU aswell.

DylanCheetah commented 4 months ago

I have the same integrated GPU in my laptop and haven't experienced this issue. It's probably a driver issue as suggested above.