godotengine / godot

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

Godot crashes after creating a project in Forward+ #92357

Open Noel-Em opened 6 months ago

Noel-Em commented 6 months ago

Tested versions

4.0, 4.1 and 4.2.2

System information

Windows 11 - Godot v.4.2.2 - NVIDIA GeForce RTX 3060 Laptop GPU -

Issue description

When I create or open a project made in godot forward+ it crashes.

I think it's not directly a godot bug because some friends use it daily and have never had this kind of crash. I tried to find a solution on various websites and also on github, so I run godot with --verbose.

When I open the project (and it crashes) the terminal says:

TextServer: Primary interface set to: "ICU / HarfBuzz / Graphite (Built-in)".
CORE API HASH: 2995524600
EDITOR API HASH: 3767149329
EditorSettings: Load OK!
Loaded system CA certificates
EditorSettings: Save OK!
Editing project: P:/Godot/Growsseth-Board
EditorSettings: Save OK!
XR: Clearing primary interface
XR: Removed interface "Native mobile"
XR: Removed interface "OpenXR"
Godot Engine v4.2.2.stable.official.15073afe3 - https://godotengine.org
TextServer: Added interface "Dummy"
TextServer: Added interface "ICU / HarfBuzz / Graphite (Built-in)"
WARNING: GENERAL - Message Id Number: 0 | Message Id Name: Loader Message
        loader_add_layer_properties: 'layers' tag not supported until file version 1.0.1, but C:\Windows\System32\DriverStore\FileRepository\nvamig.inf_amd64_afa6df0b7490d433\nv-vk64.json is reporting version 1
        Objects - 1
                Object[0] - VK_OBJECT_TYPE_INSTANCE, Handle 2862205952304
     at: _debug_messenger_callback (drivers/vulkan/vulkan_context.cpp:264)
WARNING: GENERAL - Message Id Number: 0 | Message Id Name: Loader Message
        Layer name GalaxyOverlayVkLayer does not conform to naming standard (Policy #LLP_LAYER_3)
        Objects - 1
                Object[0] - VK_OBJECT_TYPE_INSTANCE, Handle 2862205952304
     at: _debug_messenger_callback (drivers/vulkan/vulkan_context.cpp:264)
WARNING: GENERAL - Message Id Number: 0 | Message Id Name: Loader Message
        Layer name GalaxyOverlayVkLayer_VERBOSE does not conform to naming standard (Policy #LLP_LAYER_3)
        Objects - 1
                Object[0] - VK_OBJECT_TYPE_INSTANCE, Handle 2862205952304
     at: _debug_messenger_callback (drivers/vulkan/vulkan_context.cpp:264)
WARNING: GENERAL - Message Id Number: 0 | Message Id Name: Loader Message
        Layer name GalaxyOverlayVkLayer_DEBUG does not conform to naming standard (Policy #LLP_LAYER_3)
        Objects - 1
                Object[0] - VK_OBJECT_TYPE_INSTANCE, Handle 2862205952304
     at: _debug_messenger_callback (drivers/vulkan/vulkan_context.cpp:264)
WARNING: GENERAL - Message Id Number: 0 | Message Id Name: Loader Message
        windows_read_data_files_in_registry: Registry lookup failed to get layer manifest files.
        Objects - 1
                Object[0] - VK_OBJECT_TYPE_INSTANCE, Handle 2862205952304
     at: _debug_messenger_callback (drivers/vulkan/vulkan_context.cpp:264)

I don't know how to solve this

Steps to reproduce

Creating or opening a project in godot 4.0 > with forward+ But I don't know how reproducible it is, because I think it has to do with some Vulkan corruption.

Minimal reproduction project (MRP)

N/A

JekSun97 commented 6 months ago

How long has it been since you updated your drivers? Maybe that's the issue

Noel-Em commented 6 months ago

How long has it been since you updated your drivers? Maybe that's the issue

Yesterday. I update the drivers every time there is an update.

matheusmdx commented 6 months ago

The crash happens using Godot 4.3.dev6? If still happening would be userful compile the engine with debug symbols to get the crash backtrace https://docs.godotengine.org/en/stable/contributing/development/compiling/index.html

If you can't compile the engine from source i can send you a version with debug symbols from google drive

Calinou commented 6 months ago

Try performing a clean installation of the NVIDIA driver by downloading the driver from NVIDIA's website, then checking the Perform a clean installation checkbox in the installer.

Also, try uninstalling GOG Galaxy and see if the problem persists.

Noel-Em commented 6 months ago

Try performing a clean installation of the NVIDIA driver by downloading the driver from NVIDIA's website, then checking the Perform a clean installation checkbox in the installer.

Also, try uninstalling GOG Galaxy and see if the problem persists.

I uninstalled GOG Galaxy and removed the OverlayLayout from regedit. This eliminated most of the problem causing the crashes, but there is still one thing causing the project to crash and it is this

WARNING: GENERAL - Message Id Number: 0 | Message Id Name: Loader Message
        loader_add_layer_properties: 'layers' tag not supported until file version 1.0.1, but C:\Windows\System32\DriverStore\FileRepository\nvamsig.inf_amd64_ca8a56ab43e4e132\nv-vk64.json is reporting version 1
        Objects - 1
                Object[0] - VK_OBJECT_TYPE_INSTANCE, Handle 2469697041456

I'm not sure if I have to update or manually edit something

patwork commented 6 months ago

Similar warnings here on Win10 + GTX 960, latest drivers 555.85 from 05/21/2024

Godot Engine v4.3.beta.custom_build.be56cab58 (2024-05-25 18:34:03 UTC) - https://godotengine.org
WARNING: GENERAL - Message Id Number: 0 | Message Id Name: Loader Message
        loader_add_layer_properties: 'layers' tag not supported until file version 1.0.1, but C:\Windows\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_5cf411dadcb5710d\nv-vk64.json is reporting version 1
        Objects - 1
                Object[0] - VK_OBJECT_TYPE_INSTANCE, Handle 2462210718544
     at: _debug_messenger_callback (drivers/vulkan/rendering_context_driver_vulkan.cpp:301)
WARNING: GENERAL - Message Id Number: 0 | Message Id Name: Loader Message
        windows_read_data_files_in_registry: Registry lookup failed to get layer manifest files.
        Objects - 1
                Object[0] - VK_OBJECT_TYPE_INSTANCE, Handle 2462210718544
     at: _debug_messenger_callback (drivers/vulkan/rendering_context_driver_vulkan.cpp:301)
Vulkan 1.3.278 - Forward+ - Using Device #0: NVIDIA - NVIDIA GeForce GTX 960

nv-vk64.json

{
    "file_format_version" : "1.0.0",
    "ICD": {
        "library_path": ".\\nvoglv64.dll",
        "api_version" : "1.3.278"
    },
    "layers": [{
        "name": "VK_LAYER_NV_optimus",
        "type": "INSTANCE",
        "library_path": ".\\nvoglv64.dll",
        "api_version" : "1.3.278",
        "implementation_version" : "1",
        "description" : "NVIDIA Optimus layer",
        "functions": {
            "vkGetInstanceProcAddr": "vk_optimusGetInstanceProcAddr",
            "vkGetDeviceProcAddr": "vk_optimusGetDeviceProcAddr"
        },
        "disable_environment": {
            "DISABLE_LAYER_NV_OPTIMUS_1": ""
        }
    }]
}
dsmiech commented 5 months ago

Similar warnings about file nv-vk64.json for me and godot forward+ crashing. Windows 10, GTX 1660ti, latest drivers 555.85 from 05/21/2024.

yuowo39 commented 4 months ago

I am writing a Vulkan application (not using Godot) and have the same problem:

_validation layer: loader_add_layer_properties: 'layers' tag not supported until file version 1.0.1, but C:\Windows\System32\DriverStore\FileRepository\nvmdsig.inf_amd64eed7905c74f2d7e6\nv-vk64.json is reporting version 1

I downloaded and installed the game ready driver instead of the studio driver; the warning was gone.

Software Details: Windows 10 Version 22H2 (OS Build 19045.4651) Game Ready Driver Version: 560.70 Studio Driver Version: 555.99 Vulkan SDK Version: 1.3.283.0