MicrosoftEdge / WebView2Samples

Microsoft Edge WebView2 samples
830 stars 460 forks source link

Unity | HoloLens 2 - Application crashing at start #198

Closed Mt-Perazim closed 11 months ago

Mt-Perazim commented 1 year ago

Hello, I tried today the sample for UWP/HoloLens. The application crashed at the start. It runs until you see "Made by Unity" and crashes after that.

My Setup:

Steps to reproduce: I just followed the instructions from here. I cloned the repository, launched the Microsoft Mixed Reality Feature Tool, restored Features to load the required packages for the Mixed Reality Toolkit and the WebView2 plugin package, opened the project in unity, builded the project and deployed it the HoloLens.

champnic commented 12 months ago

@SamiraAtMicrosoft @michaelfarnsworth @JordanMandel

Mt-Perazim commented 11 months ago

Hello @champnic One week passed and I didnt hear from any of you. Will there be an update on this? Can someone confirm that this crash is not only happening on my side?

antoine-bodin commented 11 months ago

Hi, I experience the same behaviour. There is a system crash when trying to initialize WebView on a component.

My setup is the base HoloLens2GetStartedApp. Building it directly with no modification. WebView version 0.17.1-pre3 OS version 22621.1205

App crashes right away at start. OS logs:

ActivityId:{00000000-0000-0000-0000-000000000000} AppName:"MyApp.exe" AppPath:"C:\\data\\Programs\\WindowsApps\\MyApp_2.0.32.0_arm64__pvyyvs4hwf7pw\\MyApp.exe" AppTimeStamp:"64ae6dd7" AppVersion:"0.0.0.0" ExceptionCode:"e06d7363" FaultingOffset:"000000000005df00" IntegratorReportId:"b45f2f70-6e38-4c6a-bc32-0a25ca16a17a" Message:Failed to format message ModuleName:"KERNELBASE.dll" ModulePath:"C:\\windows\\System32\\KERNELBASE.dll" ModuleTimeStamp:"9c531d16" ModuleVersion:"10.0.22621.1113" PackageFullName:"MyApp_2.0.32.0_arm64__pvyyvs4hwf7pw" PackageRelativeAppId:"App" ProcessCreationTime:133336266765905429 RelatedActivityId:{00000000-0000-0000-0000-000000000000}

champnic commented 11 months ago

@Mt-Perazim I've just pinged those folks again to see if they are able to help here.

michaelfarnsworth commented 11 months ago

@Mt-Perazim could you check what error you're getting the Unity log file? You can access it from the Device Portal. From the Device Portal, navigate to System > File Explore > LocalAppData > {your-app-id} > TempState > UnityPlayer.log.

antoine-bodin commented 11 months ago

On my end the crash is not visible in Unity log file. Usually happens when an exception is thrown by unsafe or unmanaged code within Unity app's context. Attached is log file (nothing much to see ^^) UnityPlayer (18).log

Crash occurs when Webview.cs monobehaviour gets started, only on ARM64 built release version on Hololens 2 with SDK 10.0.22621. Works perfectly fine in Editor.

michaelfarnsworth commented 11 months ago

@antoine-bodin if you launch the app remotely with Visual Studio, you should be able to see the exception.

antoine-bodin commented 11 months ago

@michaelfarnsworth you are right, here are the details of the exception when running remotely from VS:

Exception raised at 0x00007FF856AADF00 in WebView2HoloLensSample.exe : exception Microsoft C++ : winrt::hresult_error at location 0x0000005A1A4FED50.

Thrown in method IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR intptr_t WebViewNative_SetWebViewSize_mB4AF0A2F3E2E54B49B3E0F0B78B49ED9FA14EA80 (intptr_t ___0_instanceId, int32_t ___1_w, int32_t ___2_h, const RuntimeMethod* method)

Capture d'écran 2023-07-13 153017

What additional info could be relevant here ?

michaelfarnsworth commented 11 months ago

@antoine-bodin I suspect you're hitting a timing issue, that we appear to already have a local fix for. I'll see about getting an updated version of the plugin published.

michaelfarnsworth commented 11 months ago

@antoine-bodin we've published an updated version of the WebView2 plugin (0.17.1-pre.5). Could you give it a try to see if it resolves the issue you're hitting?

Mt-Perazim commented 11 months ago

@michaelfarnsworth Here is the log:

Logging to C:/Data/Users/micro/AppData/Local/Packages/WebView2HoloLensSample_ph1m9x8skttmg/TempState/UnityPlayer.log
Loading native plugins
  Loading Microsoft.Web.WebView2.Core.dll
  Loading openxr_loader.dll
  Loading WebView2Loader.dll
  Loading MicrosoftWebViewUnityPlugin.dll
Module information:
 Built with Compiler Ver '192829333'
 Built from '2021.3/staging' branch
 Version is '2021.3.24f1 (cf10dcf7010d)'
 Release build
 Application type 'XRXAML'
 OS 'Windows 11 (10.0.22621) 64bit'
Found 2 interfaces on host : 0) 192.168.178.97 1) 127.0.0.1
Multi-casting "[IP] 192.168.178.97 [Port] 55000 [Flags] 2 [Guid] 923610466 [EditorId] 0 [Version] 1048832 [Id] UWPPlayerARM(20,HOLOLENS-17L30G) [Debug] 0 [PackageName] WebView2HoloLensSample_ph1m9x8skttmg [ProjectName] <no name>" to [225.0.0.222:54997]...
[XamlViewManager] SwitchToView OnCompleted callback status : 1
[Subsystems] Discovering subsystems at path C:/data/Programs/WindowsApps/WebView2HoloLensSample_1.0.0.0_arm64__ph1m9x8skttmg/Data/UnitySubsystems
[Subsystems] No descriptors matched for  examples in UnitySubsystems/MicrosoftOpenXRPlugin/UnitySubsystemsManifest.json.
[Subsystems] 1 'inputs' descriptors matched in UnitySubsystems/MicrosoftOpenXRPlugin/UnitySubsystemsManifest.json
[Subsystems] No descriptors matched for  displays in UnitySubsystems/MicrosoftOpenXRPlugin/UnitySubsystemsManifest.json.
[Subsystems] 1 'meshings' descriptors matched in UnitySubsystems/MicrosoftOpenXRPlugin/UnitySubsystemsManifest.json
[Subsystems] No descriptors matched for  examples in UnitySubsystems/UnityOpenXR/UnitySubsystemsManifest.json.
[Subsystems] 1 'inputs' descriptors matched in UnitySubsystems/UnityOpenXR/UnitySubsystemsManifest.json
[Subsystems] 1 'displays' descriptors matched in UnitySubsystems/UnityOpenXR/UnitySubsystemsManifest.json
[Subsystems] No descriptors matched for  meshings in UnitySubsystems/UnityOpenXR/UnitySubsystemsManifest.json.
GfxDevice: creating device client; threaded=1; jobified=0
[XR] [7932] [04:22:40.017][Info   ] Available Layers: (0)
Direct3D:
    Version:  Direct3D 11.0 [level 11.1]
    Renderer: Qualcomm(R) Adreno(TM) 630 GPU (ID=0x45373230)
    Vendor:   Qualcomm
    VRAM:     1932 MB
Initialize engine version: 2021.3.24f1 (cf10dcf7010d)
XRGeneral Settings awakening...
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
UnityEngine.XR.Management.XRGeneralSettings:Awake()

[Subsystems] Loading plugin UnityOpenXR for subsystem OpenXR Display...
[Subsystems] OpenXR XR Plugin successfully registered Provider for OpenXR Display
[Subsystems] OpenXR XR Plugin successfully registered Provider for OpenXR Input
[Subsystems] OpenXR XR Plugin successfully registered Provider for OpenXR Display
[XR] [7932] [04:22:42.103][Info   ] Available Layers: (0)
[Subsystems] Loading plugin UnityOpenXR for subsystem OpenXR Input...
[Subsystems] Loading plugin MicrosoftOpenXRPlugin for subsystem OpenXR Input Extension...
[Subsystems] OpenXR Extension successfully registered Provider for OpenXR Mesh Extension
[Subsystems] OpenXR XR Plugin successfully registered Provider for OpenXR Input
[Subsystems] OpenXR XR Plugin successfully registered Provider for OpenXR Display
[XR] [MROpenXR][Info   ][04:22:42.136372][tid:1efc] MeshProvider_RegisterLifecycleProvider
[XR] [MROpenXR][Info   ][04:22:42.136372][tid:1efc] MeshProvider_RegisterLifecycleProvider
[Subsystems] OpenXR Extension successfully registered Provider for OpenXR Input Extension
[Subsystems] OpenXR Extension successfully registered Provider for OpenXR Mesh Extension
[Subsystems] OpenXR XR Plugin successfully registered Provider for OpenXR Input
[Subsystems] OpenXR XR Plugin successfully registered Provider for OpenXR Display
[XR] [MROpenXR][Info   ][04:22:42.136633][tid:1efc] InputProvider_RegisterLifecycleProvider
[XR] [MROpenXR][Info   ][04:22:42.136633][tid:1efc] InputProvider_RegisterLifecycleProvider
[XR] [MROpenXR][Info   ][04:22:42.136750][tid:1efc] InputProvider_LifecycleInitialize
[XR] [MROpenXR][Info   ][04:22:42.136750][tid:1efc] InputProvider_LifecycleInitialize
[Subsystems] Loading plugin MicrosoftOpenXRPlugin for subsystem OpenXR Mesh Extension...
[XR] [MROpenXR][Info   ][04:22:42.140481][tid:1efc] MeshProvider_LifecycleInitialize
[XR] [MROpenXR][Info   ][04:22:42.140481][tid:1efc] MeshProvider_LifecycleInitialize
New input system (experimental) initialized
[XR] [MROpenXR][Info   ][04:22:42.193957][tid:1efc] MicrosoftOpenXRPlugin_ReadHolographicWindowAttachment ReadSuccessfully=True
[XR] [MROpenXR][Info   ][04:22:42.193957][tid:1efc] MicrosoftOpenXRPlugin_ReadHolographicWindowAttachment ReadSuccessfully=True
[XR] [MROpenXR][Info   ][04:22:42.198984][tid:1d6c] SetHolographicWindowAttachment_SpatialInteractionManagerCreated interactionManager=0x18A22946040
[XR] [MROpenXR][Info   ][04:22:42.198984][tid:1d6c] SetHolographicWindowAttachment_SpatialInteractionManagerCreated interactionManager=0x18A22946040
[XR] [MROpenXR][Info   ][04:22:42.374357][tid:1efc] XrViewConfigurationSettings_OnXrSessionCreated SupportedViewConfigType=XR_VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO SupportedReprojectionModesCount=0
[XR] [MROpenXR][Info   ][04:22:42.374357][tid:1efc] XrViewConfigurationSettings_OnXrSessionCreated SupportedViewConfigType=XR_VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO SupportedReprojectionModesCount=0
[XR] [MROpenXR][Info   ][04:22:42.374507][tid:1efc] XrViewConfigurationSettings_OnXrSessionCreated SupportedViewConfigType=XR_VIEW_CONFIGURATION_TYPE_SECONDARY_MONO_FIRST_PERSON_OBSERVER_MSFT SupportedReprojectionModesCount=0
[XR] [MROpenXR][Info   ][04:22:42.374507][tid:1efc] XrViewConfigurationSettings_OnXrSessionCreated SupportedViewConfigType=XR_VIEW_CONFIGURATION_TYPE_SECONDARY_MONO_FIRST_PERSON_OBSERVER_MSFT SupportedReprojectionModesCount=0
[XR] [MROpenXR][Info   ][04:22:42.374593][tid:1efc] OnSessionCreated GraphicsAPI=XR_TYPE_GRAPHICS_BINDING_D3D11_KHR sessionCreationResult=XR_SUCCESS AppName=WebView2HoloLensSample AppVersion=0.1 AppMode=AppMode openXRRuntimeName=Windows Mixed Reality Runtime openXRRuntimeVersion=112.2211.2002 APIVersion=1.0.25 PartA_PrivTags=33554432
[XR] [MROpenXR][Info   ][04:22:42.374593][tid:1efc] OnSessionCreated GraphicsAPI=XR_TYPE_GRAPHICS_BINDING_D3D11_KHR sessionCreationResult=XR_SUCCESS AppName=WebView2HoloLensSample AppVersion=0.1 AppMode=AppMode openXRRuntimeName=Windows Mixed Reality Runtime openXRRuntimeVersion=112.2211.2002 APIVersion=1.0.25 PartA_PrivTags=33554432
[XR] [MROpenXR][Info   ][04:22:42.407388][tid:1efc] OpenXRContext_OnEvent_XrEventDataSessionStateChanged EventType=XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED session=2 sessionState=XR_SESSION_STATE_IDLE
[XR] [MROpenXR][Info   ][04:22:42.407388][tid:1efc] OpenXRContext_OnEvent_XrEventDataSessionStateChanged EventType=XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED session=2 sessionState=XR_SESSION_STATE_IDLE
[XR] [7932] [04:22:42.407][Info   ] OpenXRSession::HandleSessionStateChangedEvent: state XR_SESSION_STATE_UNKNOWN->XR_SESSION_STATE_IDLE session=2 time=183196816145
[XR] [MROpenXR][Info   ][04:22:42.407745][tid:1efc] OpenXRContext_OnEvent_XrEventDataSessionStateChanged EventType=XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED session=2 sessionState=XR_SESSION_STATE_READY
[XR] [MROpenXR][Info   ][04:22:42.407745][tid:1efc] OpenXRContext_OnEvent_XrEventDataSessionStateChanged EventType=XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED session=2 sessionState=XR_SESSION_STATE_READY
[XR] [7932] [04:22:42.407][Info   ] OpenXRSession::HandleSessionStateChangedEvent: state XR_SESSION_STATE_IDLE->XR_SESSION_STATE_READY session=2 time=183196832239
[XR] [MROpenXR][Info   ][04:22:42.409650][tid:1efc] ViewConfigurationSettings_PrimaryStereoEnabled
[XR] [MROpenXR][Info   ][04:22:42.409650][tid:1efc] ViewConfigurationSettings_PrimaryStereoEnabled
[XR] [MROpenXR][Info   ][04:22:42.409894][tid:1efc] ViewConfigurationSettings_OnSessionBegan_SecondaryBeginInfo EnabledSecondaryViewConfigurationCount=1
[XR] [MROpenXR][Info   ][04:22:42.409894][tid:1efc] ViewConfigurationSettings_OnSessionBegan_SecondaryBeginInfo EnabledSecondaryViewConfigurationCount=1
[XR] [MROpenXR][Info   ][04:22:42.409991][tid:1efc] ViewConfigurationSettings_OnSessionBegan_EnabledSecondaryViewConfiguration EnabledSecondaryViewConfiguration=XR_VIEW_CONFIGURATION_TYPE_SECONDARY_MONO_FIRST_PERSON_OBSERVER_MSFT
[XR] [MROpenXR][Info   ][04:22:42.409991][tid:1efc] ViewConfigurationSettings_OnSessionBegan_EnabledSecondaryViewConfiguration EnabledSecondaryViewConfiguration=XR_VIEW_CONFIGURATION_TYPE_SECONDARY_MONO_FIRST_PERSON_OBSERVER_MSFT
[XR] [MROpenXR][Info   ][04:22:42.410413][tid:1efc] LocatableCameraProvider_Registered
[XR] [MROpenXR][Info   ][04:22:42.410413][tid:1efc] LocatableCameraProvider_Registered
[XR] [MROpenXR][Info   ][04:22:42.448272][tid:1efc] SetSceneOriginSpace nativeToken=HandTracking oldSpace=0 newSpace=3
[XR] [MROpenXR][Info   ][04:22:42.448272][tid:1efc] SetSceneOriginSpace nativeToken=HandTracking oldSpace=0 newSpace=3
[XR] [MROpenXR][Info   ][04:22:42.448420][tid:1efc] SetSceneOriginSpace nativeToken=HoloLens oldSpace=0 newSpace=3
[XR] [MROpenXR][Info   ][04:22:42.448420][tid:1efc] SetSceneOriginSpace nativeToken=HoloLens oldSpace=0 newSpace=3
[XR] [MROpenXR][Info   ][04:22:42.448503][tid:1efc] SetSceneOriginSpace nativeToken=Controller oldSpace=0 newSpace=3
[XR] [MROpenXR][Info   ][04:22:42.448503][tid:1efc] SetSceneOriginSpace nativeToken=Controller oldSpace=0 newSpace=3
[XR] [MROpenXR][Verbose][04:22:42.448699][tid:1efc] MicrosoftOpenXRPlugin_OnSubsystemsStarting NativeLibToken=HandTracking
[XR] [MROpenXR][Info   ][04:22:42.448757][tid:1efc] InputProvider_LifecycleStart
[XR] [MROpenXR][Info   ][04:22:42.448757][tid:1efc] InputProvider_LifecycleStart
[XR] [MROpenXR][Verbose][04:22:42.449170][tid:1efc] MicrosoftOpenXRPlugin_OnSubsystemsStarting NativeLibToken=HoloLens
[XR] [MROpenXR][Verbose][04:22:42.449231][tid:1efc] MicrosoftOpenXRPlugin_OnSubsystemsStarting NativeLibToken=Controller
The referenced script (Unknown) on this Behaviour is missing!
The referenced script on this Behaviour (Game Object '<null>') is missing!
A scripted object (probably Microsoft.MixedReality.Toolkit.XRSDK.Oculus.Input.OculusXRSDKDeviceManagerProfile?) has a different serialization layout when loading. (Read 72 bytes but expected 108 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
XRTextureManager::RequestCreateTexture
XRTextureManager::RequestCreateTexture
XRTextureManager::SetupRenderTextureFromXRRequest (id: 1 col: 0000000000000000 d: 0000018AA58F69F0 sr: 0000000000000000)
RenderTexture::Create (id: 1)
IVRDeviceCallback_CreateEyeTextureResources 0000018AA58F69F0
XRTextureManager::SetupRenderTextureFromXRRequest (id: 2 col: 0000018AA58F4170 d: 0000000000000000 sr: 0000000000000000)
RenderTexture::Create (id: 2)
IVRDeviceCallback_CreateEyeTextureResources 0000018AA58F4170
[XR] [MROpenXR][Info   ][04:22:43.129063][tid:1efc] OpenXRContext_OnEvent_XrEventDataSessionStateChanged EventType=XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED session=2 sessionState=XR_SESSION_STATE_SYNCHRONIZED
[XR] [MROpenXR][Info   ][04:22:43.129063][tid:1efc] OpenXRContext_OnEvent_XrEventDataSessionStateChanged EventType=XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED session=2 sessionState=XR_SESSION_STATE_SYNCHRONIZED
[XR] [7932] [04:22:43.129][Info   ] OpenXRSession::HandleSessionStateChangedEvent: state XR_SESSION_STATE_READY->XR_SESSION_STATE_SYNCHRONIZED session=2 time=183932485677
[XR] [MROpenXR][Info   ][04:22:43.129364][tid:1efc] OpenXRContext_OnEvent_XrEventDataSessionStateChanged EventType=XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED session=2 sessionState=XR_SESSION_STATE_VISIBLE
[XR] [MROpenXR][Info   ][04:22:43.129364][tid:1efc] OpenXRContext_OnEvent_XrEventDataSessionStateChanged EventType=XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED session=2 sessionState=XR_SESSION_STATE_VISIBLE
[XR] [7932] [04:22:43.129][Info   ] OpenXRSession::HandleSessionStateChangedEvent: state XR_SESSION_STATE_SYNCHRONIZED->XR_SESSION_STATE_VISIBLE session=2 time=183932493958
[XR] [MROpenXR][Info   ][04:22:43.129530][tid:1efc] OpenXRContext_OnEvent_XrEventDataSessionStateChanged EventType=XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED session=2 sessionState=XR_SESSION_STATE_FOCUSED
[XR] [MROpenXR][Info   ][04:22:43.129530][tid:1efc] OpenXRContext_OnEvent_XrEventDataSessionStateChanged EventType=XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED session=2 sessionState=XR_SESSION_STATE_FOCUSED
[XR] [7932] [04:22:43.129][Info   ] OpenXRSession::HandleSessionStateChangedEvent: state XR_SESSION_STATE_VISIBLE->XR_SESSION_STATE_FOCUSED session=2 time=183932496510
[XR] [7932] [04:22:43.129][Info   ] 

==== Start Unity OpenXR Diagnostic Report ====

[XR] [7932] [04:22:43.129][Info   ] ==== Report Reason: System Startup Completed ====

[XR] [7932] [04:22:43.129][Info   ] ==== OpenXR Init Info ====
[XR] [7932] [04:22:43.129][Info   ] 
[XR] [7932] [04:22:43.129][Info   ] Stage 1 Missing Entry Points: (1)
[XR] [7932] [04:22:43.130][Info   ]   xrInitializeLoaderKHR
[XR] [7932] [04:22:43.130][Info   ] 
[XR] [7932] [04:22:43.130][Info   ] ==== OpenXR Provider Info ====
[XR] [7932] [04:22:43.130][Info   ] 
[XR] [7932] [04:22:43.130][Info   ] Spec Version: 1.0.25
[XR] [7932] [04:22:43.130][Info   ] Provider Version: 1.7.0
[XR] [7932] [04:22:43.130][Info   ] App: WebView2HoloLensSample #3159629941
[XR] [7932] [04:22:43.130][Info   ] Engine: 2021.3.24f1 #36799489
[XR] [7932] [04:22:43.130][Info   ] 
[XR] [7932] [04:22:43.130][Info   ] ==== OpenXR Runtime Info ====
[XR] [7932] [04:22:43.130][Info   ] 
[XR] [7932] [04:22:43.130][Info   ] Features requested to be enabled: (6)
[XR] [7932] [04:22:43.130][Info   ]   Eye Gaze Interaction Profile: Version=0.0.1, Company="Unity", Extensions="XR_EXT_eye_gaze_interaction"
[XR] [7932] [04:22:43.130][Info   ]   Hand Tracking: Version=1.8.0, Company="Microsoft", Extensions="XR_EXT_hand_tracking XR_EXT_hand_joints_motion_range XR_MSFT_hand_tracking_mesh"
[XR] [7932] [04:22:43.130][Info   ]   Microsoft Hand Interaction Profile: Version=0.0.1, Company="Unity", Extensions="XR_MSFT_hand_interaction"
[XR] [7932] [04:22:43.130][Info   ]   Microsoft Motion Controller Profile: Version=0.0.1, Company="Unity"
[XR] [7932] [04:22:43.130][Info   ]   Mixed Reality Features: Version=1.8.0, Company="Microsoft", Extensions="XR_MSFT_holographic_window_attachment XR_KHR_win32_convert_performance_counter_time XR_MSFT_unbounded_reference_space XR_MSFT_spatial_anchor XR_MSFT_secondary_view_configuration XR_MSFT_first_person_observer XR_MSFT_spatial_graph_bridge XR_MSFT_perception_anchor_interop XR_MSFT_spatial_anchor_persistence XR_MSFT_scene_understanding XR_MSFT_scene_understanding_serialization XR_MSFT_spatial_anchor_export_preview XR_MSFT_composition_layer_reprojection"
[XR] [7932] [04:22:43.130][Info   ]   Motion Controller Model: Version=1.8.0, Company="Microsoft", Extensions="XR_MSFT_controller_model XR_FB_render_model"
[XR] [7932] [04:22:43.130][Info   ] 
[XR] [7932] [04:22:43.131][Info   ] Requested feature extensions not supported by runtime: (3)
[XR] [7932] [04:22:43.131][Info   ]   XR_MSFT_spatial_anchor_export_preview: Feature="Mixed Reality Features": Version=1.8.0, Company="Microsoft"
[XR] [7932] [04:22:43.131][Info   ]   XR_MSFT_controller_model: Feature="Motion Controller Model": Version=1.8.0, Company="Microsoft"
[XR] [7932] [04:22:43.131][Info   ]   XR_FB_render_model: Feature="Motion Controller Model": Version=1.8.0, Company="Microsoft"
[XR] [7932] [04:22:43.131][Info   ] 
[XR] [7932] [04:22:43.131][Info   ] Available Runtime Extensions: (26)
[XR] [7932] [04:22:43.131][Info   ]   XR_KHR_win32_convert_performance_counter_time: Version=1
[XR] [7932] [04:22:43.131][Info   ]   XR_KHR_D3D11_enable: Version=9
[XR] [7932] [04:22:43.131][Info   ]   XR_KHR_D3D12_enable: Version=9
[XR] [7932] [04:22:43.131][Info   ]   XR_KHR_composition_layer_depth: Version=6
[XR] [7932] [04:22:43.131][Info   ]   XR_KHR_composition_layer_color_scale_bias: Version=5
[XR] [7932] [04:22:43.131][Info   ]   XR_MSFT_unbounded_reference_space: Version=1
[XR] [7932] [04:22:43.131][Info   ]   XR_MSFT_spatial_anchor: Version=2
[XR] [7932] [04:22:43.131][Info   ]   XR_MSFT_perception_anchor_interop: Version=1
[XR] [7932] [04:22:43.131][Info   ]   XR_EXT_win32_appcontainer_compatible: Version=1
[XR] [7932] [04:22:43.132][Info   ]   XR_EXT_conformance_automation: Version=3
[XR] [7932] [04:22:43.132][Info   ]   XR_MSFT_composition_layer_reprojection: Version=1
[XR] [7932] [04:22:43.132][Info   ]   XR_MSFT_spatial_graph_bridge: Version=2
[XR] [7932] [04:22:43.132][Info   ]   XR_MSFT_spatial_anchor_persistence: Version=2
[XR] [7932] [04:22:43.132][Info   ]   XR_EXT_palm_pose: Version=2
[XR] [7932] [04:22:43.132][Info   ]   XR_MSFT_scene_understanding: Version=2
[XR] [7932] [04:22:43.132][Info   ]   XR_MSFT_scene_understanding_serialization: Version=2
[XR] [7932] [04:22:43.132][Info   ]   XR_FB_display_refresh_rate: Version=1
[XR] [7932] [04:22:43.132][Info   ]   XR_EXT_eye_gaze_interaction: Version=2
[XR] [7932] [04:22:43.132][Info   ]   XR_MSFT_hand_interaction: Version=1
[XR] [7932] [04:22:43.132][Info   ]   XR_EXT_hand_tracking: Version=4
[XR] [7932] [04:22:43.132][Info   ]   XR_EXT_hand_joints_motion_range: Version=1
[XR] [7932] [04:22:43.132][Info   ]   XR_MSFT_hand_tracking_mesh: Version=4
[XR] [7932] [04:22:43.132][Info   ]   XR_MSFT_holographic_window_attachment: Version=1
[XR] [7932] [04:22:43.132][Info   ]   XR_MSFT_secondary_view_configuration: Version=1
[XR] [7932] [04:22:43.132][Info   ]   XR_MSFT_first_person_observer: Version=1
[XR] [7932] [04:22:43.132][Info   ]   XR_EXT_debug_utils: Version=4
[XR] [7932] [04:22:43.132][Info   ] 
[XR] [7932] [04:22:43.132][Info   ] Available Layers: (0)
[XR] [7932] [04:22:43.132][Info   ] 
[XR] [7932] [04:22:43.133][Info   ] Runtime Name: Windows Mixed Reality Runtime
[XR] [7932] [04:22:43.133][Info   ] Runtime Version: 112.2211.2002
[XR] [7932] [04:22:43.133][Info   ] 
[XR] [7932] [04:22:43.133][Info   ] Form factor: XR_FORM_FACTOR_HEAD_MOUNTED_DISPLAY
[XR] [7932] [04:22:43.133][Info   ] 
[XR] [7932] [04:22:43.133][Info   ] Runtime extensions enabled: (19)
[XR] [7932] [04:22:43.133][Info   ]   XR_EXT_eye_gaze_interaction: Version=2
[XR] [7932] [04:22:43.133][Info   ]   XR_EXT_hand_joints_motion_range: Version=1
[XR] [7932] [04:22:43.133][Info   ]   XR_EXT_hand_tracking: Version=4
[XR] [7932] [04:22:43.133][Info   ]   XR_KHR_D3D11_enable: Version=9
[XR] [7932] [04:22:43.134][Info   ]   XR_KHR_composition_layer_depth: Version=6
[XR] [7932] [04:22:43.134][Info   ]   XR_KHR_win32_convert_performance_counter_time: Version=1
[XR] [7932] [04:22:43.134][Info   ]   XR_MSFT_composition_layer_reprojection: Version=1
[XR] [7932] [04:22:43.134][Info   ]   XR_MSFT_first_person_observer: Version=1
[XR] [7932] [04:22:43.134][Info   ]   XR_MSFT_hand_interaction: Version=1
[XR] [7932] [04:22:43.134][Info   ]   XR_MSFT_hand_tracking_mesh: Version=4
[XR] [7932] [04:22:43.134][Info   ]   XR_MSFT_holographic_window_attachment: Version=1
[XR] [7932] [04:22:43.134][Info   ]   XR_MSFT_perception_anchor_interop: Version=1
[XR] [7932] [04:22:43.134][Info   ]   XR_MSFT_scene_understanding: Version=2
[XR] [7932] [04:22:43.134][Info   ]   XR_MSFT_scene_understanding_serialization: Version=2
[XR] [7932] [04:22:43.134][Info   ]   XR_MSFT_secondary_view_configuration: Version=1
[XR] [7932] [04:22:43.134][Info   ]   XR_MSFT_spatial_anchor: Version=2
[XR] [7932] [04:22:43.134][Info   ]   XR_MSFT_spatial_anchor_persistence: Version=2
[XR] [7932] [04:22:43.134][Info   ]   XR_MSFT_spatial_graph_bridge: Version=2
[XR] [7932] [04:22:43.134][Info   ]   XR_MSFT_unbounded_reference_space: Version=1
[XR] [7932] [04:22:43.134][Info   ] 
[XR] [7932] [04:22:43.134][Info   ] Available Reference Spaces: (3)
[XR] [7932] [04:22:43.134][Info   ]   XR_REFERENCE_SPACE_TYPE_VIEW
[XR] [7932] [04:22:43.134][Info   ]   XR_REFERENCE_SPACE_TYPE_LOCAL
[XR] [7932] [04:22:43.134][Info   ]   XR_REFERENCE_SPACE_TYPE_UNBOUNDED_MSFT
[XR] [7932] [04:22:43.134][Info   ] 
[XR] [7932] [04:22:43.135][Info   ] Instance Id  : 0x1
[XR] [7932] [04:22:43.135][Info   ] System Id    : 0x1
[XR] [7932] [04:22:43.135][Info   ] Session Id   : 0x2
[XR] [7932] [04:22:43.135][Info   ] 
[XR] [7932] [04:22:43.135][Info   ] Available View Configuration Types: (2)
[XR] [7932] [04:22:43.135][Info   ]   XR_VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO (Selected): FovMutable=True
[XR] [7932] [04:22:43.135][Info   ]     [0]: Recommended: Width=1440, Height=936, SampleCount=1
[XR] [7932] [04:22:43.135][Info   ]     [0]:     Maximum: Width=2880, Height=1872, SampleCount=4
[XR] [7932] [04:22:43.135][Info   ]     [1]: Recommended: Width=1440, Height=936, SampleCount=1
[XR] [7932] [04:22:43.135][Info   ]     [1]:     Maximum: Width=2880, Height=1872, SampleCount=4
[XR] [7932] [04:22:43.135][Info   ]   XR_VIEW_CONFIGURATION_TYPE_SECONDARY_MONO_FIRST_PERSON_OBSERVER_MSFT: FovMutable=True
[XR] [7932] [04:22:43.135][Info   ]     [0]: Recommended: Width=2272, Height=1276, SampleCount=1
[XR] [7932] [04:22:43.135][Info   ]     [0]:     Maximum: Width=4544, Height=2556, SampleCount=4
[XR] [7932] [04:22:43.135][Info   ] 
[XR] [7932] [04:22:43.135][Info   ] Skip Present To Main Screen: Yes
[XR] [7932] [04:22:43.135][Info   ] 
[XR] [7932] [04:22:43.135][Info   ] Available Environment Blend Modes: (1)
[XR] [7932] [04:22:43.135][Info   ]   XR_ENVIRONMENT_BLEND_MODE_ADDITIVE (Selected)
[XR] [7932] [04:22:43.135][Info   ] 
[XR] [7932] [04:22:43.135][Info   ] System Properties: Name="Windows Mixed Reality", VendorId=1118
[XR] [7932] [04:22:43.136][Info   ] System Graphics Properties: MaxWidth=16384, MaxHeight=16384, MaxLayers=16
[XR] [7932] [04:22:43.136][Info   ] System Tracking Properties: OrientationTracking=True, PositionTracking=True
[XR] [7932] [04:22:43.136][Info   ] 
[XR] [7932] [04:22:43.136][Info   ] ==== OpenXR Input ====
[XR] [7932] [04:22:43.136][Info   ] 
[XR] [7932] [04:22:43.136][Info   ] Action Sets (3): 
[XR] [7932] [04:22:43.136][Info   ]   eyegaze: ActionCount=1
[XR] [7932] [04:22:43.136][Info   ]   microsofthandinteraction: ActionCount=6
[XR] [7932] [04:22:43.136][Info   ]   microsoftmotioncontroller: ActionCount=13
[XR] [7932] [04:22:43.136][Info   ] 
[XR] [7932] [04:22:43.136][Info   ] 
[XR] [7932] [04:22:43.136][Info   ] ==== OpenXR Swapchain Details ====
[XR] [7932] [04:22:43.136][Info   ] 
[XR] [7932] [04:22:43.136][Info   ] Render Mode: Single Pass Instanced
[XR] [7932] [04:22:43.136][Info   ] Depth Submission Mode: Depth16Bit
[XR] [7932] [04:22:43.136][Info   ] 
[XR] [7932] [04:22:43.136][Info   ] Swapchain Formats:  [c:91] 87 28 29 [d:55] 45 40 20
[XR] [7932] [04:22:43.136][Info   ] Swapchain Views: (2)
[XR] [7932] [04:22:43.136][Info   ]   [0]: Width=1440, Height=936, SampleCount=1
[XR] [7932] [04:22:43.136][Info   ] 
[XR] [7932] [04:22:43.136][Info   ] ==== Last 20 Events ====
[XR] [7932] [04:22:43.137][Info   ] XrEventDataSessionStateChanged: XR_SESSION_STATE_UNKNOWN->XR_SESSION_STATE_IDLE
[XR] [7932] [04:22:43.137][Info   ] XrEventDataSessionStateChanged: XR_SESSION_STATE_IDLE->XR_SESSION_STATE_READY
[XR] [7932] [04:22:43.137][Info   ] XrEventDataSessionStateChanged: XR_SESSION_STATE_READY->XR_SESSION_STATE_SYNCHRONIZED
[XR] [7932] [04:22:43.137][Info   ] XrEventDataSessionStateChanged: XR_SESSION_STATE_SYNCHRONIZED->XR_SESSION_STATE_VISIBLE
[XR] [7932] [04:22:43.137][Info   ] XrEventDataSessionStateChanged: XR_SESSION_STATE_VISIBLE->XR_SESSION_STATE_FOCUSED
[XR] [7932] [04:22:43.137][Info   ] 

==== End Unity OpenXR Diagnostic Report ====

XRTextureManager::RequestCreateTexture
XRTextureManager::RequestCreateTexture
XRTextureManager::SetupRenderTextureFromXRRequest (id: 3 col: 0000000000000000 d: 0000018AA58F6070 sr: 0000000000000000)
RenderTexture::Create (id: 3)
IVRDeviceCallback_CreateEyeTextureResources 0000018AA58F6070
XRTextureManager::SetupRenderTextureFromXRRequest (id: 4 col: 0000018AA58F5D70 d: 0000000000000000 sr: 0000000000000000)
RenderTexture::Create (id: 4)
IVRDeviceCallback_CreateEyeTextureResources 0000018AA58F5D70
XRTextureManager::RequestCreateTexture
XRTextureManager::RequestCreateTexture
XRTextureManager::SetupRenderTextureFromXRRequest (id: 5 col: 0000000000000000 d: 0000018AA58F7CF0 sr: 0000000000000000)
RenderTexture::Create (id: 5)
IVRDeviceCallback_CreateEyeTextureResources 0000018AA58F7CF0
XRTextureManager::SetupRenderTextureFromXRRequest (id: 6 col: 0000018AA58F7970 d: 0000000000000000 sr: 0000000000000000)
RenderTexture::Create (id: 6)
IVRDeviceCallback_CreateEyeTextureResources 0000018AA58F7970
[XR] [MROpenXR][Info   ][04:22:43.366351][tid:1efc] OpenXRContext_OnEvent_XrEventDataInteractionProfileChanged EventType=XR_TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED session=2 leftHand=none rightHand=none
[XR] [MROpenXR][Info   ][04:22:43.366351][tid:1efc] OpenXRContext_OnEvent_XrEventDataInteractionProfileChanged EventType=XR_TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED session=2 leftHand=none rightHand=none
[XR] [MROpenXR][Info   ][04:22:43.639839][tid:1efc] OpenXRContext_OnEvent_XrEventDataInteractionProfileChanged EventType=XR_TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED session=2 leftHand=none rightHand=/interaction_profiles/microsoft/hand_interaction
[XR] [MROpenXR][Info   ][04:22:43.639839][tid:1efc] OpenXRContext_OnEvent_XrEventDataInteractionProfileChanged EventType=XR_TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED session=2 leftHand=none rightHand=/interaction_profiles/microsoft/hand_interaction
UnloadTime: 3,511927 ms
Unable to register IMixedRealityInputDeviceManager data provider (Windows Mixed Reality Device Manager) because the value of concreteType is null.
This may be caused by code being stripped during linking. The link.xml file in the MixedRealityToolkit.Generated folder is used to control code preservation.
More information can be found at https://docs.unity3d.com/Manual/ManagedCodeStripping.html.
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogWarning(Object)
Microsoft.MixedReality.Toolkit.BaseDataProviderAccessCoreSystem:RegisterDataProviderInternal(Boolean, Type, String, SupportedPlatforms, Object[])
Microsoft.MixedReality.Toolkit.BaseDataProviderAccessCoreSystem:RegisterDataProvider(Type, String, SupportedPlatforms, Object[])
Microsoft.MixedReality.Toolkit.Input.MixedRealityInputSystem:CreateDataProviders()
Microsoft.MixedReality.Toolkit.Input.MixedRealityInputSystem:Initialize()
Microsoft.MixedReality.Toolkit.<>c:<InitializeAllServices>b__68_0(IMixedRealityService)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:ExecuteOnAllServicesInOrder(Action`1)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:InitializeAllServices()
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:InitializeServiceLocator()
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:RegisterInstance(MixedRealityToolkit, Boolean)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:Awake()

Unable to register IMixedRealityInputDeviceManager data provider (Windows Mixed Reality Eye Gaze Provider) because the value of concreteType is null.
This may be caused by code being stripped during linking. The link.xml file in the MixedRealityToolkit.Generated folder is used to control code preservation.
More information can be found at https://docs.unity3d.com/Manual/ManagedCodeStripping.html.
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogWarning(Object)
Microsoft.MixedReality.Toolkit.BaseDataProviderAccessCoreSystem:RegisterDataProviderInternal(Boolean, Type, String, SupportedPlatforms, Object[])
Microsoft.MixedReality.Toolkit.BaseDataProviderAccessCoreSystem:RegisterDataProvider(Type, String, SupportedPlatforms, Object[])
Microsoft.MixedReality.Toolkit.Input.MixedRealityInputSystem:CreateDataProviders()
Microsoft.MixedReality.Toolkit.Input.MixedRealityInputSystem:Initialize()
Microsoft.MixedReality.Toolkit.<>c:<InitializeAllServices>b__68_0(IMixedRealityService)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:ExecuteOnAllServicesInOrder(Action`1)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:InitializeAllServices()
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:InitializeServiceLocator()
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:RegisterInstance(MixedRealityToolkit, Boolean)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:Awake()

Tracking origin unable to be set.
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogWarning(Object)
Microsoft.MixedReality.Toolkit.XRSDK.XRSDKBoundarySystem:SetTrackingSpace()
Microsoft.MixedReality.Toolkit.Boundary.BaseBoundarySystem:Initialize()
Microsoft.MixedReality.Toolkit.<>c:<InitializeAllServices>b__68_0(IMixedRealityService)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:ExecuteOnAllServicesInOrder(Action`1)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:InitializeAllServices()
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:InitializeServiceLocator()
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:RegisterInstance(MixedRealityToolkit, Boolean)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:Awake()

Failed to calculate boundary bounds.
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogWarning(Object)
Microsoft.MixedReality.Toolkit.Boundary.BaseBoundarySystem:CalculateBoundaryBounds()
Microsoft.MixedReality.Toolkit.Boundary.BaseBoundarySystem:Initialize()
Microsoft.MixedReality.Toolkit.<>c:<InitializeAllServices>b__68_0(IMixedRealityService)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:ExecuteOnAllServicesInOrder(Action`1)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:InitializeAllServices()
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:InitializeServiceLocator()
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:RegisterInstance(MixedRealityToolkit, Boolean)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:Awake()
michaelfarnsworth commented 11 months ago

@Mt-Perazim thanks for the logs. Unfortunately, I don't see anything there that indicates the issue. Best next option would be to launch it under Visual Studio. It should catch an exception. Also, we just published an updated version of the plugin. You could try that to see if it resolves the issue.

Mt-Perazim commented 11 months ago

@michaelfarnsworth Ok, I'm going to try out the new version :)

Might the lines like "The referenced script (Unknown) on this Behaviour is missing! The referenced script on this Behaviour (Game Object '') is missing!" be the reason for the behaviour?

antoine-bodin commented 11 months ago

@michaelfarnsworth just tested the newest version with sample project: it works great. Also tested with a more in-depth integration in Hololens with pointers and everything : Webview initializes fine! My pointing integration did break tho, but I did not expect to last since it's a prerelease :) Thanks a lot

@Mt-Perazim For the record I have the exact same errors in my logs and those are related to Oculus prefabs setup - I've been having those errors since forever and it never affected MRTK usage :)

Mt-Perazim commented 11 months ago

@michaelfarnsworth @antoine-bodin The new version didnt work for me. So I tried to deploy it directly from Visual Studio to the HoloLens (instead of building the appx). And I got the following Exception: WebViewException

The last part of the Visual Studio output:

[MROpenXR][Info   ][02:31:33.672444][tid:2354] XrViewConfigurationSettings_OnXrSessionCreated SupportedViewConfigType=XR_VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO SupportedReprojectionModesCount=0
[MROpenXR][Info   ][02:31:33.673050][tid:2354] XrViewConfigurationSettings_OnXrSessionCreated SupportedViewConfigType=XR_VIEW_CONFIGURATION_TYPE_SECONDARY_MONO_FIRST_PERSON_OBSERVER_MSFT SupportedReprojectionModesCount=0
[MROpenXR][Info   ][02:31:33.673470][tid:2354] OnSessionCreated GraphicsAPI=XR_TYPE_GRAPHICS_BINDING_D3D11_KHR sessionCreationResult=XR_SUCCESS AppName=WebView2HoloLensSample AppVersion=0.1 AppMode=AppMode openXRRuntimeName=Windows Mixed Reality Runtime openXRRuntimeVersion=112.2211.2002 APIVersion=1.0.25 PartA_PrivTags=33554432
[MROpenXR][Info   ][02:31:33.727613][tid:2354] OpenXRContext_OnEvent_XrEventDataSessionStateChanged EventType=XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED session=2 sessionState=XR_SESSION_STATE_IDLE
[MROpenXR][Info   ][02:31:33.728958][tid:2354] OpenXRContext_OnEvent_XrEventDataSessionStateChanged EventType=XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED session=2 sessionState=XR_SESSION_STATE_READY
[MROpenXR][Info   ][02:31:33.730508][tid:2354] ViewConfigurationSettings_PrimaryStereoEnabled
[MROpenXR][Info   ][02:31:33.730882][tid:2354] ViewConfigurationSettings_OnSessionBegan_SecondaryBeginInfo EnabledSecondaryViewConfigurationCount=1
[MROpenXR][Info   ][02:31:33.731563][tid:2354] ViewConfigurationSettings_OnSessionBegan_EnabledSecondaryViewConfiguration EnabledSecondaryViewConfiguration=XR_VIEW_CONFIGURATION_TYPE_SECONDARY_MONO_FIRST_PERSON_OBSERVER_MSFT
[MROpenXR][Info   ][02:31:33.732347][tid:2354] LocatableCameraProvider_Registered
[MROpenXR][Info   ][02:31:33.763074][tid:2354] SetSceneOriginSpace nativeToken=HandTracking oldSpace=0 newSpace=3
[MROpenXR][Info   ][02:31:33.763842][tid:2354] SetSceneOriginSpace nativeToken=HoloLens oldSpace=0 newSpace=3
[MROpenXR][Info   ][02:31:33.764942][tid:2354] SetSceneOriginSpace nativeToken=Controller oldSpace=0 newSpace=3
[MROpenXR][Verbose][02:31:33.766113][tid:2354] MicrosoftOpenXRPlugin_OnSubsystemsStarting NativeLibToken=HandTracking
[MROpenXR][Info   ][02:31:33.766434][tid:2354] InputProvider_LifecycleStart
[MROpenXR][Verbose][02:31:33.767385][tid:2354] MicrosoftOpenXRPlugin_OnSubsystemsStarting NativeLibToken=HoloLens
[MROpenXR][Verbose][02:31:33.768139][tid:2354] MicrosoftOpenXRPlugin_OnSubsystemsStarting NativeLibToken=Controller
'WebView2HoloLensSample.exe' (Win32): Loaded 'C:\Windows\system32\D3DCompiler_47.dll'. 
'WebView2HoloLensSample.exe' (Win32): Loaded 'C:\Windows\system32\cryptsp.dll'. 
[MROpenXR][Info   ][02:31:34.598010][tid:2354] OpenXRContext_OnEvent_XrEventDataSessionStateChanged EventType=XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED session=2 sessionState=XR_SESSION_STATE_SYNCHRONIZED
[MROpenXR][Info   ][02:31:34.598747][tid:2354] OpenXRContext_OnEvent_XrEventDataSessionStateChanged EventType=XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED session=2 sessionState=XR_SESSION_STATE_VISIBLE
[MROpenXR][Info   ][02:31:34.599204][tid:2354] OpenXRContext_OnEvent_XrEventDataSessionStateChanged EventType=XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED session=2 sessionState=XR_SESSION_STATE_FOCUSED
'WebView2HoloLensSample.exe' (Win32): Loaded 'C:\Windows\system32\CapabilityAccessManagerClient.dll'. 
[MROpenXR][Info   ][02:31:34.740654][tid:2354] OpenXRContext_OnEvent_XrEventDataInteractionProfileChanged EventType=XR_TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED session=2 leftHand=/interaction_profiles/microsoft/hand_interaction rightHand=none
Exception thrown at 0x00007FFF4A59DF00 (KernelBase.dll) in WebView2HoloLensSample.exe: 0x40080202: WinRT transform error (parameters: 0x000000008000000B, 0x0000000080070490, 0x0000000000000014, 0x000000961B6FDC70).
[MROpenXR][Info   ][02:31:35.612271][tid:2354] OpenXRContext_OnEvent_XrEventDataSessionStateChanged EventType=XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED session=2 sessionState=XR_SESSION_STATE_VISIBLE
[MROpenXR][Info   ][02:31:36.846277][tid:2354] OpenXRContext_OnEvent_XrEventDataSessionStateChanged EventType=XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED session=2 sessionState=XR_SESSION_STATE_FOCUSED
[MROpenXR][Info   ][02:31:36.864966][tid:2354] OpenXRContext_OnEvent_XrEventDataInteractionProfileChanged EventType=XR_TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED session=2 leftHand=/interaction_profiles/microsoft/hand_interaction rightHand=/interaction_profiles/microsoft/hand_interaction
The thread 0x22d0 has exited with code 0 (0x0).
[MROpenXR][Info   ][02:31:36.979071][tid:2354] OpenXRContext_OnEvent_XrEventDataInteractionProfileChanged EventType=XR_TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED session=2 leftHand=/interaction_profiles/microsoft/hand_interaction rightHand=/interaction_profiles/microsoft/hand_interaction
The thread 0xbec has exited with code 0 (0x0).
The thread 0xb34 has exited with code 0 (0x0).
'WebView2HoloLensSample.exe' (Win32): Loaded 'C:\Windows\system32\Windows.Media.Speech.dll'. 
'WebView2HoloLensSample.exe' (Win32): Loaded 'C:\Windows\system32\Speech_OneCore\Common\sapi_onecore.dll'. 
'WebView2HoloLensSample.exe' (Win32): Loaded 'C:\Windows\system32\winmmbase.dll'. 
'WebView2HoloLensSample.exe' (Win32): Loaded 'C:\Windows\system32\sspicli.dll'. 
'WebView2HoloLensSample.exe' (Win32): Loaded 'C:\Windows\system32\winhttp.dll'. 
'WebView2HoloLensSample.exe' (Win32): Loaded 'C:\Windows\system32\rsaenh.dll'. 
onecore\base\AppModel\Runtime\Src\PackagePath.hpp(144)\kernelbase.dll!00007FFF4A57E264: (caller: 00007FFF4A57B17C) ReturnHr(4) tid(2354) 80073D5B The package does not have a mutable directory.
'WebView2HoloLensSample.exe' (Win32): Loaded 'C:\Windows\system32\msxml6.dll'. 
'WebView2HoloLensSample.exe' (Win32): Loaded 'C:\Windows\system32\ole32_wp.dll'. 
onecore\com\combase\objact\objact.cxx(4070)\combase.dll!00007FFF4AC50B98: (caller: 00007FFF4AC56DA0) ReturnHr(13) tid(2354) 80040154 Class not registered
'WebView2HoloLensSample.exe' (Win32): Loaded 'C:\Windows\system32\FlightSettings.dll'. 
'WebView2HoloLensSample.exe' (Win32): Loaded 'C:\Windows\system32\Speech_OneCore\Common\SpeechServiceWinRTApi.ProxyStub.dll'. 
onecoreuap\enduser\nui\onecore\onesettings\src\onesettingspolicywrapper.cpp(280)\sapi_onecore.dll!00007FFF304FD418: (caller: 00007FFF304FD16C) ReturnHr(1) tid(1268) 80070005 Access is denied.
onecore\com\combase\objact\objact.cxx(4070)\combase.dll!00007FFF4AC50B98: (caller: 00007FFF4AC56DA0) ReturnHr(14) tid(2354) 80040154 Class not registered
'WebView2HoloLensSample.exe' (Win32): Loaded 'C:\Windows\system32\Speech_OneCore\Engines\SR\spsrx_onecore.dll'. 
onecore\com\combase\objact\objact.cxx(4070)\combase.dll!00007FFF4AC50B98: (caller: 00007FFF4AC56DA0) ReturnHr(15) tid(2354) 80040154 Class not registered
onecore\com\combase\objact\objact.cxx(4070)\combase.dll!00007FFF4AC50B98: (caller: 00007FFF4AC56DA0) ReturnHr(16) tid(2354) 80040154 Class not registered
onecore\com\combase\objact\objact.cxx(4070)\combase.dll!00007FFF4AC50B98: (caller: 00007FFF4AC56DA0) ReturnHr(17) tid(2354) 80040154 Class not registered
onecore\com\combase\objact\objact.cxx(4070)\combase.dll!00007FFF4AC50B98: (caller: 00007FFF4AC56DA0) ReturnHr(18) tid(2354) 80040154 Class not registered
'WebView2HoloLensSample.exe' (Win32): Loaded 'C:\Windows\system32\GraphicsCapture.dll'. 
'WebView2HoloLensSample.exe' (Win32): Loaded 'P:\WindowsApps\Microsoft.WebView2Runtime.Stable_114.0.1823.79_arm64__8wekyb3d8bbwe\EBWebView\arm64\EmbeddedBrowserWebView.dll'. 
'WebView2HoloLensSample.exe' (Win32): Loaded 'C:\Windows\system32\WCOSAdapter.dll'. 
Exception thrown at 0x00007FFF4A59DF00 (KernelBase.dll) in WebView2HoloLensSample.exe: WinRT originate error - 0x8000001F : 'A COM call (IID: {638BB2DB-451D-4661-B099-414F34FFB9F1}, method index: 6) to an ASTA (thread 6084) was blocked because the call chain originated in or passed through another ASTA (thread 7428). This call pattern is deadlock-prone and disallowed by apartment call control.'.
Exception thrown at 0x00007FFF4A59DF00 (KernelBase.dll) in WebView2HoloLensSample.exe: 0x8000001F: A COM call to an ASTA was blocked because the call chain originated in or passed through another ASTA. This call pattern is deadlock-prone and disallowed by apartment call control.
onecoreuap\windows\dwm\wcosadapter\lib\windowadapterserverconnection.cpp(129)\wcosadapter.dll!00007FFF228794B4: (caller: 00007FFF4A0AB410) FailFast(1) tid(1d04) 8000001F A COM call to an ASTA was blocked because the call chain originated in or passed through another ASTA. This call pattern is deadlock-prone and disallowed by apartment call control.
Unhandled exception at 0x00007FFF228794B4 (WCOSAdapter.dll) in WebView2HoloLensSample.exe: Fatal program exit requested.
michaelfarnsworth commented 11 months ago

@Mt-Perazim thanks for adding the callstack. The exception throw by wcosadapter.dll seems to indicate and issue with the calling thread. Have you made any modifications to the sample code? Have you building the appx and installing it on the device, not deploying Visual Studio?

Mt-Perazim commented 11 months ago

@michaelfarnsworth no, I didnt add anything to the project. I followed the guide and thats it. When building the appx and installing it on the device, I face the situation that I mentioned in my initial post. I get only to "Made with Unity" and thats it. But this time I deployed the build via Visual Studio to the HoloLens directly. The outcome is the seen one in my last post here (screenshot + output).

As it works for everyone else, I guess I will retry it tomorrow and pull the repository again. Maybe I missed something somewhere.

ydev0927 commented 11 months ago

(I am writing without parsing the log) My sample application crashes too. I think that OpenXR1.8.0 and Unity2021.3.24 are not compatible. Because just importing MRTK2.8.3 and OpenXR1.8.0 into a vanilla project crashes the same. FYI, in my environment using these does not crash. ・Unity 2020.3.33 ・Unity 2022.1.15

antoine-bodin commented 11 months ago

For the record my working envt was

Xudarker commented 11 months ago

yeah,i have encountered the same issue when i create new project and set everthing up,put a webview in scene,deploy it,then crashed at start. but when i clone Hololnes2GetStartedApp project then deploy it,it works fine,but webpage dont show up,its blank here.

For the record my working envt was: Unity 2021.3.47f1 OpenXR 1.8.1 MRTK 2.8.3 Webview for Unity 0.17.1-pre5

Xudarker commented 11 months ago

(I am writing without parsing the log) My sample application crashes too. I think that OpenXR1.8.0 and Unity2021.3.24 are not compatible. Because just importing MRTK2.8.3 and OpenXR1.8.0 into a vanilla project crashes the same. FYI, in my environment using these does not crash. ・Unity 2020.3.33 ・Unity 2022.1.15

have you deploy it? does webpage show up in your hololens2 app?

Mt-Perazim commented 11 months ago

@michaelfarnsworth @antoine-bodin I removed the project from my disc and cloned it again. The only thing I changed this time was, that I used the newest Microsoft Reality Feature Tool (I'm not sure if this could be the reaseon). After I opened the project in Unity, I accepted the notification to install TMP and thats it. The WebViewer works now on the HoloLens.

Another thing that didn't work, but I didnt mention in this post, was adding the web view to my already existing project. I'm gonna retry also that :)

ZFHung commented 2 months ago

i have the same problem ,how to fix it?