MahApps / MahApps.Metro.IconPacks

Awesome icon packs for WPF and UWP in one library
MIT License
1.74k stars 214 forks source link

UWP app with MahApps.Metro.IconPacks crash at startup #138

Closed patriksvensson closed 4 years ago

patriksvensson commented 5 years ago

Describe the bug

When building an UWP application in release mode targeting x64, the application crashes due to a StackOverflow exception. The debugger in Visual Studio just hangs for me but I managed to find the exception via WinDbg.

(37d0.1da8): Stack overflow - code c00000fd (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
App2!$9_MahApps::Metro::IconPacks::MahApps_Metro_IconPacks_XamlTypeInfo::XamlTypeInfoProvider.CreateXamlType+0x2:

To Reproduce

  1. Create a new UWP project targeting min version 10.0.17763.0
  2. Add a reference to version 3.0.0-alpha0169 of MahApps.Metro.IconPacks (newer versions makes the project uncompilable for some reason)
  3. Change configuration to Release and architecture to X64
  4. Run the project

Expected behavior

The window should show some icons.

Desktop Environment (please complete the following information):

Additional context

The application runs as expected under Release|x86 and correctly for all architectures when building the Debug configuration.

punker76 commented 4 years ago

@patriksvensson I tried this again with 3.0.0-alpha0212 and can not reproduce this. So I'll close this for now. Feel free to re-open this or create a new issue if you still get this error.

patriksvensson commented 4 years ago

@punker76 Hmm, I thought I reported back that 3.0.0-alpha0200 works as expected both with x86 and x64 but I seem to have forgotten to do that for some reason... Sorry about that. This can absolutely be closed!