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

WinUI crash observed with updating Template Studio (5.3) application to latest stable WinAppSDK (1.3.230331000) #4665

Closed
adrastogi opened this issue May 4, 2023 · 2 comments
Labels
bug The issue relates to the wizard not working or a problem with the generated code. done The work necessary to address the issue has been completed and verified in the nightly build but the
Milestone

Comments

@adrastogi
Copy link

Describe the bug

I'm seeing a crash in a newly-created Template Studio application if I upgrade to the latest available version of WinAppSDK. My understanding is that this scenario should work.

Steps to reproduce the bug

On Microsoft Visual Studio Enterprise 2022 (64-bit) - 17.5.4 with the Template Studio 5.3 extension installed:

  1. Create a new Template Studio project with the following settings:
    image
  2. F5 the application to verify that it builds and launches successfully.
  3. The application depends on the 1.2.230118.102 Microsoft.WindowsAppSDK package, so NuGet Package Manager detects that the project could be updated to 1.3.230331000. Install this newer version.
  4. Rebuild and relaunch the application.

Expected behavior

I would expect the application to launch successfully. However, the application fails to launch. Snippet of the stack (I couldn't get symbols to resolve properly).

01 000000bf`7cb7a0b0 00007ff9`844e48e0     Microsoft_ui_xaml!wil::details::WilDynamicLoadRaiseFailFastException+0x49
02 000000bf`7cb7a0e0 00007ff9`844e48c4     Microsoft_ui_xaml!wil::details::WilRaiseFailFastException+0x18
03 000000bf`7cb7a110 00007ff9`844e311e     Microsoft_ui_xaml!wil::details::WilFailFast+0xa8
04 000000bf`7cb7a1e0 00007ff9`844e2cf4     Microsoft_ui_xaml!wil::details::ReportFailure_NoReturn<3>+0x26a
05 000000bf`7cb7b6c0 00007ff9`844e2eb1     Microsoft_ui_xaml!wil::details::ReportFailure_Base<3,0>+0x30
06 000000bf`7cb7b720 00007ff9`84526c5b     Microsoft_ui_xaml!wil::details::ReportFailure_Hr<3>+0x59
07 000000bf`7cb7b7a0 00007ff9`844c44c9     Microsoft_ui_xaml!wil::details::in1diag0::FailFast_Hr+0x17
08 000000bf`7cb7b7f0 00007ff9`841d984e     Microsoft_ui_xaml!CXamlIslandRoot::SetInputWindow+0x170815
09 000000bf`7cb7b820 00007ff9`84399381     Microsoft_ui_xaml!DirectUI::DesktopWindowXamlSource::ConnectToHwndIslandSite+0x25a
0a 000000bf`7cb7b960 00007ff9`8426df6a     Microsoft_ui_xaml!DirectUI::DesktopWindowXamlSource::AttachToWindow+0x61
0b 000000bf`7cb7b9b0 00007ff9`84365337     Microsoft_ui_xaml!DirectUI::DesktopWindowImpl::OnCreate+0x13a
0c 000000bf`7cb7bae0 00007ffa`238a81e1     Microsoft_ui_xaml!BaseWindow<DirectUI::DesktopWindowImpl>::WndProc+0x97

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.3.0: 1.3.230331000

Windows version

Windows Insider Build (xxxxx)

Additional context

Template Studio version is 5.3.

@adrastogi adrastogi added the bug The issue relates to the wizard not working or a problem with the generated code. label May 4, 2023
@pratikone pratikone transferred this issue from microsoft/microsoft-ui-xaml May 4, 2023
@bpulliam
Copy link
Collaborator

bpulliam commented May 9, 2023

This issue has been fixed in WinAppSDK 1.3.230502000 (1.3.1)

@mikebattista mikebattista added this to the 5.4 milestone May 10, 2023
@pratikone pratikone added done The work necessary to address the issue has been completed and verified in the nightly build but the and removed Needs: Triage 🔍 labels Jun 19, 2023
@pratikone
Copy link
Collaborator

closing now as this has been fixed in newest WinAppSDK version and Template Studio.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue relates to the wizard not working or a problem with the generated code. done The work necessary to address the issue has been completed and verified in the nightly build but the
Projects
None yet
Development

No branches or pull requests

4 participants