syncfusion / maui-demos

This repository contains the Syncfusion .NET MAUI control’s samples and the guide to use them
196 stars 49 forks source link

MSIX Crash on startup #47

Open Strypper opened 5 months ago

Strypper commented 5 months ago

Hi everyone,

I've been struggling for the past three days to figure out why my application is exhibiting the following behavior:

  1. My application runs fine using VS 2022 and can start in both DEBUG and RELEASE modes without any issues.
  2. However, when we publish the application using the following CLI command:
    dotnet publish TestPublish1.csproj -f net8.0-windows10.0.19041.0 -c Release -p:RuntimeIdentifierOverride=win10-x64 --self-contained true

    The publishing process completes successfully, but the application crashes immediately upon startup when installed via MSIX.

  3. We checked the Event Viewer for more details and found the following errors on our machines:
    • Windows 10:
      • Faulting application name: mauisland.exe, version: 1.0.0.0, time stamp: 0x65a80000
      • Faulting module name: KERNELBASE.dll, version: 10.0.19041.4355, time stamp: 0xd7762934
    • Windows 11:
      • Faulting application name: mauisland.exe, version: 2.0.0.0, time stamp: 0x661f0000
      • Faulting module name: Microsoft.ui.xaml.dll, version: 3.1.5.0, time stamp: 0x7fd76c03

After removing all Syncfusion dependencies, we republished the application, and it started working again.

Tools and version .NET MAUI: 8.0.40 Syncfusion: See all the list below


        <PackageReference Include="Syncfusion.Maui.Backdrop" Version="25.2.7" />
        <PackageReference Include="Syncfusion.Maui.Barcode" Version="25.2.7" />
        <PackageReference Include="Syncfusion.Maui.Calendar" Version="25.2.7" />
        <PackageReference Include="Syncfusion.Maui.Charts" Version="25.2.7" />
        <PackageReference Include="Syncfusion.Maui.Core" Version="25.2.7" />
        <PackageReference Include="Syncfusion.Maui.DataForm" Version="25.2.7" />
        <PackageReference Include="Syncfusion.Maui.DataGrid" Version="25.2.7" />
        <PackageReference Include="Syncfusion.Maui.Gauges" Version="25.2.7" />
        <PackageReference Include="Syncfusion.Maui.Inputs" Version="25.2.7" />
        <PackageReference Include="Syncfusion.Maui.ListView" Version="25.2.7" />
        <PackageReference Include="Syncfusion.Maui.Maps" Version="25.2.7" />
        <PackageReference Include="Syncfusion.Maui.PdfViewer" Version="25.2.7" />
        <PackageReference Include="Syncfusion.Maui.ProgressBar" Version="25.2.7" />
        <PackageReference Include="Syncfusion.Maui.SignaturePad" Version="25.2.7" />
        <PackageReference Include="Syncfusion.Maui.Sliders" Version="25.2.7" />
        <PackageReference Include="Syncfusion.Maui.TabView" Version="25.2.7" />

VS2022: 17.11.0 Preview 1.1