wailsapp / wails

Create beautiful applications using Go
https://wails.io
MIT License
25.34k stars 1.22k forks source link

Error when either running `wails serve` or running executable generated by `wails build` #278

Closed psidex closed 5 years ago

psidex commented 5 years ago

Description

An error message pops up when I try to run the executable generated by wails build.

Dismissing this message by either pressing "yes" or "no" closes the error window and the normal window is just a blank white box.

In a similar vein, running wails serve gives an error - https://pastebin.com/4JBWNeDY. Unfortunately the output is not too helpful.

To Reproduce

Steps to reproduce the behaviour:

  1. Create a new project using wails init
    • This was tested with both React and Vue project templates
  2. cd to the project directory and run wails build
  3. Run the projectname.exe file
  4. See error

OR

  1. Create a new project using wails init
  2. cd to the project directory
  3. Run wails serve and the stop it
  4. Interestingly enough, the first time wails serve is run it works fine. It's only the second time and onward that it breaks, so run wails serve again
  5. See error

Expected behaviour

The app opens and displays the default wails project page.

Screenshots

wails build:

Error: https://i.imgur.com/kp1Ff9T.png

After error closed: https://i.imgur.com/Bxj0G4N.png

wails serve:

https://pastebin.com/4JBWNeDY

System Details

Name Value
Wails Version v0.18.13-pre
Go Version go1.13.1
Platform windows
Arch amd64
GO111MODULE (Not Set)
GCC 4.8.3
Npm v10.16.3
Node 6.9.0

Additional context

This is basically 2 issues in one but I think they are possibly related?

Also just as a side note I have switched over to tdm-gcc and this still happens.

leaanthony commented 5 years ago

Hi. Can you please test with the latest prerelease? wails update -pre

Thanks!

On Sat, 26 Oct 2019, 07:54 Simon, notifications@github.com wrote:

Description

An error message pops up when I try to run the executable generated by wails build.

Dismissing this message by either pressing "yes" or "no" closes the error window and the normal window is just a blank white box.

In a similar vein, running wails server gives an error - https://pastebin.com/4JBWNeDY. Unfortunately the output is not too helpful.

To Reproduce

Steps to reproduce the behaviour:

  1. Create a new project using wails init
    • This was tested with both React and Vue project templates
  2. cd to the project directory and run wails build
  3. Run the projectname.exe file
  4. See error

OR

  1. Create a new project using wails init
  2. cd to the project directory
  3. Run wails serve
  4. See error

Expected behaviour

The app opens and displays the default wails project page.

Screenshots

wails build:

Error: https://i.imgur.com/kp1Ff9T.png

After error closed: https://i.imgur.com/Bxj0G4N.png

wails serve:

https://pastebin.com/4JBWNeDY

System Details Name Value Wails Version v0.18.13-pre Go Version go1.13.1 Platform windows Arch amd64 GO111MODULE (Not Set) GCC 4.8.3 Npm v10.16.3 Node 6.9.0

Additional context

This is basically 2 issues in one but I think they are possibly related?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/wailsapp/wails/issues/278?email_source=notifications&email_token=AAO2SYGOUMKOGUL65DN7UKDQQNMIVA5CNFSM4JFJA44KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HUPN5ZQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAO2SYAGIEDN647LTBGLRWTQQNMIVANCNFSM4JFJA44A .

psidex commented 5 years ago

I'm on v0.18.13-pre and it says that's the latest prerelease?

FriendlyUser commented 5 years ago

I am getting the same error

leaanthony commented 5 years ago

Update: I now have serve working correctly, even through IE. However the built app still throws the same error, which is weird as it's the same code going to the same web engine. Still debugging.

scshin0572 commented 5 years ago

Please check out the file attached to this comment(https://github.com/wailsapp/wails/issues/259#issuecomment-547284087). webview_fix_ie_compat_mode() and more functions fixed.

JHunz commented 5 years ago

I'm also having this issue. I tried the patch above, and I don't know if I built wails wrong but it didn't seem to resolve the issue for me

leaanthony commented 5 years ago

Please let me know if v0.18.15-pre fixes this. wails update -pre. Thanks!

FriendlyUser commented 5 years ago

Didn't fix it for now

leaanthony commented 5 years ago

Are you using Windows 7 or 10? It's working fine for me on Windows 10.

On Sun, 3 Nov 2019, 11:13 David Li, notifications@github.com wrote:

Didn't fix it for now

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/wailsapp/wails/issues/278?email_source=notifications&email_token=AAO2SYD5G45223ZPEM6QOA3QRYJTFA5CNFSM4JFJA44KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEC5H2TA#issuecomment-549092684, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAO2SYEUFQ6T3J6PXBXCXSTQRYJTFANCNFSM4JFJA44A .

psidex commented 5 years ago

Tested on Win 10, wails serve is now working fine for me.

FriendlyUser commented 5 years ago

@leaanthony wails serve has always worked for me, wails build is still failing for me.

leaanthony commented 5 years ago

Hi. Please run wails update -pre to get v0.19.0-pre2. Let me know if this fixes your issue. Thanks

FriendlyUser commented 5 years ago

Still failed for me

On Wails v0.19.0-pre2 - Building Application image

Didn't update or regenerate go.mod

lukasvosyka commented 5 years ago

Hi Lea,

for me wails 0.190-pre2 now works also with the built .exe on Windows 10. But I had to recreate (wails init) a new project. After that it seems to work. Thanks!

leaanthony commented 5 years ago

Awesome. Due to dependency versioning, you will need to either update go.mod or regenerate.

On Tue, 5 Nov 2019, 08:25 Lukas Vosyka, notifications@github.com wrote:

Hi Lea,

for me wails 0.190-pre2 now works also with the built .exe on Windows 10. But I had to recreate (wails init) a new project. After that it seems to work. Thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/wailsapp/wails/issues/278?email_source=notifications&email_token=AAO2SYFDX7JB3WXXPCOXDVDQSCHLRA5CNFSM4JFJA44KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDAYOTY#issuecomment-549553999, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAO2SYF23BF7JGCHDN72RPLQSCHLRANCNFSM4JFJA44A .

FriendlyUser commented 5 years ago

Worked for me when I reinit the wails project.