Godot Version
v4.6.2.stable.mono.official [71f334935]
Question
I have been building and exporting a game to Linux successfully for the past couple of years, but my most recent build does not close when the user exits. I have examined and reverted, individually, every change I have made since the previous good version, but I can’t find the culprit.
I have confirmed that threads are being cleaned up on exit.
I know this is virtually impossible to figure out from a forum post; I’m just wondering what sorts of things I should be looking at to debug this - I’m at a loss.
When running from command line, the GOOD version shows:
WARNING: Property not found: 'xr/openxr/extensions/hand_tracking'.
at: get_setting_with_override (core/config/project_settings.cpp:430)
Godot Engine v4.6.2.stable.mono.custom_build - https://godotengine.org
Error [GENERAL | xrCreateInstance | OpenXR-Loader] : LoaderInstance::CreateInstance chained CreateInstance call failed
Error [GENERAL | xrCreateInstance | OpenXR-Loader] : xrCreateInstance failed
VR Server (v1789498647)
Using breakpad crash handler
Setting breakpad minidump AppID = 250820
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
10/03 14:43:34 minidumps folder is set to /tmp/dumps
10/03 14:43:34 Init: Installing breakpad exception handler for appid(250820)/version(2.17.10)/tid(59744)
[S_API] SteamAPI_Init(): Loaded '/home/ericd/.local/share/Steam/linux64/steamclient.so' OK.
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
SteamInternal_SetMinidumpSteamID: Caching Steam ID: 76561197963006489 [API loaded yes]
SteamInternal_SetMinidumpSteamID: Setting Steam ID: 76561197963006489
OpenXR: Created instance for OpenXR 1.0.54
OpenXR: Running on OpenXR runtime: SteamVR/OpenXR 2.17.10
OpenXR: Failed to get system for our form factor [ XR_ERROR_FORM_FACTOR_UNAVAILABLE ]
WARNING: OpenXR was requested but failed to start.
HMD was not detected or a required feature was not supported.
Godot will start in normal mode.
at: initialize_openxr_module (modules/openxr/register_types.cpp:253)
Vulkan 1.4.341 - Forward+ - Using Device #0: NVIDIA - NVIDIA GeForce RTX 4070 Ti
AMC Forth Ver. 1.2.2
ERROR: Pages in use exist at exit in PagedAllocator: N33RendererSceneRenderImplementation22RenderForwardClustered32GeometryInstanceSurfaceDataCacheE
at: ~PagedAllocator (./core/templates/paged_allocator.h:169)
ERROR: Pages in use exist at exit in PagedAllocator: N33RendererSceneRenderImplementation22RenderForwardClustered32GeometryInstanceForwardClusteredE
at: ~PagedAllocator (./core/templates/paged_allocator.h:169)
ERROR: 1 shaders of type SceneForwardClusteredShaderRD were never freed
at: ~ShaderRD (servers/rendering/renderer_rd/shader_rd.cpp:1056)
ERROR: 1 RID allocations of type 'N10RendererRD11MeshStorage4MeshE' were leaked at exit.
ERROR: 1 RID allocations of type 'N10RendererRD15MaterialStorage8MaterialE' were leaked at exit.
ERROR: 1 RID allocations of type 'N10RendererRD15MaterialStorage6ShaderE' were leaked at exit.
ERROR: 1 RID allocations of type 'N10RendererRD14TextureStorage7TextureE' were leaked at exit.
ERROR: 8 RID allocations of type 'N17RendererSceneCull8InstanceE' were leaked at exit.
corrupted size vs. prev_size while consolidating
When running the failing version:
WARNING: Property not found: 'xr/openxr/extensions/hand_tracking'.
at: get_setting_with_override (core/config/project_settings.cpp:430)
Godot Engine v4.6.2.stable.mono.custom_build - https://godotengine.org
Error [GENERAL | xrCreateInstance | OpenXR-Loader] : LoaderInstance::CreateInstance chained CreateInstance call failed
Error [GENERAL | xrCreateInstance | OpenXR-Loader] : xrCreateInstance failed
VR Server (v1789498647)
Using breakpad crash handler
Setting breakpad minidump AppID = 250820
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
10/03 14:47:25 minidumps folder is set to /tmp/dumps
10/03 14:47:25 Init: Installing breakpad exception handler for appid(250820)/version(2.17.10)/tid(60025)
[S_API] SteamAPI_Init(): Loaded '/home/ericd/.local/share/Steam/linux64/steamclient.so' OK.
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
SteamInternal_SetMinidumpSteamID: Caching Steam ID: 76561197963006489 [API loaded yes]
SteamInternal_SetMinidumpSteamID: Setting Steam ID: 76561197963006489
OpenXR: Created instance for OpenXR 1.0.54
OpenXR: Running on OpenXR runtime: SteamVR/OpenXR 2.17.10
OpenXR: Failed to get system for our form factor [ XR_ERROR_FORM_FACTOR_UNAVAILABLE ]
WARNING: OpenXR was requested but failed to start.
HMD was not detected or a required feature was not supported.
Godot will start in normal mode.
at: initialize_openxr_module (modules/openxr/register_types.cpp:253)
Vulkan 1.4.341 - Forward+ - Using Device #0: NVIDIA - NVIDIA GeForce RTX 4070 Ti
AMC Forth Ver. 1.2.2
ERROR: Pages in use exist at exit in PagedAllocator: N33RendererSceneRenderImplementation22RenderForwardClustered32GeometryInstanceSurfaceDataCacheE
at: ~PagedAllocator (./core/templates/paged_allocator.h:169)
ERROR: Pages in use exist at exit in PagedAllocator: N33RendererSceneRenderImplementation22RenderForwardClustered32GeometryInstanceForwardClusteredE
at: ~PagedAllocator (./core/templates/paged_allocator.h:169)
ERROR: 1 shaders of type SceneForwardClusteredShaderRD were never freed
at: ~ShaderRD (servers/rendering/renderer_rd/shader_rd.cpp:1056)
ERROR: 1 RID allocations of type 'N10RendererRD11MeshStorage4MeshE' were leaked at exit.
ERROR: 1 RID allocations of type 'N10RendererRD15MaterialStorage8MaterialE' were leaked at exit.
ERROR: 1 RID allocations of type 'N10RendererRD15MaterialStorage6ShaderE' were leaked at exit.
ERROR: 1 RID allocations of type 'N10RendererRD14TextureStorage7TextureE' were leaked at exit.
ERROR: 8 RID allocations of type 'N17RendererSceneCull8InstanceE' were leaked at exit.
corrupted size vs. prev_size while consolidating
At this point I either kill the app with xkill or with Ctrl-C if I’m running from the command line.
I am building and uploading to Steam, but I have yet to see if this problem exists in that context as well.
I realize there are plenty of issues here that I could be asking about, but the only error in the debugger has to do with initializing XR, which is an artifact of having XR enabled in the project while not actually running the app with a VR headset connected.
Exports to Windows exit without any problem.