MicrosoftEdge / MicrosoftEdge/WebView2Feedback
WinUI3 with WebView2 on a secondary window crash in remote desktop session
Open
@champnic is already working on this.
Since Sep 27, 2023.
bug
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
Description
When there is second Microsoft.UI.Xaml.Window instance and there is a WebView2 on it, the app crash when I connect it to the pc with remote desktop (Note: The host and the pc I'm using to connect to it has different dpi monitors).
Version
SDK: Bundled with
Runtime: 117.0.2045.36
Framework: WinUI3
OS: Windows 11
Repro Steps
- Create a new C++ WinUI3 app (packaged), upgrade windows app sdk nuget to the latest (or the version I screenshot)
- In
MainWindow.xaml
<Window ...>
<WebView2 Source="https://www.google.com" Width="500" Height="500"/>
</Window>
- Add a member instance
Window window2;inApp.xaml.h. InApp.xaml.cpp, modify theApp::OnLaunchfunction
void App::OnLaunched(LaunchActivatedEventArgs const&)
{
window = WinUI3Cpp::MainWindow{};
window.Activate();
window2 = WinUI3Cpp::MainWindow{};
window2.Activate();
}
- Build and run. Then connect the pc with another pc, see app crash.
Screenshots
This crash seems to only happens when the cursor is put into a textbox in the website.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.