You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using VS2022 17.12.0 also used several prior versions in C++ application for HoloLens 2 which means a UWP app AND it is native ARM64.
I am using the OpenXR rendering along with several Microsoft extensions. Without WebView2 (wv2) my app runs fine. I am adding wv2 to an existing working application. My intent is to create a wrapper DLL using the IMPL model to create the and manage the wv2. Builds and deploys to HoloLens with no issues. I configured the code in a way that the CoreWindow is created and an AppView is created. The window.Activate function is called - everything is running normally at this point.
Next in the initialization sequence I go through a sequence to acquire the CoreWindow's HWND (required) and then call code to create an instance of my WebView2UWPControl class that wraps the wv2 implementation. I'm passing to my class a struct with all the settings it needs to implement the wv2.
The app calls my class constructor which in turn calls the implementation base-class. The settings struct is passed to the base which then creates the wv2. This should be straight forward - it is NOT!
1- CreateCoreWebView2EnvironmentWithOptions function is called with settings, and it registers a callback function. (succeeds with S_OK).
2- On completion of whatever the MS code does... it calls the callback function registered in step 1. In this callback the newly created environment is passed into the method. I verify the environment is good.
3- With the good environment the env calls CreateCoreWebView2Controller passing in the HWND of the CoreWindow. This create function also registers a callback function. This method succeeds. This where everything crashes.
Somewhere in the MS code that is creating the controller, something is failing before the controller is actually finished being created. It never calls the callback function registered, instead I get an error: Procedure not found. I have no way to determine what is not found.
My assumption is that the WebView2Loader should find all the runtime DLLs necessary from the installed version of WebView2. According to documentation, Windows 11 now includes WebView2 in HoloLens 2 and I have verified the version does exist both by inspecting in the device's developer portal and having my code check the version. I am using the current WebView2 in the vcpkg. What is confusing here the WebView2 installs, and the code package have a completely different numbering system.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am using VS2022 17.12.0 also used several prior versions in C++ application for HoloLens 2 which means a UWP app AND it is native ARM64.
I am using the OpenXR rendering along with several Microsoft extensions. Without WebView2 (wv2) my app runs fine. I am adding wv2 to an existing working application. My intent is to create a wrapper DLL using the IMPL model to create the and manage the wv2. Builds and deploys to HoloLens with no issues. I configured the code in a way that the CoreWindow is created and an AppView is created. The window.Activate function is called - everything is running normally at this point.
Next in the initialization sequence I go through a sequence to acquire the CoreWindow's HWND (required) and then call code to create an instance of my WebView2UWPControl class that wraps the wv2 implementation. I'm passing to my class a struct with all the settings it needs to implement the wv2.
The app calls my class constructor which in turn calls the implementation base-class. The settings struct is passed to the base which then creates the wv2. This should be straight forward - it is NOT!
1- CreateCoreWebView2EnvironmentWithOptions function is called with settings, and it registers a callback function. (succeeds with S_OK).
2- On completion of whatever the MS code does... it calls the callback function registered in step 1. In this callback the newly created environment is passed into the method. I verify the environment is good.
3- With the good environment the env calls CreateCoreWebView2Controller passing in the HWND of the CoreWindow. This create function also registers a callback function. This method succeeds.
This where everything crashes.
Somewhere in the MS code that is creating the controller, something is failing before the controller is actually finished being created. It never calls the callback function registered, instead I get an error: Procedure not found. I have no way to determine what is not found.
My assumption is that the WebView2Loader should find all the runtime DLLs necessary from the installed version of WebView2. According to documentation, Windows 11 now includes WebView2 in HoloLens 2 and I have verified the version does exist both by inspecting in the device's developer portal and having my code check the version. I am using the current WebView2 in the vcpkg. What is confusing here the WebView2 installs, and the code package have a completely different numbering system.
I need help to understand the core problem.
Beta Was this translation helpful? Give feedback.
All reactions