Failed to start tutorial app on Linux
Describe the bug
When trying to run the first program in the tutorial I get this error:
go run main.go X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 149 () Minor opcode of failed request: 4 Serial number of failed request: 239 Current serial number in output stream: 249 exit status 1
About my system:
go version go1.24.2 linux/amd64 Ubuntu 24.04.2 LTS GPU Nvidia RTX 3090 XDG_SESSION_TYPE=x11 xorg 1:7.7+23ubuntu3 amd64 X.Org X Window System
How to reproduce
Run this program:
package main
import "cogentcore.org/core/core"
func main() {
b := core.NewBody()
core.NewButton(b).SetText("Hello, World!")
b.RunMainWindow()
}
Example code
Relevant output
go run main.go
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 149 ()
Minor opcode of failed request: 4
Serial number of failed request: 239
Current serial number in output stream: 249
exit status 1
Platform
Linux
The same thing happens when trying to run the clock example in this repo. It does work on my laptop with Ubuntu 24.04, but not my desktop, so I'm not sure if the GPU is causing the problem or it's something else I've installed.
@celer Thank you for reporting this. Can you please paste the output of webgpuinfo and vulkaninfo to help us debug this? Thank you!
FYI, I transferred this issue to cogentcore/core, since that is the repo for the GUI framework, whereas cogentcore/cogent is the repo for our apps made with it; the naming is confusing and we will rename the cogent repo to apps soon.
I went back and made sure I followed the directions on the cogentcore.org for installation to make sure I was following the provided instructions, I still get he same error (after running go clean -modcache)
Here are the files you asked for:
$ go run cogentcore.org/core/examples/demo@main
go: downloading github.com/Bios-Marcel/wastebasket/v2 v2.0.3
go: downloading github.com/h2non/filetype v1.1.3
go: downloading github.com/Masterminds/vcs v1.13.3
go: downloading github.com/fsnotify/fsnotify v1.8.0
go: downloading github.com/alecthomas/chroma/v2 v2.13.0
go: downloading github.com/cogentcore/webgpu v0.23.0
go: downloading github.com/go-gl/glfw/v3.3/glfw v0.0.0-20240506104042-037f3cc74f2a
go: downloading github.com/gobwas/glob v0.2.3
go: downloading github.com/dlclark/regexp2 v1.11.0
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 149 ()
Minor opcode of failed request: 4
Serial number of failed request: 231
Current serial number in output stream: 241
exit status 1
I did make progress on this, it looks like it was because I was using X11 not Wayland :(