Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Arm64][WinUI] Cannot show application after run Packaged WinUI 3 project in x86 configuration successful #8093

Closed
XamlTest opened this issue Jan 13, 2023 · 7 comments
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners team-Markup Issue for the Markup team

Comments

@XamlTest
Copy link

Describe the bug

Cannot show application after running Packaged WinUI 3 project in x86 configuration successful.

Steps to reproduce the bug

  1. Create C# Blank App, Packaged with Windows Application Packaging Project(WinUI 3 in Desktop)
  2. Use the default configuration: Debug & x86
  3. F5 to run the project
  4. After running successfully, no application display.

Expected Result:
Should pop up running application.

Actual Result:
There is no application after waiting 1-2 minutes.

Expected behavior

No response

Screenshots

WinUI3

NuGet package version

None

Windows version

Windows 11 (22H2): Build 22621

Additional context

This issue only reproduced on Arm 64 machine, C# Packaged WinUI 3 project, Win11 x86, not reproduce on x64, Arm64.

@XamlTest XamlTest added the bug Something isn't working label Jan 13, 2023
@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Jan 13, 2023
@DarranRowe
Copy link

Well, with Visual Studio 17.4.4, Windows App SDK 1.2.2 and with a C++ project, I don't see this problem. The default project runs without any issue on my Surface Pro X.
Are you able to try the current release version of Visual Studio or perhaps .NET 7 to see if you have the same issues? This could be a Visual Studio or a .NET 6 issue after all.

@XamlTest
Copy link
Author

I have tried with Visual Studio 17.4.4, Windows App SDK 1.2.2, .NET 7, Application work well. Maybe this is .NET 6 issue.

@bpulliam bpulliam added team-Markup Issue for the Markup team and removed needs-triage Issue needs to be triaged by the area owners labels Jul 7, 2023
@XamlTest
Copy link
Author

XamlTest commented Oct 7, 2023

This issue also reproduced on 17.8 preview 3 with .NET 8 rc2.

@Scottj1s
Copy link
Member

Scottj1s commented Jan 31, 2024

[EDITED] Additional findings:
I can repro on a Surface Pro X, targeting Windows App SDK 1.4.231219000
I only repro when launching the app in a debugger - both Visual Studio and Windbg repro
I cannot repro launching the app outside a debugger (or via Ctrl+F5 in VS)
I can also repro with a single-project app (not using the Windows Application Packaging project)
I can only repro with mixed debugging (managed and native) - managed-only works.

I was unable to generate a CLR startup trace - the trace text file was 0 bytes. But I do see what appears to be stack corruption in Windbg, attempting to load a DLL.

I've opened an issue on the Visual Studio team to investigate further:
Debug launch of x86 C# WinAppSDK project hangs on arm64

@Scottj1s
Copy link
Member

Scottj1s commented Feb 7, 2024

@XamlTest The debugger team is investigating, but has pointed out that with the WAP configuration solution, mixed debugging is the default (surprisingly). If you don't need that, disabling native debugging should unblock you.

@Scottj1s
Copy link
Member

Scottj1s commented Feb 7, 2024

Closing this issue as the .NET debugger team is now tracking it:
Debug launch of x86 C# WinAppSDK project hangs on arm64

@Scottj1s Scottj1s closed this as completed Feb 7, 2024
@XamlTest
Copy link
Author

XamlTest commented Feb 8, 2024

@Scottj1s Thanks for investigating, after changing Application process from "Mixed" to "Managed Only", it works.
image

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners team-Markup Issue for the Markup team
Projects
None yet
Development

No branches or pull requests

4 participants