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

Add API to get systemName as reported by OpenXR #563

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

paulmelis
Copy link
Contributor

I ran into #343 (floor height inconsistent between devices) again and would really like to be able to do a check at startup to handle different systems. I suspect OpenXR's systemName property isn't always useful, but in my case I can see "XR-3" being reported in the SK initialization, so I can definitely detect that and use it in those cases (probably other headsets as well).

@paulmelis
Copy link
Contributor Author

Btw, this adds SK.SystemName, next to the existing SK.System, which is a bit unfortunate. But from what I saw in the code System is a direct mapping of the underlying OpenXR struct, so it doesn't seem that easy to add systemName to it.

@maluoi
Copy link
Collaborator

maluoi commented Jan 12, 2023

I do have a branch with this functionality in it! I was considering this to be part of a Device API that would probably deprecate a couple of sk_ functions. I believer device_get_name in particular should satisfy this particular thing? Would this work for you instead?

@paulmelis
Copy link
Contributor Author

I guess so. I really just need the headset type name through some API.

@maluoi
Copy link
Collaborator

maluoi commented Jan 17, 2023

I did ship Device.Name in v0.3.7-preview.8. Does that satisfy the need here?

@paulmelis
Copy link
Contributor Author

paulmelis commented Jan 17, 2023

Edit 2: the below turns out to be an issue unrelated to the new Device. I'll make a separate issue

Is there a specific context in which Device.Name is valid? I'm trying this:

       static void Main(string[] args)
        {
            SKSettings settings = new SKSettings
            {
                appName = "DutchSkies",
                assetsFolder = "Assets",
            };

            if (!SK.Initialize(settings))
                Environment.Exit(1);

            Log.Info($"Device: {Device.Name}"); 

With an x64 build on UWP I get System.NullReferenceException: 'Object reference not set to an instance of an object.'__imp__#15604(...) returned null. on the Device.Name log line.

Log output:

'DutchSkies.exe' (Win32): Loaded 'C:\Users\paulm\Desktop\DutchSkies\bin\x64\Release\AppX\DutchSkies.exe'. Module was built without symbols.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\crypt32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Users\paulm\Desktop\DutchSkies\bin\x64\Release\AppX\StereoKitC.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.NET.Native.Runtime.2.2_2.2.28604.0_x64__8wekyb3d8bbwe\mrt100_app.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\IPHLPAPI.DLL'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\bcrypt.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00_14.0.30704.0_x64__8wekyb3d8bbwe\vcruntime140_app.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\normaliz.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\MMDevAPI.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\d3d11.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\dxgi.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\D3DCompiler_47.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00_14.0.30704.0_x64__8wekyb3d8bbwe\msvcp140_app.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00_14.0.30704.0_x64__8wekyb3d8bbwe\vcruntime140_1_app.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\WinTypes.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\ncrypt.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\XInput1_4.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\devobj.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\cryptsp.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\dpapi.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\mrt100.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\rmclient.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'C:\Program Files\WindowsApps\Microsoft.NET.Native.Runtime.2.2_2.2.28604.0_x64__8wekyb3d8bbwe\mrt100_app.dll'. 
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\imm32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'C:\Program Files\WindowsApps\Microsoft.NET.Native.Framework.2.2_2.2.29512.0_x64__8wekyb3d8bbwe\SharedLibrary.dll'. Symbols loaded.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Collections.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Collections.Concurrent.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Diagnostics.Tools.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Diagnostics.Tracing.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Linq.dll'. Symbols loaded.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Linq.Expressions.dll'. Symbols loaded.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Memory.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.ObjectModel.dll'. Symbols loaded.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Private.Interop.dll'. Symbols loaded.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Private.Reflection.Core.dll'. Symbols loaded.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Private.Reflection.Execution.dll'. Symbols loaded.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Private.Reflection.Metadata.dll'. Symbols loaded.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Private.StackTraceMetadata.dll'. Symbols loaded.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Private.Threading.dll'. Symbols loaded.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Private.TypeLoader.dll'. Symbols loaded.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Private.Uri.dll'. Symbols loaded.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Reflection.TypeExtensions.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Runtime.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Runtime.Extensions.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Security.Principal.dll'. Symbols loaded.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Text.RegularExpressions.dll'. Symbols loaded.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Threading.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Private.SharedLibrary.Generated.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Private.SharedLibrary.Interop.Generated.dll'. Symbols loaded.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Private.CoreLib.dll'. Symbols loaded.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\ntasn1.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\XInputUap.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'C:\Users\paulm\Desktop\DutchSkies\bin\x64\Release\AppX\DutchSkies.dll'. Symbols loaded.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'DutchSkies.exe'. Symbols loaded.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'DutchSkies.McgInterop.dll'. Symbols loaded.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'Microsoft.MixedReality.QR.DotNet.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'Microsoft.Win32.Primitives.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'SharpDX.dll'. Symbols loaded.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'SharpDX.XInput.dll'. Symbols loaded.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'StereoKit.dll'. Symbols loaded.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Collections.NonGeneric.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Console.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Diagnostics.DiagnosticSource.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.IO.FileSystem.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Net.Http.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Net.Primitives.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Net.Security.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Numerics.Vectors.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Private.DeveloperExperience.AppX.dll'. Symbols loaded.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Private.DutchSkies.Generated.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Private.StackTraceGenerator.dll'. Symbols loaded.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Private.WinRTInterop.CoreLib.dll'. Symbols loaded.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Runtime.CompilerServices.Unsafe.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Runtime.InteropServices.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Runtime.InteropServices.RuntimeInformation.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Runtime.InteropServices.WindowsRuntime.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Runtime.Numerics.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Runtime.WindowsRuntime.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Runtime.WindowsRuntime.UI.Xaml.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Security.Claims.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Security.Cryptography.Algorithms.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Security.Cryptography.Cng.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Security.Cryptography.Csp.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Security.Cryptography.Encoding.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Security.Cryptography.Primitives.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Security.Cryptography.X509Certificates.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Security.Principal.Windows.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Text.Encoding.CodePages.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (CLR Native Compilation v1.0): Loaded 'System.Threading.Thread.dll'. PDB file was not present when IL code was compiled to native.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\InputHost.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\CoreUIComponents.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\propsys.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\CoreMessaging.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\ws2_32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\ntmarta.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\twinapi.appcore.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\MrmCoreR.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\Windows.StateRepositoryClient.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\Windows.StateRepositoryCore.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\profapi.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
The thread 0x311c has exited with code 0 (0x0).
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\Windows.UI.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\TextInputFramework.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\WindowManagementAPI.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\BCP47mrm.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\uxtheme.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
[SK diagnostic] Initializing StereoKit v0.3.7-preview.8 UWP x64...
[SK diagnostic] Initializing Assets
[SK diagnostic] Initializing Platform
'DutchSkies.exe' (Win32): Loaded 'C:\Program Files (x86)\Steam\steamapps\common\SteamVR\bin\vrclient_x64.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\setupapi.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\opengl32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\winmm.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\version.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\msvcp140.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\wtsapi32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\glu32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140_1.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\tdh.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\windows.storage.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\wldp.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
Tue Jan 17 2023 13:08:35.065 - //==============================================================================================
Tue Jan 17 2023 13:08:35.065 - ================================================================================================
Tue Jan 17 2023 13:08:35.065 - ================================================================================================
Tue Jan 17 2023 13:08:35.065 - DutchSkies.exe 1.23.7 startup with PID=11852, config=c:\fake_app_container_config_path, runtime=C:\Program Files (x86)\Steam\steamapps\common\SteamVR\
Tue Jan 17 2023 13:08:35.071 - [Settings] Load Default Json Settings from C:\Program Files (x86)\Steam\steamapps\common\SteamVR\drivers\htc\resources\settings\default.vrsettings
Tue Jan 17 2023 13:08:35.072 - [Settings] Load Default Json Settings from C:\Program Files (x86)\Steam\steamapps\common\SteamVR\drivers\lighthouse\resources\settings\default.vrsettings
Tue Jan 17 2023 13:08:35.072 - [Settings] Load Default Json Settings from C:\Program Files (x86)\Steam\steamapps\common\SteamVR\drivers\null\resources\settings\default.vrsettings
Tue Jan 17 2023 13:08:35.073 - [Settings] Load Default Json Settings from C:\Program Files (x86)\Steam\steamapps\common\SteamVR\resources\settings\default.vrsettings
Tue Jan 17 2023 13:08:35.074 - [Settings] Load Json Settings from c:\fake_app_container_config_path\steamvr.vrsettings
Tue Jan 17 2023 13:08:35.076 - [Settings] Load Default Json Settings from C:\Program Files (x86)\Steam\steamapps\common\SteamVR\drivers\htc\resources\settings\default.vrsettings
Tue Jan 17 2023 13:08:35.076 - [Settings] Load Default Json Settings from C:\Program Files (x86)\Steam\steamapps\common\SteamVR\drivers\lighthouse\resources\settings\default.vrsettings
Tue Jan 17 2023 13:08:35.077 - [Settings] Load Default Json Settings from C:\Program Files (x86)\Steam\steamapps\common\SteamVR\drivers\null\resources\settings\default.vrsettings
Tue Jan 17 2023 13:08:35.077 - [Settings] Load Default Json Settings from C:\Program Files (x86)\Steam\steamapps\common\SteamVR\resources\settings\default.vrsettings
Tue Jan 17 2023 13:08:35.078 - [Settings] Load Json Settings from c:\fake_app_container_config_path\steamvr.vrsettings
[SK diagnostic] available: XR_KHR_vulkan_enable
[SK diagnostic] available: XR_KHR_vulkan_enable2
[SK diagnostic] available: XR_KHR_D3D12_enable
[SK diagnostic] available: XR_KHR_opengl_enable
[SK diagnostic] available: XR_EXT_win32_appcontainer_compatible
[SK diagnostic] available: XR_KHR_binding_modification
[SK diagnostic] available: XR_KHR_visibility_mask
[SK diagnostic] available: XR_EXT_dpad_binding
[SK diagnostic] available: XR_EXT_frame_composition_report
[SK diagnostic] available: XR_EXT_hand_joints_motion_range
[SK diagnostic] available: XR_FB_display_refresh_rate
[SK diagnostic] available: XR_HTC_vive_cosmos_controller_interaction
[SK diagnostic] available: XR_HTC_vive_focus3_controller_interaction
[SK diagnostic] available: XR_MND_headless
[SK diagnostic] available: XR_VALVE_analog_threshold
[SK diagnostic] available: XR_HTCX_vive_tracker_interaction
[SK diagnostic] available: XR_EXT_debug_utils
[SK diagnostic] REQUESTED: XR_KHR_D3D11_enable
[SK diagnostic] REQUESTED: XR_KHR_win32_convert_performance_counter_time
[SK diagnostic] REQUESTED: XR_KHR_composition_layer_depth
[SK diagnostic] REQUESTED: XR_EXT_hand_tracking
[SK diagnostic] REQUESTED: XR_EXT_hp_mixed_reality_controller
[SK diagnostic] REQUESTED: XR_EXT_palm_pose
Tue Jan 17 2023 13:08:35.080 - Failed to find interface 'IVRPathsInternal_001'
Tue Jan 17 2023 13:08:35.080 - Failed to find interface 'IVRServer_XXX'
Tue Jan 17 2023 13:08:35.080 - Failed to find interface 'IVRSystemLayerInternal_XXX'
Tue Jan 17 2023 13:08:35.081 - //==============================================================================================
Tue Jan 17 2023 13:08:35.081 - ================================================================================================
Tue Jan 17 2023 13:08:35.081 - ================================================================================================
Tue Jan 17 2023 13:08:35.081 - DutchSkies.exe 1.23.7 startup with PID=11852, config=c:\fake_app_container_config_path, runtime=C:\Program Files (x86)\Steam\steamapps\common\SteamVR\
Tue Jan 17 2023 13:08:35.082 - vrclient type=VRApplication_OpenXRInstance
Tue Jan 17 2023 13:08:35.087 - [Settings] Load Default Json Settings from C:\Program Files (x86)\Steam\steamapps\common\SteamVR\drivers\htc\resources\settings\default.vrsettings
Tue Jan 17 2023 13:08:35.087 - [Settings] Load Default Json Settings from C:\Program Files (x86)\Steam\steamapps\common\SteamVR\drivers\lighthouse\resources\settings\default.vrsettings
Tue Jan 17 2023 13:08:35.087 - [Settings] Load Default Json Settings from C:\Program Files (x86)\Steam\steamapps\common\SteamVR\drivers\null\resources\settings\default.vrsettings
Tue Jan 17 2023 13:08:35.088 - [Settings] Load Default Json Settings from C:\Program Files (x86)\Steam\steamapps\common\SteamVR\resources\settings\default.vrsettings
Tue Jan 17 2023 13:08:35.089 - [Settings] Load Json Settings from c:\fake_app_container_config_path\steamvr.vrsettings
Tue Jan 17 2023 13:08:35.090 - WaitNamedPipe SteamVR_Namespace failed because no one is listening at that name.
Tue Jan 17 2023 13:08:35.090 - Not starting vrserver inside app container.
Tue Jan 17 2023 13:08:35.090 - Skipping starting apps because we're in an app container
Error [GENERAL | xrCreateInstance | OpenXR-Loader] : LoaderInstance::CreateInstance chained CreateInstance call failed
'DutchSkies.exe' (Win32): Unloaded 'C:\Windows\System32\tdh.dll'
'DutchSkies.exe' (Win32): Unloaded 'C:\Windows\System32\opengl32.dll'
'DutchSkies.exe' (Win32): Unloaded 'C:\Windows\System32\glu32.dll'
'DutchSkies.exe' (Win32): Unloaded 'C:\Windows\System32\winmm.dll'
'DutchSkies.exe' (Win32): Unloaded 'C:\Windows\System32\version.dll'
'DutchSkies.exe' (Win32): Unloaded 'C:\Windows\System32\vcruntime140_1.dll'
'DutchSkies.exe' (Win32): Unloaded 'C:\Windows\System32\msvcp140.dll'
'DutchSkies.exe' (Win32): Unloaded 'C:\Windows\System32\vcruntime140.dll'
'DutchSkies.exe' (Win32): Unloaded 'C:\Windows\System32\wldp.dll'
'DutchSkies.exe' (Win32): Unloaded 'C:\Windows\System32\windows.storage.dll'
'DutchSkies.exe' (Win32): Unloaded 'C:\Windows\System32\shlwapi.dll'
'DutchSkies.exe' (Win32): Unloaded 'C:\Windows\System32\shell32.dll'
'DutchSkies.exe' (Win32): Unloaded 'C:\Windows\System32\wtsapi32.dll'
'DutchSkies.exe' (Win32): Unloaded 'C:\Windows\System32\setupapi.dll'
'DutchSkies.exe' (Win32): Unloaded 'C:\Program Files (x86)\Steam\steamapps\common\SteamVR\bin\vrclient_x64.dll'
Error [GENERAL | xrCreateInstance | OpenXR-Loader] : xrCreateInstance failed
[SK info] Couldn't create OpenXR instance [XR_ERROR_RUNTIME_FAILURE], is OpenXR installed and set as the active runtime?
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\ResourcePolicyClient.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Unloaded 'C:\Windows\System32\ResourcePolicyClient.dll'
onecore\windows\directx\database\helperlibrary\lib\perappusersettingsqueryimpl.cpp(148)\dxgi.dll!00007FFB5EF61A6B: (caller: 00007FFB5EF3E332) ReturnHr(1) tid(37f8) 80070005 Access is denied.
onecore\windows\directx\database\helperlibrary\lib\perappusersettingsqueryimpl.cpp(108)\dxgi.dll!00007FFB5EF61B34: (caller: 00007FFB5EF3E332) ReturnHr(2) tid(37f8) 80070005 Access is denied.
onecore\windows\directx\database\helperlibrary\lib\perappusersettingsqueryimpl.cpp(98)\dxgi.dll!00007FFB5EF61805: (caller: 00007FFB5EF2DF01) ReturnHr(3) tid(37f8) 80070005 Access is denied.
onecore\windows\directx\database\helperlibrary\lib\directxdatabasehelper.cpp(1410)\dxgi.dll!00007FFB5EF61925: (caller: 00007FFB5EF2DF01) ReturnHr(4) tid(37f8) 8000FFFF Catastrophic failure
onecore\windows\directx\database\helperlibrary\lib\perappusersettingsqueryimpl.cpp(148)\dxgi.dll!00007FFB5EF61A6B: (caller: 00007FFB5EF4BC56) ReturnHr(5) tid(37f8) 80070005 Access is denied.
onecore\windows\directx\database\helperlibrary\lib\perappusersettingsqueryimpl.cpp(108)\dxgi.dll!00007FFB5EF61B34: (caller: 00007FFB5EF4BC56) ReturnHr(6) tid(37f8) 80070005 Access is denied.
onecore\windows\directx\database\helperlibrary\lib\directxdatabasehelper.cpp(1354)\dxgi.dll!00007FFB5EF4BCCD: (caller: 00007FFB5EF4CFFF) ReturnHr(7) tid(37f8) 80070005 Access is denied.
onecore\windows\directx\database\helperlibrary\lib\directxdatabasehelper.cpp(516)\dxgi.dll!00007FFB5EF4D078: (caller: 00007FFB5EF4C163) ReturnHr(8) tid(37f8) 80070005 Access is denied.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\windows.storage.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\wldp.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
onecore\windows\directx\database\helperlibrary\lib\directxdatabasehelper.cpp(383)\dxgi.dll!00007FFB5EF4B5D7: (caller: 00007FFB5EF49722) ReturnHr(9) tid(37f8) 80070005 Access is denied.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\nvdmwi.inf_amd64_4fc110e8bf8c1c7d\nvdlistx.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\version.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Unloaded 'C:\Windows\System32\version.dll'
'DutchSkies.exe' (Win32): Unloaded 'C:\Windows\System32\DriverStore\FileRepository\nvdmwi.inf_amd64_4fc110e8bf8c1c7d\nvdlistx.dll'
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\nvdmwi.inf_amd64_4fc110e8bf8c1c7d\nvldumdx.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\version.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\msasn1.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\cryptnet.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\drvstore.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\cryptbase.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\wintrust.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\imagehlp.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\rsaenh.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\nvdmwi.inf_amd64_4fc110e8bf8c1c7d\nvwgf2umx.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\winmm.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
The thread 0xbf0 has exited with code 0 (0x0).
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\nvdmwi.inf_amd64_4fc110e8bf8c1c7d\NvCamera\NvCameraAllowlisting64.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Unloaded 'C:\Windows\System32\DriverStore\FileRepository\nvdmwi.inf_amd64_4fc110e8bf8c1c7d\NvCamera\NvCameraAllowlisting64.dll'
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\DXCore.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
[SK diagnostic] [sk_gpu] Using Direct3D 11: vendor 0x10DE, device 0x1F36
[SK diagnostic] [sk_gpu] Device: NVIDIA Quadro RTX 3000
[SK diagnostic] Starting a stereo display
[SK info] Couldn't create a stereo display, falling back to flatscreen
[SK diagnostic] Starting a flatscreen display
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\OneCoreUAPCommonProxyStub.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\msctf.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Shell.ServiceHostBuilder.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\execmodelproxy.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\UiaManager.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\Windows.UI.Core.TextInput.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Graphics.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_d0b39b11619fd0c4\igd10iumd64.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\apphelp.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_d0b39b11619fd0c4\igdgmm64.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_d0b39b11619fd0c4\igc64.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\dcomp.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\dwmapi.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
[SK diagnostic] Created swapchain: 1280x720 color:rgba32_linear depth:depth16
[SK diagnostic] Initializing Audio
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Media.Devices.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\AudioSes.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\powrprof.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\umpdc.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
[SK diagnostic] ISAC audio backend not available, falling back to miniaudio! It's likely the device doesn't have Windows Sonic enabled, which can be found under Settings->Sound->Device Properties->Spatial Sound.
'DutchSkies.exe' (Win32): Loaded 'C:\Windows\System32\ResourcePolicyClient.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
The thread 0x1350 has exited with code 0 (0x0).
The thread 0x1960 has exited with code 0 (0x0).
[SK info] Using audio backend: WASAPI
[SK diagnostic] Initializing Defaults
[SK diagnostic] Initializing World
[SK diagnostic] Initializing Sprites
[SK diagnostic] Initializing Lines
[SK diagnostic] Initializing UI
[SK diagnostic] Initializing Renderer
[SK diagnostic] Initializing Physics
[SK diagnostic] Initializing Input
[SK info] Initialization successful
**__imp__#15604**(...) returned null.

The program '[11852] DutchSkies.exe' has exited with code 0 (0x0).

I had the Oculus runtime installed, but just removed it to see if that was interfering. Normally, a run would just drop into the simulator, but something seems to go wrong now.

@paulmelis
Copy link
Contributor Author

I did ship Device.Name in v0.3.7-preview.8. Does that satisfy the need here?

Not directly related to StereoKit itself, but I see that on HoloLens 2 the Device.Name value is "Windows Mixed Reality" (and not something like "HoloLens 2"). Is that to be expected?

@maluoi
Copy link
Collaborator

maluoi commented Jan 17, 2023

Device.Name on UWP simulator might have a bug? I'll peek at that!

Device.Name is likely going to be somewhat generic on some runtimes! I don't believe I've seen WMR report anything else, but I think Oculus gives a bit more detail in this field.

OpenXR has always been about reporting capabilities and not platforms, so it could be a somewhat philosophical decision on their part to not be more specific!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants