<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: WinUI crash after publish in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/winui-crash-after-publish/m-p/1587727#M13316</link>
    <description>&lt;P&gt;This article seem to cover a bit half way down how to add the VCLibs as a dependency:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/windows/msix/desktop/desktop-to-uwp-prepare" target="_blank"&gt;https://learn.microsoft.com/en-us/windows/msix/desktop/desktop-to-uwp-prepare&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It does look like if I add the following, that it shows up in the manifest of the generated app package, but no idea if that'll do the trick:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dotMorten_esri_0-1740088857535.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/125916iC864AE8FFB5FF4E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dotMorten_esri_0-1740088857535.png" alt="dotMorten_esri_0-1740088857535.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;You could at least start with confirming whether it is a vclibs issue on the machine where you can reproduce, by installing &lt;A href="https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170" target="_self"&gt;the C++ Redistributable&lt;/A&gt;&amp;nbsp;and verify if that addresses it.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Feb 2025 22:02:20 GMT</pubDate>
    <dc:creator>dotMorten_esri</dc:creator>
    <dc:date>2025-02-20T22:02:20Z</dc:date>
    <item>
      <title>WinUI crash after publish</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/winui-crash-after-publish/m-p/1587643#M13313</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;I tried to publish my WinUI app on the Microsoft Store, but the submission failed because the app crashed on launch during the certification process.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;It was not easy to reproduce, it works fine on most computers, but I finally found a computer where I can reproduce the crash (Windows version 22h2 build 19045.5487).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The only thing I can get is a log in the Windows event viewer:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Faulting application name WinuiTest.exe, version: 1.0.0.0, timestamp: 0x67890000&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Faulting module name: Microsoft.UI.Xaml.dll, version: 3.1.6.0, timestamp: 0xe431383e&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Exception code: 0xc000027b&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Error offset: 0x0000000000009125&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Faulting process ID: 0x2788&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Faulting application start time: 0x01db83ca329687cf&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Faulting application path: C:\Program Files\WindowsApps\f8114a41-78bc-4318-be1c-b3362a2f2756_1.0.3.0_x64__qn7kvjefs86yt\WinuiTest.exe&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Faulting module path: C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.6_6000.401.2352.0_x64__8wekyb3d8bbwe\Microsoft.UI.Xaml.dll&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Report ID: b5419f9b-41ed-4d68-9b02-b89d3215c011&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Full name of the faulting package: f8114a41-78bc-4318-be1c-b3362a2f2756_1.0.3.0_x64__qn7kvjefs86yt&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Application ID of the failing package: App&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;After installing Visual Studio on the target computer to debug the app, it not longer crashes, so it seems to be related to some missing runtimes.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I played with publish properties (SelfContained, etc...) in Visual Studio to try to embed in a single package all possible dependencies the app needs, but it keep crashing on this computer.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;I created an app from scratch using the WinUI packaged app template.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When I publish it, the msix package is generated with a Dependencies folder containing Microsoft.WindowsAppRuntime.1.6.msix.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;After installing it on the target computer, the app runs fine.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;I added the Esri.ArcGISRuntime.WinUI 200.6 nuget package and initialized a SceneView.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The app works fine on my dev computer, and after publishing I get the same package files.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But once deployed, the app crashes on launch with this Microsoft.UI.Xaml.dll module error.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Here is a repo with my test app :&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://github.com/julien-bertolini/Winui-EsriArcGis.git" target="_blank"&gt;https://github.com/julien-bertolini/Winui-EsriArcGis.git&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Here is the Certification report:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The product crashes at launch. The issue was observed on the following devices running OS build 22631.4602.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Observed On: Dell Inspiron 14 5000&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Tested On: Dell Inspiron 14 5000&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Error Message: N/A&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Tested devices: HP 17-bs011dx&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks for your help.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 20 Feb 2025 20:14:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/winui-crash-after-publish/m-p/1587643#M13313</guid>
      <dc:creator>Jube</dc:creator>
      <dc:date>2025-02-20T20:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: WinUI crash after publish</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/winui-crash-after-publish/m-p/1587700#M13314</link>
      <description>&lt;P&gt;Here is the publish result:&amp;nbsp;&lt;A href="https://1drv.ms/u/c/ba1be36be93085d3/ESgMetyXqfRMkUNXk4fVDmgBYp7sNjL0mrtKLTdbuDB-kg?e=PXTqua" target="_blank"&gt;WinuiTest_1.0.4.0_Test.zip&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 21:04:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/winui-crash-after-publish/m-p/1587700#M13314</guid>
      <dc:creator>Jube</dc:creator>
      <dc:date>2025-02-20T21:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: WinUI crash after publish</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/winui-crash-after-publish/m-p/1587707#M13315</link>
      <description>&lt;P&gt;I wonder if the machine is missing the C++ redistributable which &lt;A href="https://developers.arcgis.com/net/license-and-deployment/deployment/#define-arcgis-components-to-deploy" target="_self"&gt;is listed as a requirement&lt;/A&gt; for the .NET SDK (Visual Studio installs this too which explains why VS is fixing the crash)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could also try and use &lt;A href="https://learn.microsoft.com/en-us/sysinternals/downloads/procdump" target="_self"&gt;ProcDump&lt;/A&gt; to get a better idea why it is crashing. I've seen weird crashes like this in WinUI, and the error does point to their module.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 21:32:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/winui-crash-after-publish/m-p/1587707#M13315</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2025-02-20T21:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: WinUI crash after publish</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/winui-crash-after-publish/m-p/1587727#M13316</link>
      <description>&lt;P&gt;This article seem to cover a bit half way down how to add the VCLibs as a dependency:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/windows/msix/desktop/desktop-to-uwp-prepare" target="_blank"&gt;https://learn.microsoft.com/en-us/windows/msix/desktop/desktop-to-uwp-prepare&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It does look like if I add the following, that it shows up in the manifest of the generated app package, but no idea if that'll do the trick:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dotMorten_esri_0-1740088857535.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/125916iC864AE8FFB5FF4E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dotMorten_esri_0-1740088857535.png" alt="dotMorten_esri_0-1740088857535.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;You could at least start with confirming whether it is a vclibs issue on the machine where you can reproduce, by installing &lt;A href="https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170" target="_self"&gt;the C++ Redistributable&lt;/A&gt;&amp;nbsp;and verify if that addresses it.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 22:02:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/winui-crash-after-publish/m-p/1587727#M13316</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2025-02-20T22:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: WinUI crash after publish</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/winui-crash-after-publish/m-p/1587759#M13317</link>
      <description>&lt;P&gt;That was it!&lt;/P&gt;&lt;P&gt;After installing VC redist, no crash.&lt;BR /&gt;By adding &amp;lt;WinUISDKReferences&amp;gt;true&amp;lt;/WinUISDKReferences&amp;gt; in the csproj, 2 VCLibs packages are published :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jube_0-1740091096520.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/125921iB056A4B007CF1546/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jube_0-1740091096520.png" alt="Jube_0-1740091096520.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The app now works without the need to install VC redist.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 22:42:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/winui-crash-after-publish/m-p/1587759#M13317</guid>
      <dc:creator>Jube</dc:creator>
      <dc:date>2025-02-20T22:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: WinUI crash after publish</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/winui-crash-after-publish/m-p/1587761#M13318</link>
      <description>&lt;P&gt;Great! Nice find on&amp;nbsp;&lt;SPAN&gt;WinUISDKReferences property.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 22:48:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/winui-crash-after-publish/m-p/1587761#M13318</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2025-02-20T22:48:31Z</dc:date>
    </item>
  </channel>
</rss>

