Unhandled exception at 0x00007FFCF05E675B (Windows.UI.Xaml.dll)

4

I've developed an UWP app, for which I have already managed to build and publish package on the Store, without any problem. As some users encounter performances problems, I would like to test my last changes by compiling the code with ".Net Native tool chain".

But I get an exception before the end of the build: enter image description here If I uncheck the case "Compile with .NET Native tool chain", there is no longer problem.

The other builds parameters are "Release" and "x64".

Would you have any idea? Why didn't I encounter this exception when I've created my packages?

[Edit] 2017-02-13 : what's new

I have some news about this problem.

Firstly, the Store version has new "bug" that seems to raise when leaving a page through OnNavigatedFrom():

protected override void OnNavigatedFrom(NavigationEventArgs e)
{
    ViewModel = this.DataContext as DetailsViewModel;
    if (!ViewModel.ToChildNavigate)
    {
        // Dispose resources
        this.Resources.Clear();
        this.Loaded -= DetailsPage_Loaded;
        ViewModel = null;
    }
    base.OnNavigatedFrom(e);            
}

In Debug mode, this code works very well...

I have also remarked that I can actually compile in "Release" mode with ".Net Native tool chain". But it only works until a usser logged in.

At the launch of the app, there are 2 possibilities:

  • at the first launch, or if no user is logged, the app goes on a "Login" page
  • when a user has successfully logged in, the user account is saved in a Storage file, and the app goes on the "Home" page

The error message ("Unhandled exception...") only appears after the user sucessfully logged in, so the use of the file could be an explanation. But as I can't use breakpoints in "Release" mode, I'm not sure at all...

Here are the last lines of the "Output" window:

'ComponentAnalysisReport.UWP.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msv1_0.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled. 'ComponentAnalysisReport.UWP.exe' (Win32): Loaded 'C:\Windows\SysWOW64\NtlmShared.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled. 'ComponentAnalysisReport.UWP.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptdll.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled. 'ComponentAnalysisReport.UWP.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Dyna6164b5c9#\2e1e02d5c22607472a9047fbf3c27616\System.Dynamic.Runtime.ni.dll'. 'ComponentAnalysisReport.UWP.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Runtcf595564#\31f53d6bf5e2b71b24f4ce2030dd28e9\System.Runtime.Numerics.ni.dll'. 'ComponentAnalysisReport.UWP.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Numerics\5237480aedaa4904c6fd85dae99af471\System.Numerics.ni.dll'. 'ComponentAnalysisReport.UWP.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Runteb92aa12#\213003369298faf75651a6b8981dce12\System.Runtime.Serialization.ni.dll'. 'ComponentAnalysisReport.UWP.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Xml.XDocument\fa16b0c36bab379f0bf98c050f57b3f6\System.Xml.XDocument.ni.dll'. 'ComponentAnalysisReport.UWP.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Xml.Linq\6e975e2acfc33e1c706f00bf2942e187\System.Xml.Linq.ni.dll'. 'ComponentAnalysisReport.UWP.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Text2f5a8366#\25f6a0dc41a72364fd9b2a2ea662ec8e\System.Text.RegularExpressions.ni.dll'. 'ComponentAnalysisReport.UWP.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Colldfb0b5ae#\0b99eb4fa4efaf834ac44e036afc8530\System.Collections.Concurrent.ni.dll'. 'ComponentAnalysisReport.UWP.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Linqa402077a#\203c9b8ac6a2ed5bc6fd77011eada55c\System.Linq.Queryable.ni.dll'. 'ComponentAnalysisReport.UWP.exe' (Win32): Loaded 'C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.14393.447_none_5507ded2cb4f7f4c\comctl32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled. 'ComponentAnalysisReport.UWP.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntmarta.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled. 'ComponentAnalysisReport.UWP.exe' (Win32): Loaded 'C:\Windows\SysWOW64\Windows.ApplicationModel.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled. 'ComponentAnalysisReport.UWP.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Refl588a0515#\1e199ee46bc1cbfe8da8b25cf617bb6e\System.Reflection.Primitives.ni.dll'. 'ComponentAnalysisReport.UWP.exe' (Win32): Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\diasymreader.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled. Unhandled exception at 0x068F73C8 (Windows.UI.Xaml.dll) in ComponentAnalysisReport.UWP.exe: 0xC000027B: Une exception interne de l’application s’est produite (parameters: 0x15732DD0, 0x00000002).

How could I debug my app in "Release" mode under Visual Studio? Why are there always differences between the Store version and "Release" version?

Regards...

c#
.net
xaml
uwp
native
asked on Stack Overflow Jan 10, 2017 by Gold.strike • edited Feb 13, 2017 by Gold.strike

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0