microsoft / WinUI-Gallery

This app demonstrates the controls available in WinUI and the Fluent Design System.
MIT License
2.65k stars 612 forks source link

[Bug] Crash after clicking "Settings" #1528

Closed Mikachu2333 closed 2 months ago

Mikachu2333 commented 2 months ago

Which version of the app?

WinUI 3 Gallery

Description

Win10 22h2 (19045.4291), installed in Microsoft Store, VS 2022 has been installed with .net and cpp desktop target.

How could I debug it or upload the log files as a user who is not an expert in programming?

Screenshots

https://github.com/microsoft/WinUI-Gallery/assets/63829496/3bf31042-ab07-42ab-bd3f-6cb2d93d1cb0

Windows version

Windows 10 22H2 (19045)

Additional context

No response

Jay-o-Way commented 2 months ago

There seems to be an issue with the video - at least for me, at the moment. Can you check it. And also give steps to reproduce in text please. Thanks :)

Mikachu2333 commented 2 months ago

Sorry for use H265 codec and this caused the video unable to play.

Steps:

  1. Open the application
  2. Click Settings
  3. Crash

https://github.com/microsoft/WinUI-Gallery/assets/63829496/f86586dc-d248-4905-8d7c-36e21bc5685c

Jay-o-Way commented 2 months ago

Can reproduce. @marcelwgn high priority. All I got from Visual Studio is a quick

Exception thrown: 'System.InvalidOperationException' in System.Linq.dll
Exception thrown at 0x00007FF93D4553AC (KernelBase.dll) in WinUIGallery.exe: WinRT originate error - 0x80131509 : 'Sequence contains no elements'.
Microsoft.ui.xaml.dll!00007FF850109151: CallContext:[\ImageDecodeActivity] 80131509 - The program '[22664] WinUIGallery.exe' has exited with code 1 (0x1).

At the moment I'm suspecting something in WinAppSdkRuntimeDetails but I'm not sure. @Scottj1s https://github.com/microsoft/WinUI-Gallery/blob/95371849c8a964c715a051e6ed2d8575374ebfab/WinUIGallery/App.xaml.cs#L49-L60

karkarl commented 2 months ago

This should be resolved with #1480 soon

Jay-o-Way commented 2 months ago

Duplicate of #1477

karkarl commented 2 months ago

@Mikachu2333 To debug a store app, you can try attach to process with Visual Studio: https://learn.microsoft.com/en-us/visualstudio/debugger/attach-to-running-processes-with-the-visual-studio-debugger?view=vs-2022

Let me know if this helps.