Fyne: binary not work by fyne package on windows

Created on 11 Nov 2020  路  5Comments  路  Source: fyne-io/fyne

Describe the bug:

Program 'test.exe' failed to run: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for 
more detailAt line:1 char:1
+ .\OProgX.exe
+ ~~~~~~~~~~~~.
At line:1 char:1
+ .\OProgX.exe
+ ~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed

!! After using ResHacker to remove the Manifest resourse, it could run normally.

To Reproduce:

Steps to reproduce the behaviour:

  1. fyne package -os windows
  2. ./test.exe throw error
  3. use ResHacker to remove Manifest resourse.
  4. ./test.exe works fine

Device (please complete the following information):

  • OS: Win10
  • Version: 2004
  • Go version: 1.15.2 windows/amd64
  • Fyne version: 1.4
bug

Most helpful comment

Haha, I also encountered this problem, and then I solved it like this:
fyne package -os windows -appVersion 1.1.1

All 5 comments

Is it possible to get more information as suggested in Please see the application event log or use the command-line sxstrace.exe tool for more detail?
It is likely an issue inside the manifest, hopefully the output has more.
We can't remove the manifest completely so unfortunately it's not a solution.

I got the exact same issue. Upon deleting the Manifest, the *.exe runs.

Apologies, this has been resolved on release/v1.4.x branch, and will be in the 1.4.1 release soon.

Haha, I also encountered this problem, and then I solved it like this:
fyne package -os windows -appVersion 1.1.1

Thanks for providing this information, that is a great workaround.
The problem was that version numbering is optional on package, but the fallback number was not Windows compatible.
Adding -appVersion is perfect until 1.4.1 is out.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

codenoid picture codenoid  路  4Comments

hajimehoshi picture hajimehoshi  路  9Comments

HeyDon-Lee picture HeyDon-Lee  路  9Comments

semyon-dev picture semyon-dev  路  4Comments

andydotxyz picture andydotxyz  路  7Comments