microsoft / TemplateStudio

Template Studio accelerates the creation of new WinUI 3, WPF, and UWP apps using a wizard-based experience.
Other
2.71k stars 461 forks source link

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

Closed adrastogi closed 1 year ago

adrastogi commented 1 year ago

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.

bpulliam commented 1 year ago

This issue has been fixed in WinAppSDK 1.3.230502000 (1.3.1)

pratikone commented 1 year ago

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