WindowsAppSDK
WindowsAppSDK copied to clipboard
Share UI gets Crashed
Describe the bug
We tried using the share feature in WindowsAppSDK Gallery sample app , It worked in some systems but, Fails to show the ShareUI in some other systems. What could be the reason for this behavior? and how to make it work in all systems?
(internal tracking: https://task.ms/40025843)
Steps to reproduce the bug
1.Open WindowsAppSDK Gallery 2.Click on Share 3.Click on DatatransferManager 4.Click on share to email
Expected behavior
The Share UI opens without any issue
Screenshots

NuGet package version
1.0.0
Packaging type
Packaged (MSIX)
Windows version
Windows 10 version 21H1 (19043, May 2021 Update)
IDE
Visual Studio 2022
Additional context
No response
Still persists in nuget version 1.1
Event Viewer log with StackTrace after the crash
Log Name: Application Source: Application Error Date: 10-06-2022 09:35:11 Event ID: 1000 Task Category: (100) Level: Error Keywords: Classic User: N/A Computer: zf-win-3900 Description: Faulting application name: ShellExperienceHost.exe, version: 10.0.19041.1620, time stamp: 0x4c043d8f Faulting module name: msvcrt.dll, version: 7.0.19041.546, time stamp: 0x564f9f39 Exception code: 0x40000015 Fault offset: 0x000000000000ae22 Faulting process id: 0x838c Faulting application start time: 0x01d87c7f47732164 Faulting application path: C:\Windows\SystemApps\ShellExperienceHost_cw5n1h2txyewy\ShellExperienceHost.exe Faulting module path: C:\Windows\System32\msvcrt.dll Report Id: 44c7785f-0fe7-4f2a-ab60-f8d6909a7174 Faulting package full name: Microsoft.Windows.ShellExperienceHost_10.0.19041.1320_neutral_neutral_cw5n1h2txyewy Faulting package-relative application ID: App Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>100</Task>
<Opcode>0</Opcode>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2022-06-10T04:05:11.4528012Z" />
<EventRecordID>29451</EventRecordID>
<Correlation />
<Execution ProcessID="0" ThreadID="0" />
<Channel>Application</Channel>
<Computer>zf-win-3900</Computer>
<Security />
</System>
<EventData>
<Data>ShellExperienceHost.exe</Data>
<Data>10.0.19041.1620</Data>
<Data>4c043d8f</Data>
<Data>msvcrt.dll</Data>
<Data>7.0.19041.546</Data>
<Data>564f9f39</Data>
<Data>40000015</Data>
<Data>000000000000ae22</Data>
<Data>838c</Data>
<Data>01d87c7f47732164</Data>
<Data>C:\Windows\SystemApps\ShellExperienceHost_cw5n1h2txyewy\ShellExperienceHost.exe</Data>
<Data>C:\Windows\System32\msvcrt.dll</Data>
<Data>44c7785f-0fe7-4f2a-ab60-f8d6909a7174</Data>
<Data>Microsoft.Windows.ShellExperienceHost_10.0.19041.1320_neutral_neutral_cw5n1h2txyewy</Data>
<Data>App</Data>
</EventData>
</Event>
I cannot repro it with Windows 11 and the new Windows App SDK 1.1.1. Perhaps Windows 10 only?
No @marb2000 it seems to occur in Windows 11 too. We tested in both the scenarios below. But, it's still not working.
Newly Tested cases in Windows App SDK 1.1.1
- Windows 10 [Share UI Crashed] Environment: OS:- Windows 10 Build:- 21H1(19043.1706) Existing Apps:- VS 2022 UWP, WASDK setup environment EventViewer Log:-
Log Name: Application
Source: Application Error
Date: 15-06-2022 14:14:11
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: zf-win-3900
Description:
Faulting application name: ShellExperienceHost.exe, version: 10.0.19041.1620, time stamp: 0x4c043d8f
Faulting module name: msvcrt.dll, version: 7.0.19041.546, time stamp: 0x564f9f39
Exception code: 0x40000015
Fault offset: 0x000000000000ae22
Faulting process id: 0x8004
Faulting application start time: 0x01d88094155ab5eb
Faulting application path: C:\Windows\SystemApps\ShellExperienceHost_cw5n1h2txyewy\ShellExperienceHost.exe
Faulting module path: C:\Windows\System32\msvcrt.dll
Report Id: b505b9ae-0135-42cd-a7e7-1e0603c55536
Faulting package full name: Microsoft.Windows.ShellExperienceHost_10.0.19041.1320_neutral_neutral_cw5n1h2txyewy
Faulting package-relative application ID: App
Event Xml:
<Event xmlns="[http://schemas.microsoft.com/win/2004/08/events/event">](http://schemas.microsoft.com/win/2004/08/events/event%22%3E)
<System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>100</Task>
<Opcode>0</Opcode>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2022-06-15T08:44:11.4873324Z" />
<EventRecordID>29649</EventRecordID>
<Correlation />
<Execution ProcessID="0" ThreadID="0" />
<Channel>Application</Channel>
<Computer>zf-win-3900</Computer>
<Security />
</System>
<EventData>
<Data>ShellExperienceHost.exe</Data>
<Data>10.0.19041.1620</Data>
<Data>4c043d8f</Data>
<Data>msvcrt.dll</Data>
<Data>7.0.19041.546</Data>
<Data>564f9f39</Data>
<Data>40000015</Data>
<Data>000000000000ae22</Data>
<Data>8004</Data>
<Data>01d88094155ab5eb</Data>
<Data>C:\Windows\SystemApps\ShellExperienceHost_cw5n1h2txyewy\ShellExperienceHost.exe</Data>
<Data>C:\Windows\System32\msvcrt.dll</Data>
<Data>b505b9ae-0135-42cd-a7e7-1e0603c55536</Data>
<Data>Microsoft.Windows.ShellExperienceHost_10.0.19041.1320_neutral_neutral_cw5n1h2txyewy</Data>
<Data>App</Data>
</EventData>
</Event>
- Windows 11 [Share UI Crashed] Environment: OS:- Windows 11 Build:- 21H2 (22000.739) Exisiting Apps:- Freshly installed OS. Has only the particular app to be tested Event Viewer log:-
Log Name: Application
Source: Application Error
Date: 15-06-2022 15:19:45
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: naveen-8199-t
Description:
Faulting application name: ShellExperienceHost.exe, version: 10.0.22000.708, time stamp: 0x4e4cc679
Faulting module name: msvcrt.dll, version: 7.0.22000.1, time stamp: 0x90483ed2
Exception code: 0x40000015
Fault offset: 0x000000000000b0ac
Faulting process id: 0x1764
Faulting application start time: 0x01d8809c7bd5e332
Faulting application path: C:\Windows\SystemApps\ShellExperienceHost_cw5n1h2txyewy\ShellExperienceHost.exe
Faulting module path: C:\WINDOWS\System32\msvcrt.dll
Report Id: e2746b0b-9d50-460e-b166-2b40bee4011f
Faulting package full name: Microsoft.Windows.ShellExperienceHost_10.0.22000.71_neutral_neutral_cw5n1h2txyewy
Faulting package-relative application ID: App
Event Xml:
<Event xmlns="[http://schemas.microsoft.com/win/2004/08/events/event">](http://schemas.microsoft.com/win/2004/08/events/event%22%3E)
<System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>100</Task>
<Opcode>0</Opcode>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2022-06-15T09:49:45.5702436Z" />
<EventRecordID>294</EventRecordID>
<Correlation />
<Execution ProcessID="11564" ThreadID="0" />
<Channel>Application</Channel>
<Computer>naveen-8199-t</Computer>
<Security />
</System>
<EventData>
<Data>ShellExperienceHost.exe</Data>
<Data>10.0.22000.708</Data>
<Data>4e4cc679</Data>
<Data>msvcrt.dll</Data>
<Data>7.0.22000.1</Data>
<Data>90483ed2</Data>
<Data>40000015</Data>
<Data>000000000000b0ac</Data>
<Data>1764</Data>
<Data>01d8809c7bd5e332</Data>
<Data>C:\Windows\SystemApps\ShellExperienceHost_cw5n1h2txyewy\ShellExperienceHost.exe</Data>
<Data>C:\WINDOWS\System32\msvcrt.dll</Data>
<Data>e2746b0b-9d50-460e-b166-2b40bee4011f</Data>
<Data>Microsoft.Windows.ShellExperienceHost_10.0.22000.71_neutral_neutral_cw5n1h2txyewy</Data>
<Data>App</Data>
</EventData>
</Event>