-
Couldn't load subscription status.
- Fork 62
Description
What happened?
I'm having a very strange issue.
I'm trying to make an app that uses the WebView2.
The minimum example that triggered the issue:
- Create a new empty UWP project (.Net 9, target 10.0.26100.0, supported 10.0.19041.0 or 10.0.17763.0)
- Add Microsoft.UI.Xaml from Nuget (v2.8.7, depends on Microsoft.Web.WebView2 1.0.2849.39 - more on that later)
- Add
xmlns:controls="using:Microsoft.UI.Xaml.Controls"and put aWebView2control in MainPage.xaml inside a grid. MainPage.xaml.cs remains untouched - I've also updated manually the Package.appxmanifest, just the
<Identity Name="[...]" Publisher="[...]" Version=[...]" />tag. I also assigned a certificate I made since the "Associate App with Store" button is currently having issues. The Store is not complaining, the PC version works, I don't think there's a problem here. - Create the .msix package as a Release x64 app only. Also tried making a .msixbundle
Here's the content of the <Page> tag of MainPage.xaml
<Grid x:Name="UiLayoutRoot">
<controls:WebView2 x:Name="UiWebView" Source="<any website>" />
</Grid>I also tried this code without the XAML above
WebView2 UiWebView;
private async void MainPage_Loaded(object sender, Windows.UI.Xaml.RoutedEventArgs e)
{
UiWebView = new WebView2();
// Tried both with and without these
UiWebView.IsHitTestVisible = false;
UiWebView.IsTabStop = false;
UiWebView.AllowFocusOnInteraction = false;
UiWebView.AllowFocusWhenDisabled = false;
this.Content = UiWebView;
[...]
}This app works without any issues on
- multiple PCs on version 26100
- on an Hololens emulator on version 22621
However, it doesn't work on Xbox
-
On an Xbox One, it crashes the entire console. Here's what I see from a console streamed through Discord:
- The splash screen appears
- The WebView cursor appears (with the splash still visible)
- The splash screen disappears (with the cursor still visible)
- Black screen (with the cursor still visible) of the console immediately followed by a crash of the console that restarts itself
-
On an Xbox Series S, the app crashes on startup or the Web View appears briefly with an "Out of memory" message from the WebView and the console seems to became unresponsive.
Without the WebView2 and with other controls (Grid, StackPanel, Button), the app works flawlessly on both PC and Xbox.
Unfortunately I don't have an Xbox to test in dev mode (The app is on the Microsoft Store as a hidden app) and the Store is not providing me any log or dump.
Visual Studio 2022 and its components are fully updated. All the PCs and both Xbox-es are on version 10.0.26100
I also noticed that my UWP project has some outdated packages that are indicated as updated, but they aren't. I tried a manual update of these packages, but the app still doesn't work on Xbox only.
- Manually installed the update Microsoft.Web.WebView2 instead of using the transitive package from 1.0.2849.39 to 1.0.3537.50
- Microsoft.Windows.SDK.BuildTools from 10.0.22621.3233 to 10.0.26100.6901 (Why it's out of date?)
- Microsoft.Windows.SDK.BuildTools.MSIX from 1.3.20250314.1 to 1.7.20250829.1
To update the Microsoft.Windows.SDK.BuildTools Microsoft.Windows.SDK.BuildTools.MSIX I changed this part of the xml of the project file with the code below, since both packages are implicit references of the SDK, which is at <TargetFramework>net9.0-windows10.0.26100.0</TargetFramework>
<ItemGroup>
<PackageReference Include="Microsoft.UI.Xaml" Version="2.8.7" />
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.3537.50" />
<!-- Added manually -->
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.26100.6901" />
<PackageReference Include="Microsoft.Windows.SDK.BuildTools.MSIX" Version="1.7.20250829.1" />
</ItemGroup>Is there something I'm missing?
Importance
Blocking. My app's basic functions are not working due to this issue.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
143.0.3624.0
SDK Version
1.0.3537.50
Framework
WinUI2/UWP
Operating System
Xbox
OS Version
26100
Repro steps
Install and open a UWP app with just a WebView2 control inside. The app should open, but instead crashed itself or the entire console
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
Don't know
Last working version (if regression)
No response