Skip to content

[Problem/Bug]: WebView2 control in an UWP crashes the entire console on Xbox One #5404

@Pasquiindustry

Description

@Pasquiindustry

What happened?

I'm having a very strange issue.
I'm trying to make an app that uses - and need to use - the WebView2 control.

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) or an UWP project (.NET Native)
  • Add Microsoft.UI.Xaml from Nuget (v2.8.7, which depends on Microsoft.Web.WebView2 1.0.2849.39 - more on that later)
  • Add the WebView2 Control. The same issue happens when the control gets added directly inside the MainPage.xaml file or inside the Loaded event in MainPage.xaml.cs. I've provided an example below.
  • 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 on the Microsoft side. The Store is not complaining, the PC version works, I don't think there's a problem here.
  • Create the package. I tried different combinations of
    • Just a Release x64 or both Release x86 and Release x64.
    • Relased as .msix, .msixbundle and .msixupload

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 always work on Xbox

  • On an Xbox One in retail mode, it crashes the entire console, not just the app. Here's what I see from a console streamed through Discord:

    • The splash screen appears
    • The WebView cursor appears (with the splash still visible and without App.Current.RequiresPointerMode = ApplicationRequiresPointerMode.WhenRequested;
      )
    • 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 One in dev mode, the app seems to work without issues

  • On one Xbox Series S in retail mode, 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.

  • On another Xbox Series S in retail mode, the app manages to start and work flawlessly, however it takes more than 12 seconds after the splash screen to load

  • On a Xbox Series X in retail mode, the app manages to start and work flawlessly, however it takes about 6 seconds to start after the splash screen.

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 myself to test in dev / retail mode (The app is on the Microsoft Store as a hidden app) and the Store is not giving 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 nothing changes.

  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions