unity-game-engine - 进入播放模式时 Unity 崩溃 - Unity XR VR

标签 unity-game-engine crash oculus unity-xr

进入播放模式时 Unity 崩溃。

  • 如果我的 Quest 2 连接到 Unity,则不会发生这种情况
  • 我使用 Open/Oculuus XR 插件
  • 我使用示例 Controller 示例和一些自定义代码
  • 附加到此,您可能会找到输入

大家有类似的问题吗?如何最好地调试这个错误?它可能与在未连接时查找设备有关,但我找不到任何东西。

[..]
[00:00:05] Finished 1 Bake Runtime job (0.24s execute, 0.00s integrate, 0.25s wallclock)
[Optix] Number of Devices = 1
[Optix] context local device 0: NVIDIA GeForce RTX 3060 Laptop GPU - 6143MB VRAM (available: 4638MB)
[Optix] successfully set up context.
[Optix] removing context.
[00:00:08] Bake took 3.195458 seconds.
[PathTracer] Loaded OpenRL shaders in 3.234 secs -> Timestamps: [76.772 - 80.006].
[PathTracer] Total bake time: 0.021025, raw bake time: 0.000000
[00:00:12] Builtin Sky manager started.
[00:00:12] Finished 1 Bake Ambient Probe job (0.01s execute, 0.00s integrate, 0.25s wallclock)
[00:00:13] LightingDataAsset started.
> Collecting Enlighten data
Asset Pipeline Refresh: Total: 0.065 seconds - Initiated by RefreshV2(AllowForceSynchronousImport)
[OVRPlugin][INFO] UnityPluginLoad calledTrimDiskCacheJob: Current cache size 10mb
Asset Pipeline Refresh: Total: 0.016 seconds - Initiated by RefreshV2(AllowForceSynchronousImport)
C:\build\output\Unity-Technologies\mono\mono\eglib\gpath.c:115: assertion 'filename != NULL' failed

Asset Pipeline Refresh: Total: 0.013 seconds - Initiated by RefreshV2(AllowForceSynchronousImport)
Asset Pipeline Refresh: Total: 0.064 seconds - Initiated by RefreshV2(AllowForceSynchronousImport)
Asset Pipeline Refresh: Total: 0.062 seconds - Initiated by RefreshV2(AllowForceSynchronousImport)
Asset Pipeline Refresh: Total: 0.016 seconds - Initiated by RefreshV2(AllowForceSynchronousImport)
Reloading assemblies for play mode.
Registering precompiled user dll's ...
Registered in 0.044125 seconds.
Reloading assemblies after forced synchronous recompile.
Begin MonoManager ReloadAssembly
Symbol file LoadedFromMemory doesn't match image C:\SaltyVR\Library\PackageCache\<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="31525e5c1f445f5845481f47584244505d425243584145585f5671001f061f09" rel="noreferrer noopener nofollow">[email protected]</a>\Editor\VisualScripting.Core\Dependencies\DotNetZip\Unity.VisualScripting.IonicZip.dll
Symbol file LoadedFromMemory doesn't match image C:\SaltyVR\Library\PackageCache\<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="bcdfd3d192c9d2d5c8c592cad5cfc9ddd0cfdfced5ccc8d5d2dbfc8d928b9284" rel="noreferrer noopener nofollow">[email protected]</a>\Editor\VisualScripting.Core\Dependencies\YamlDotNet\Unity.VisualScripting.YamlDotNet.dll
Native extension for WindowsStandalone target not found
Native extension for Android target not found
Refreshing native plugins compatible for Editor in 427.77 ms, found 19 plugins.
Preloading 1 native plugins for Editor in 0.41 ms.
[MODES] ModeService[none].Initialize
[MODES] ModeService[none].LoadModes
[MODES] Loading mode Default (0) for mode-current-id-Salty VR
Mono: successfully reloaded assembly
- Completed reload, in  6.759 seconds
Domain Reload Profiling:
    ReloadAssembly (6761ms)
        BeginReloadAssembly (3400ms)
            ExecutionOrderSort (2ms)
            DisableScriptedObjects (129ms)
            BackupInstance (0ms)
            ReleaseScriptingObjects (2ms)
            CreateAndSetChildDomain (537ms)
        EndReloadAssembly (3277ms)
            LoadAssemblies (3048ms)
            RebuildTransferFunctionScriptingTraits (1ms)
            SetupTypeCache (304ms)
            ReleaseScriptCaches (7ms)
            RebuildScriptCaches (108ms)
            SetupLoadedEditorAssemblies (1516ms)
                LogAssemblyErrors (0ms)
                InitializePlatformSupportModulesInManaged (14ms)
                SetLoadedEditorAssemblies (0ms)
                RefreshPlugins (428ms)
                BeforeProcessingInitializeOnLoad (185ms)
                ProcessInitializeOnLoadAttributes (768ms)
                ProcessInitializeOnLoadMethodAttributes (115ms)
                AfterProcessingInitializeOnLoad (4ms)
                EditorAssembliesLoaded (1ms)
            ExecutionOrderSort2 (0ms)
            AwakeInstancesAfterBackupRestoration (574ms)
Platform modules already initialized, skipping
Registering precompiled user dll's ...
Registered in 0.008288 seconds.
Asset Pipeline Refresh: Total: 8.204 seconds - Initiated by StopAssetImportingV2(ForceSynchronousImport | ForceDomainReload)
    Summary:
        Imports: total=0 (actual=0, local cache=0, cache server=0)
        Asset DB Process Time: managed=0 ms, native=1188 ms
        Asset DB Callback time: managed=26 ms, native=0 ms
        Scripting: domain reloads=1, domain reload time=6984 ms, compile time=4 ms, other=0 ms
        Project Asset Count: scripts=10869, non-scripts=5325
        Asset File Changes: new=0, changed=0, moved=0, deleted=0
        Scan Filter Count: 0
    InvokeBeforeRefreshCallbacks: 0.290ms
    ApplyChangesToAssetFolders: 0.071ms
    Scan: 0.000ms
    OnSourceAssetsModified: 0.000ms
    InitializeImportedAssetsSnapshot: 97.279ms
    GetAllGuidsForCategorization: 64.443ms
    CategorizeAssets: 863.487ms
    ImportOutOfDateAssets: 7011.450ms (7001.179ms without children)
        CompileScripts: 3.970ms
        EnsureUptoDateAssetsAreRegisteredWithGuidPM: 3.344ms
        InitializingProgressBar: 0.002ms
        PostProcessAllAssetNotificationsAddChangedAssets: 1.696ms
        OnDemandSchedulerStart: 1.260ms
    ReloadSourceAssets: 10.377ms
    UnloadImportedAssets: 3.795ms
    PostProcessAllAssets: 26.456ms
    GatherAllCurrentPrimaryArtifactRevisions: 0.625ms
    UnloadStreamsBegin: 0.097ms
    LoadedImportedAssetsSnapshotReleaseGCHandles: 3.789ms
    GetLoadedSourceAssetsSnapshot: 15.991ms
    PersistCurrentRevisions: 0.607ms
    UnloadStreamsEnd: 0.100ms
    GenerateScriptTypeHashes: 24.137ms
    Untracked: 131.541ms
The referenced script (Unknown) on this Behaviour is missing!
The referenced script on this Behaviour (Game Object '--- WeaponScripts') is missing!
[Subsystems] OculusXRPlugin successfully registered Provider for oculus input
[Subsystems] OculusXRPlugin successfully registered Provider for oculus display
[Subsystems] OpenXR XR Plugin successfully registered Provider for OpenXR Display
[Subsystems] OculusXRPlugin successfully registered Provider for oculus input
[Subsystems] OculusXRPlugin successfully registered Provider for oculus display
[Subsystems] OpenXR XR Plugin successfully registered Provider for OpenXR Input
[Subsystems] OpenXR XR Plugin successfully registered Provider for OpenXR Display
[OculusXRFeature] HookGetInstanceProcAddr: 140733545404274
UnityEngine.StackTraceUtility:ExtractStackTrace ()
UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
UnityEngine.Logger:Log (UnityEngine.LogType,object)
UnityEngine.Debug:Log (object)
Oculus.XR.OculusXRFeature:HookGetInstanceProcAddr (intptr) (at Assets/Oculus/VR/Scripts/OculusXRFeature.cs:118)
UnityEngine.XR.OpenXR.Features.OpenXRFeature:HookGetInstanceProcAddr () (at Library/PackageCache/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="187b7775366d76716c6136606a3677687d76606a5829362c362a" rel="noreferrer noopener nofollow">[email protected]</a>/Runtime/Features/OpenXRFeature.cs:676)
UnityEngine.XR.OpenXR.OpenXRLoaderBase:InitializeInternal () (at Library/PackageCache/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6704080a4912090e131e491f1549081702091f15275649534955" rel="noreferrer noopener nofollow">[email protected]</a>/Runtime/OpenXRLoader.cs:225)
UnityEngine.XR.OpenXR.OpenXRLoaderBase:Initialize () (at Library/PackageCache/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="cdaea2a0e3b8a3a4b9b4e3b5bfe3a2bda8a3b5bf8dfce3f9e3ff" rel="noreferrer noopener nofollow">[email protected]</a>/Runtime/OpenXRLoader.cs:183)
UnityEngine.XR.Management.XRManagerSettings:InitializeLoaderSync () (at Library/PackageCache/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6c0f030142190205181542141e42010d020d0b09010902182c58425e425d" rel="noreferrer noopener nofollow">[email protected]</a>/Runtime/XRManagerSettings.cs:190)
UnityEngine.XR.Management.XRGeneralSettings:InitXRSDK () (at Library/PackageCache/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e0838f8dce958e899499ce9892ce8d818e8187858d858e94a0d4ced2ced1" rel="noreferrer noopener nofollow">[email protected]</a>/Runtime/XRGeneralSettings.cs:175)
UnityEngine.XR.Management.XRGeneralSettings:AttemptInitializeXRSDKOnLoad () (at Library/PackageCache/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5e3d3133702b30372a2770262c70333f303f393b333b302a1e6a706c706f" rel="noreferrer noopener nofollow">[email protected]</a>/Runtime/XRGeneralSettings.cs:148)

(Filename: Assets/Oculus/VR/Scripts/OculusXRFeature.cs Line: 118)

[OculusXRFeature] SetClientVersion
UnityEngine.StackTraceUtility:ExtractStackTrace ()
UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
UnityEngine.Logger:Log (UnityEngine.LogType,object)
UnityEngine.Debug:Log (object)
Oculus.XR.OculusXRFeature:HookGetInstanceProcAddr (intptr) (at Assets/Oculus/VR/Scripts/OculusXRFeature.cs:120)
UnityEngine.XR.OpenXR.Features.OpenXRFeature:HookGetInstanceProcAddr () (at Library/PackageCache/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="32515d5f1c475c5b464b1c4a401c5d42575c4a4072031c061c00" rel="noreferrer noopener nofollow">[email protected]</a>/Runtime/Features/OpenXRFeature.cs:676)
UnityEngine.XR.OpenXR.OpenXRLoaderBase:InitializeInternal () (at Library/PackageCache/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="44272b296a312a2d303d6a3c366a2b34212a3c3604756a706a76" rel="noreferrer noopener nofollow">[email protected]</a>/Runtime/OpenXRLoader.cs:225)
UnityEngine.XR.OpenXR.OpenXRLoaderBase:Initialize () (at Library/PackageCache/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d0b3bfbdfea5beb9a4a9fea8a2febfa0b5bea8a290e1fee4fee2" rel="noreferrer noopener nofollow">[email protected]</a>/Runtime/OpenXRLoader.cs:183)
UnityEngine.XR.Management.XRManagerSettings:InitializeLoaderSync () (at Library/PackageCache/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c9aaa6a4e7bca7a0bdb0e7b1bbe7a4a8a7a8aeaca4aca7bd89fde7fbe7f8" rel="noreferrer noopener nofollow">[email protected]</a>/Runtime/XRManagerSettings.cs:190)
UnityEngine.XR.Management.XRGeneralSettings:InitXRSDK () (at Library/PackageCache/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="9af9f5f7b4eff4f3eee3b4e2e8b4f7fbf4fbfdfff7fff4eedaaeb4a8b4ab" rel="noreferrer noopener nofollow">[email protected]</a>/Runtime/XRGeneralSettings.cs:175)
UnityEngine.XR.Management.XRGeneralSettings:AttemptInitializeXRSDKOnLoad () (at Library/PackageCache/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="21424e4c0f544f4855580f59530f4c404f4046444c444f5561150f130f10" rel="noreferrer noopener nofollow">[email protected]</a>/Runtime/XRGeneralSettings.cs:148)

(Filename: Assets/Oculus/VR/Scripts/OculusXRFeature.cs Line: 120)

[OVRPlugin][INFO] UnityOpenXR_SetClientVersion(1, 79, 0) called[OVRPlugin][INFO] ovrp_UnityOpenXR_HookGetInstanceProcAddr(00007FFF14FB5772)[OVRPlugin][INFO] CompositorOpenXR::PreInitialize(activity = 0000000000000000, apiType = 0, preinitializeFlags=0x1)[OVRPlugin][INFO]  -- Set xrGetInstanceProcAddr to external function pointer[OVRPlugin][INFO] Available Layers: (0)[OVRPlugin][INFO] Preinitialize: xrCreateInstance() succeeded[OVRPlugin][ERROR] [XRCMD][failure] [XR_ERROR_FORM_FACTOR_UNAVAILABLE]: xrGetSystem(instance, &systemGetInfo, &systemId), arvr\projects\integrations\ovrplugin\src\util\compositoropenxr.cpp:1332 (arvr\projects\integrations\ovrplugin\src\util\compositoropenxr.h:230)[OVRPlugin][INFO] xrGetSystem() failed, which might be caused by a temporarly HMD connectivity issue. xrInstance to be destroyed[OVRPlugin][ERROR] CompositorOpenXR::PreInitialize() returns failure (arvr\projects\integrations\ovrplugin\src\ovr_plugin_unityopenxr.cpp:59)[OVRPlugin][INFO] ProfilerSystem: verbose mode 0[OVRPlugin][INFO] OVRPlugin 1.79.0 ... preinitialized[OVRPlugin][INFO] Func_xrGetInstanceProcAddr: override xrCreateInstance[Subsystems] Loading plugin UnityOpenXR for subsystem OpenXR Display...
[XR] [26944] [10:56:36.841][Info   ] Available Layers: (0)
[OVRPlugin][INFO] Func_xrCreateInstance(0000026499CCCB28)[OVRPlugin][INFO] Unity Requested Extensions (18):[OVRPlugin][INFO]   Name=XR_EXT_hand_tracking[OVRPlugin][INFO]   Name=XR_FB_color_space[OVRPlugin][INFO]   Name=XR_FB_display_refresh_rate[OVRPlugin][INFO]   Name=XR_FB_hand_tracking_aim[OVRPlugin][INFO]   Name=XR_FB_hand_tracking_capsules[OVRPlugin][INFO]   Name=XR_FB_hand_tracking_mesh[OVRPlugin][INFO]   Name=XR_FB_touch_controller_pro[OVRPlugin][INFO]   Name=XR_KHR_D3D11_enable[OVRPlugin][INFO]   Name=XR_KHR_composition_layer_color_scale_bias[OVRPlugin][INFO]   Name=XR_KHR_composition_layer_cube[OVRPlugin][INFO]   Name=XR_KHR_composition_layer_cylinder[OVRPlugin][INFO]   Name=XR_KHR_composition_layer_depth[OVRPlugin][INFO]   Name=XR_KHR_convert_timespec_time[OVRPlugin][INFO]   Name=XR_KHR_visibility_mask[OVRPlugin][INFO]   Name=XR_KHR_vulkan_enable[OVRPlugin][INFO]   Name=XR_KHR_win32_convert_performance_counter_time[OVRPlugin][INFO]   Name=XR_META_performance_metrics[OVRPlugin][INFO]   Name=XR_OCULUS_audio_device_guid[OVRPlugin][INFO] Unavailable OpenXR extension: XR_KHR_D3D12_enable[OVRPlugin][INFO] Unavailable OpenXR extension: XR_EXT_performance_settings[OVRPlugin][INFO] Unavailable OpenXR extension: XR_FB_swapchain_update_state[OVRPlugin][INFO] Unavailable OpenXR extension: XR_FB_swapchain_update_state_vulkan[OVRPlugin][INFO] Unavailable OpenXR extension: XR_FB_foveation[OVRPlugin][INFO] Unavailable OpenXR extension: XR_FB_foveation_configuration[OVRPlugin][INFO] Unavailable OpenXR extension: XR_FB_foveation_vulkan[OVRPlugin][INFO] Unavailable OpenXR extension: XR_META_vulkan_swapchain_create_info[OVRPlugin][INFO] Unavailable OpenXR extension: XR_META_foveation_eye_tracked[OVRPlugin][INFO] Unavailable OpenXR extension: XR_KHR_composition_layer_equirect2[OVRPlugin][INFO] Unavailable OpenXR extension: XR_FB_passthrough[OVRPlugin][INFO] Unavailable OpenXR extension: XR_FB_triangle_mesh[OVRPlugin][INFO] Unavailable OpenXR extension: XR_FB_passthrough_keyboard_hands[OVRPlugin][INFO] Unavailable OpenXR extension: XR_FB_render_model[OVRPlugin][INFO] Unavailable OpenXR extension: XR_FB_keyboard_tracking[OVRPlugin][INFO] Unavailable OpenXR extension: XR_FB_scene[OVRPlugin][INFO] Unavailable OpenXR extension: XR_FB_spatial_entity[OVRPlugin][INFO] Unavailable OpenXR extension: XR_FB_spatial_entity_container[OVRPlugin][INFO] Unavailable OpenXR extension: XR_FB_spatial_entity_query[OVRPlugin][INFO] Unavailable OpenXR extension: XR_FB_spatial_entity_storage[OVRPlugin][INFO] Unavailable OpenXR extension: XR_FB_spatial_entity_storage_batch[OVRPlugin][INFO] Unavailable OpenXR extension: XR_FB_spatial_entity_sharing[OVRPlugin][INFO] Unavailable OpenXR extension: XR_FB_spatial_entity_user[OVRPlugin][INFO] Unavailable OpenXR extension: XR_FB_face_tracking[OVRPlugin][INFO] Unavailable OpenXR extension: XR_FB_eye_tracking_social[OVRPlugin][INFO] Unavailable OpenXR extension: XR_FB_body_tracking[OVRPlugin][INFO] Unavailable OpenXR extension: XR_FB_touch_controller_proximity[OVRPlugin][INFO] Unavailable OpenXR extension: XR_FB_haptic_amplitude_envelope[OVRPlugin][INFO] Unavailable OpenXR extension: XR_FB_haptic_pcm[OVRPlugin][INFO] Func_xrGetInstanceProcAddr: override xrPollEvent[OVRPlugin][INFO] Func_xrGetInstanceProcAddr: override xrWaitFrame[OVRPlugin][INFO] Func_xrGetInstanceProcAddr: override xrBeginFrame[OVRPlugin][INFO] Func_xrGetInstanceProcAddr: override xrEndFrame[OVRPlugin][INFO] Func_xrGetInstanceProcAddr: override xrSuggestInteractionProfileBindings[OVRPlugin][INFO] Func_xrGetInstanceProcAddr: override xrAttachSessionActionSets[OVRPlugin][INFO] Func_xrGetInstanceProcAddr: override xrSyncActions[OculusXRFeature] OnInstanceCreate: 17454747090945
UnityEngine.StackTraceUtility:ExtractStackTrace ()
UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
UnityEngine.Logger:Log (UnityEngine.LogType,object)
UnityEngine.Debug:Log (object)
Oculus.XR.OculusXRFeature:OnInstanceCreate (ulong) (at Assets/Oculus/VR/Scripts/OculusXRFeature.cs:130)
UnityEngine.XR.OpenXR.Features.OpenXRFeature:ReceiveNativeEvent (UnityEngine.XR.OpenXR.Features.OpenXRFeature/NativeEvent,ulong) (at Library/PackageCache/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ec8f8381c29982859895c2949ec2839c8982949eacddc2d8c2de" rel="noreferrer noopener nofollow">[email protected]</a>/Runtime/Features/OpenXRFeature.cs:610)
UnityEngine.XR.OpenXR.OpenXRLoaderBase:ReceiveNativeEvent (UnityEngine.XR.OpenXR.Features.OpenXRFeature/NativeEvent,ulong) (at Library/PackageCache/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5f3c3032712a31362b2671272d71302f3a31272d1f6e716b716d" rel="noreferrer noopener nofollow">[email protected]</a>/Runtime/OpenXRLoader.cs:616)
UnityEngine.IntegratedSubsystemDescriptor`1<UnityEngine.XR.XRDisplaySubsystem>:Create ()
UnityEngine.IntegratedSubsystemDescriptor`1<UnityEngine.XR.XRDisplaySubsystem>:CreateImpl ()
UnityEngine.IntegratedSubsystemDescriptor:UnityEngine.ISubsystemDescriptor.Create ()
UnityEngine.XR.Management.XRLoaderHelper:CreateSubsystem<UnityEngine.XR.XRDisplaySubsystemDescriptor, UnityEngine.XR.XRDisplaySubsystem> (System.Collections.Generic.List`1<UnityEngine.XR.XRDisplaySubsystemDescriptor>,string) (at Library/PackageCache/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0a696567247f64637e7324727824676b646b6d6f676f647e4a3e2438243b" rel="noreferrer noopener nofollow">[email protected]</a>/Runtime/XRLoaderHelper.cs:118)
UnityEngine.XR.OpenXR.OpenXRLoaderBase:CreateSubsystem<UnityEngine.XR.XRDisplaySubsystemDescriptor, UnityEngine.XR.XRDisplaySubsystem> (System.Collections.Generic.List`1<UnityEngine.XR.XRDisplaySubsystemDescriptor>,string) (at Library/PackageCache/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0764686a2972696e737e297f7529687762697f75473629332935" rel="noreferrer noopener nofollow">[email protected]</a>/Runtime/OpenXRLoader.cs:476)
UnityEngine.XR.OpenXR.OpenXRLoaderBase:CreateSubsystems () (at Library/PackageCache/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="03606c6e2d766d6a777a2d7b712d6c73666d7b7143322d372d31" rel="noreferrer noopener nofollow">[email protected]</a>/Runtime/OpenXRLoader.cs:264)
UnityEngine.XR.OpenXR.OpenXRLoaderBase:InitializeInternal () (at Library/PackageCache/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a7c4c8ca89d2c9ced3de89dfd589c8d7c2c9dfd5e79689938995" rel="noreferrer noopener nofollow">[email protected]</a>/Runtime/OpenXRLoader.cs:237)
UnityEngine.XR.OpenXR.OpenXRLoaderBase:Initialize () (at Library/PackageCache/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="781b1715560d16110c0156000a5617081d16000a3849564c564a" rel="noreferrer noopener nofollow">[email protected]</a>/Runtime/OpenXRLoader.cs:183)
UnityEngine.XR.Management.XRManagerSettings:InitializeLoaderSync () (at Library/PackageCache/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c8aba7a5e6bda6a1bcb1e6b0bae6a5a9a6a9afada5ada6bc88fce6fae6f9" rel="noreferrer noopener nofollow">[email protected]</a>/Runtime/XRManagerSettings.cs:190)
UnityEngine.XR.Management.XRGeneralSettings:InitXRSDK () (at Library/PackageCache/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="62010d0f4c170c0b161b4c1a104c0f030c0305070f070c1622564c504c53" rel="noreferrer noopener nofollow">[email protected]</a>/Runtime/XRGeneralSettings.cs:175)
UnityEngine.XR.Management.XRGeneralSettings:AttemptInitializeXRSDKOnLoad () (at Library/PackageCache/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e88b8785c69d86819c91c6909ac6858986898f8d858d869ca8dcc6dac6d9" rel="noreferrer noopener nofollow">[email protected]</a>/Runtime/XRGeneralSettings.cs:148)

(Filename: Assets/Oculus/VR/Scripts/OculusXRFeature.cs Line: 130)

[OVRPlugin][INFO] ovrp_UnityOpenXR_OnInstanceCreate(17454747090945)[OVRPlugin][INFO] Use D3D11 Renderer[OVRPlugin][INFO] OpenXR SDK version 1.0.22[OVRPlugin][INFO] Warning: unable to bind OpenXR entry xrGetD3D12GraphicsRequirementsKHR[OVRPlugin][INFO] OpenXR runtime name: Oculus, version 1.81.0[OVRPlugin][ERROR] [XRCMD][failure] [XR_ERROR_FORM_FACTOR_UNAVAILABLE]: xrGetSystem(instance, &systemGetInfo, &systemId), arvr\projects\integrations\ovrplugin\src\util\compositoropenxr.cpp:2199 (arvr\projects\integrations\ovrplugin\src\util\compositoropenxr.h:230)[OVRPlugin][INFO] xrGetSystem() failed, which might be caused by a temporarly HMD connectivity issue. xrInstance to be destroyed[OVRPlugin][ERROR] Plugin failed to initialize. (arvr\projects\integrations\ovrplugin\src\util\compositoropenxr.cpp:1049)[OVRPlugin][ERROR] Unable to create compositor: -1006 (arvr\projects\integrations\ovrplugin\src\ovr_plugin_unityopenxr.cpp:160)
=================================================================
    Native Crash Reporting
=================================================================
Got a UNKNOWN while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

=================================================================
    Managed Stacktrace:
=================================================================
      at <unknown> <0xffffffff>
      at UnityEngine.SubsystemDescriptorBindings:Create <0x000e0>
      at UnityEngine.IntegratedSubsystemDescriptor`1:Create <0x000a2>
      at UnityEngine.IntegratedSubsystemDescriptor`1:CreateImpl <0x0008a>
      at UnityEngine.IntegratedSubsystemDescriptor:UnityEngine.ISubsystemDescriptor.Create <0x0006c>
      at UnityEngine.XR.Management.XRLoaderHelper:CreateSubsystem <0x00509>
      at UnityEngine.XR.OpenXR.OpenXRLoaderBase:CreateSubsystem <0x000ca>
      at UnityEngine.XR.OpenXR.OpenXRLoaderBase:CreateSubsystems <0x0013a>
      at UnityEngine.XR.OpenXR.OpenXRLoaderBase:InitializeInternal <0x00992>
      at UnityEngine.XR.OpenXR.OpenXRLoaderBase:Initialize <0x004ba>
      at UnityEngine.XR.Management.XRManagerSettings:InitializeLoaderSync <0x003f2>
      at UnityEngine.XR.Management.XRGeneralSettings:InitXRSDK <0x0037a>
      at UnityEngine.XR.Management.XRGeneralSettings:AttemptInitializeXRSDKOnLoad <0x0019a>
      at System.Object:runtime_invoke_void <0x00184>
=================================================================
Received signal SIGSEGV
Obtained 2 stack frames
RtlLookupFunctionEntry returned NULL function. Aborting stack walk.
<Missing stacktrace information>

感谢您的帮助:) 法比安干杯

最佳答案

我找到了一种无需连接眼镜即可在编辑器中进行测试的解决方法。仅在编辑器中进行测试时,在 XR 插件管理中禁用“启动时初始化 XR”。

enter image description here

关于unity-game-engine - 进入播放模式时 Unity 崩溃 - Unity XR VR,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75397834/

相关文章:

android - Unity 添加 admob 插件后无法构建应用程序

unity-game-engine - 团结 : Prefab parenting in code

javascript - krpano项目无法进入VR模式

javascript - Unity3D AR 应用程序 WebGL 构建报告错误

javascript - 为 android 构建统一代码时出现问题

Android SQLite 数据库未填充

ios - 从应用商店更新时应用程序崩溃

debugging - 有没有办法在黑莓中以字符串的形式获取异常的堆栈跟踪?

c# - 将 Oculus Unity Integration 升级到 v12 后,传送无法在 Quest 上运行