WindowsAppSDK icon indicating copy to clipboard operation
WindowsAppSDK copied to clipboard

Widgets: Adaptive Card template payloads can crash Widget board

Open tipa opened this issue 6 months ago • 2 comments

Describe the bug

Some JSON payloads for the Widget can crash the Widget board:

Faulting application name: WidgetBoard.exe, version: 525.15301.20.0, time stamp: 0x684c70e2
Faulting module name: Microsoft.UI.Xaml.dll, version: 3.1.6.0, time stamp: 0x42eb15d1
Exception code: 0xc000027b
Fault offset: 0x000000000000a310
Faulting process id: 0x5A50
Faulting application start time: 0x1DBE9209FCB20E1
Faulting application path: C:\Program Files\WindowsApps\MicrosoftWindows.Client.WebExperience_525.15301.20.0_arm64__cw5n1h2txyewy\WidgetBoard.exe
Faulting module path: C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.6_6000.519.329.0_arm64__8wekyb3d8bbwe\Microsoft.UI.Xaml.dll
Report Id: 2fc5ae18-4836-4e79-8b8c-68c78cf9c1c4
Faulting package full name: MicrosoftWindows.Client.WebExperience_525.15301.20.0_arm64__cw5n1h2txyewy
Faulting package-relative application ID: Global.WidgetBoard

Steps to reproduce the bug

  • Crash can be reproduced on a Surface Copilot Laptop at 150% display scale (no crash at 100% display scale!)
  • Run example project: test.zip
  • Add widget to widget board

This is the JSON used:

{
   "type":"AdaptiveCard",
   "$schema":"https://adaptivecards.io/schemas/adaptive-card.json",
   "version":"1.5",
   "body":[
      {
         "type":"Carousel",
         "pages":[
            {
               "type":"CarouselPage",
               "items":[
                  {
                     "type":"Container",
                     "items":[
                        {
                           "type":"ColumnSet",
                           "columns":[
                              {
                                 "type":"Column",
                                 "items":[
                                    {
                                       "type":"TextBlock",
                                       "text":"some heading",
                                       "spacing":"small"
                                    },
                                    {
                                       "type":"TextBlock",
                                       "text":"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.",
                                       "wrap":true,
                                       "maxLines":4,
                                       "size":"small"
                                    }
                                 ]
                              }
                           ]
                        }
                     ]
                  }
               ]
            }
         ]
      }
   ]
}

Expected behavior

No crash

Screenshots

No response

NuGet package version

Windows App SDK 1.7.3: 1.7.250606001

Packaging type

Packaged (MSIX)

Windows version

Windows 11 version 24H2 LTSC (26100, June Update)

IDE

Visual Studio 2022

Additional context

No response

tipa avatar Jun 29 '25 18:06 tipa

Hi @tipa , is this issue only for this specific payload? Is it a new issue or was it in the previous WindowsAppSdk version as well?

SatwikKrSharma avatar Nov 16 '25 10:11 SatwikKrSharma

@SatwikKrSharma I don't know if previous workloads were affected or not, I was just starting to use widgets when I encountered and logged this issue. I just tested it again and the crash still occurs with the latest tools (net10.0-windows10.0.26100.0, Microsoft.WindowsAppSDK 1.8.251106002, Widgetboards 525.28301.40.0) - again, I can reproduce this on a Surface Copilot Laptop at 150% display scale, not on my Desktop PC with 100% scale

tipa avatar Nov 17 '25 08:11 tipa