-
-
Notifications
You must be signed in to change notification settings - Fork 22.8k
Description
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:
- The app runs fine if compiled with
target=debug
ortarget=release_debug
build, but crashes on opening withtarget=release
. - The
target=release
build runs fine from Visual Studio, even when debugging the installed app. - Compiling the release with
/SUBSYSTEM:CONSOLE
instead of/SUBSYSTEM:WINDOWS
makes it work, but also opens the console window when launched. - This is not the case when running on the phone emulator. The release build opens fine there.