Skip to content

UWP exported app does not work in release mode #9131

@vnen

Description

@vnen

I'm having a hard time figuring out this problem, so I'll leave this issue open until I (or someone else) can solve it. This is valid for 2.1 and 2.2, so I assume it is the same for master.

The UWP app exported does not run when installed, it just crashes on opening. The only debug info I have is the EventViewer, which does not help at all:

ActivateApplicationForContractByAppIdAsUserWithHost of the app Godot.Engine.Test_q1xfrwf3pzxew!App for the Windows.Launch contract failed with Access is denied..

Trying to debug the installed app from Visual Studio (via Debug > Other Debug Targets > Debug Installed App Package) is not helpful because it runs fine there! So there's something fishy about how apps are launched that is a mystery (at least for me).

Summing up what I know:

  1. The app runs fine if compiled with target=debug or target=release_debug build, but crashes on opening with target=release.
  2. The target=release build runs fine from Visual Studio, even when debugging the installed app.
  3. Compiling the release with /SUBSYSTEM:CONSOLE instead of /SUBSYSTEM:WINDOWS makes it work, but also opens the console window when launched.
  4. This is not the case when running on the phone emulator. The release build opens fine there.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions