wails icon indicating copy to clipboard operation
wails copied to clipboard

Our own project and those built from templates fail to start when built with wails build on Ubuntu 20.04

Open markawightman75 opened this issue 3 years ago • 3 comments

Description

When we build our own project (created from the wails-vite-svelte-tailwind-template template) using wails build on Ubuntu, the compiled exe does not run. The process starts and blocks, a window icon appears in the task bar but no window actually renders.

I created two new projects from the vanilla and svelte-ts project templates and see the same thing.

When I run wails build I see this output but no window is rendered:

mark@mark-desktop ~/c/w/vanilla [SIGINT]> ./build/bin/vanilla
Overriding existing handler for signal 10. Set JSC_SIGNAL_FOR_GC if you want WebKit to use a different signal

I'm not sure if it is related, but when I run wails dev on the vanilla project then I see a Failed to set scheduler settings: Operation not permitted error:

mark@mark-desktop ~/c/w/vanilla> wails dev
Wails CLI v2.0.0-beta.37


Executing: go mod tidy -compat=1.17
Executing: wails generate module
Building application for development...
  - Installing frontend dependencies: Done.
  - Compiling frontend: Done.
  - Compiling application: Done.
  - Packaging application: Done.

Running frontend dev watcher command: 'npm run dev'
Watching (sub)/directory: /home/mark/code/wails-v2/vanilla
Using DevServer URL: http://localhost:34115
Using Frontend DevServer URL: http://localhost:3000
Using reload debounce setting of 100 milliseconds
INF | Serving assets from frontend DevServer URL: http://localhost:3000
Added new directory to watcher: /home/mark/code/wails-v2/vanilla/frontend/wailsjs/go
Overriding existing handler for signal 10. Set JSC_SIGNAL_FOR_GC if you want WebKit to use a different signal
DEB | [DevWebServer] Waiting for frontend DevServer 'http://localhost:3000' to be ready

> [email protected] dev
> vite


  vite v2.9.9 dev server running at:

  > Local: http://localhost:3000/
  > Network: use `--host` to expose

  ready in 117ms.

DEB | [DevWebServer] Serving DevServer at http://localhost:34115
DEB | [ExternalAssetHandler] Loading 'http://localhost:3000/'
DEB | [ExternalAssetHandler] Loading 'http://localhost:3000/@vite/client'
DEB | [ExternalAssetHandler] Loading 'http://localhost:3000/src/main.js'
DEB | [ExternalAssetHandler] Loading 'http://localhost:3000/node_modules/vite/dist/client/env.mjs'
DEB | [ExternalAssetHandler] Loading 'http://localhost:3000/src/style.css'
DEB | [ExternalAssetHandler] Loading 'http://localhost:3000/src/app.css'
DEB | [ExternalAssetHandler] Loading 'http://localhost:3000/src/assets/images/logo-universal.png?import'
DEB | [ExternalAssetHandler] Loading 'http://localhost:3000/wailsjs/go/main/App.js'
DEB | [ExternalAssetHandler] Loading 'http://localhost:3000/src/assets/images/logo-universal.png'
DEB | [ExternalAssetHandler] Loading 'http://localhost:3000/src/assets/fonts/nunito-v16-latin-regular.woff2'

(process:183734): GLib-CRITICAL **: 20:39:07.873: Failed to set scheduler settings: Operation not permitted

To Reproduce

  1. Run wails init -t vanilla -n vanilla
  2. Run wails build
  3. Run ./build/bin/vanilla

Expected behaviour

The application starts and the window is rendered.

Screenshots

No response

Attempted Fixes

Not sure what I can do to help debug this, but I'm very willing to help if you can give me any suggestions!

System Details

System
------
OS:		Ubuntu
Version: 	20.04
ID:		ubuntu
Go Version:	go1.17.5
Platform:	linux
Architecture:	amd64

Wails
------
Version: 		v2.0.0-beta.37
Package Manager: 	apt

Dependency	Package Name		Status		Version
----------	------------		------		-------
*docker		docker.io		Installed	20.10.16
gcc		build-essential		Installed	12.8ubuntu1.1
libgtk-3	libgtk-3-dev		Installed	3.24.20-0ubuntu1.1
libwebkit	libwebkit2gtk-4.0-dev	Installed	2.36.2-0ubuntu0.20.04.1
npm		npm			Installed	8.10.0
*nsis		nsis			Available	3.05-2
pkg-config	pkg-config		Installed	0.29.1-0ubuntu4

* - Optional Dependency

Diagnosis
---------
Your system is ready for Wails development!
Optional package(s) installation details: 
  - nsis: sudo apt install nsis



### Additional context

_No response_

markawightman75 avatar May 29 '22 19:05 markawightman75

Thanks for opening this. A quick google suggests it's something to do with limits.conf. Looks like this is a local issue, not a Wails issue. If you find a solution, it would make a good addition to the troubleshooting guide.

https://www.reddit.com/r/pipewire/comments/u9bx7t/wireplumber_failed_to_set_scheduler_settings/

leaanthony avatar May 29 '22 21:05 leaanthony

@markawightman75 - Did you find a solution to this?

leaanthony avatar Jun 18 '22 09:06 leaanthony

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 31 '22 20:07 stale[bot]

Same issue here with Manjaro gnome latest

pablodz avatar Nov 12 '22 05:11 pablodz

Hi! It looks like you are trying to report a bug but haven't provided enough details. Please make sure your report includes:

  • Clear, reproducible steps that demonstrates the bug
  • Please include the output of wails doctor

leaanthony avatar Nov 12 '22 06:11 leaanthony

Closing this due to lack of feedback.

leaanthony avatar Nov 25 '22 03:11 leaanthony