dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.96k stars 1.7k forks source link

[Windows] App works in Debug and Release configurations but crashes in Microsoft Store #23652

Closed janne-hmp closed 1 month ago

janne-hmp commented 1 month ago

Description

We are trying to upload our game GnollHack to the Game side of the Microsoft Store. It works fine in Debug and Release configurations on all local Windows machines we have tested it on. However, Microsoft Store certification reports that it immediately crashes upon pressing Play Game button with no error messages or logs whatsoever. The tester's Windows version is the same as ours (10.0.22631).

Here's a link to the sideloadable MSIX package. It also works fine with us locally on all machines we have installed it on.

Steps to Reproduce

  1. Submit the GnollHackM MSIX package to the Game side of Microsoft Store
  2. Certification process fails with the game crashing when pressing Play Game. There is no error message. Local copies and sideloaded app seem to work fine.

Link to public reproduction project repository

https://github.com/hyvanmielenpelit/GnollHack

Version with bug

9.0.0-preview.6.24327.7

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows 11

Did you find any workaround?

No, the Microsoft Store certification seems to always fail / game always crashes during certification when pressing Play Game.

Relevant log output

Microsoft Store certification did not provide any.
github-actions[bot] commented 1 month ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

janne-hmp commented 1 month ago

@jonathanpeppers This might be caused by #23659, since we can't use the same package locally and in store, as they have different signatures.

janne-hmp commented 1 month ago

It might have been the missing fonts (#23659), or a SkiaSharp crash, or both, but either way, Microsoft Store now updated their setup and I updated the MSIX package, and the problem is finally resolved.