Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on opening under Wayland with scaling #212

Closed
cbzeller opened this issue Jun 26, 2023 · 1 comment
Closed

Crash on opening under Wayland with scaling #212

cbzeller opened this issue Jun 26, 2023 · 1 comment
Labels
bug Something isn't working has-workaround A bug that has a viable workaround
Milestone

Comments

@cbzeller
Copy link

I compiled with Wayland support as described in #54. I am using Hyprland as my compositor and I am using display scaling. Supersonic immediately crashes if either WindowWidth or WindowHeight in config.toml is an odd number. Changing it to an even number allows Supersonic to launch normally.

Here is the entire output

2023/06/26 00:01:27 Starting supersonic...
2023/06/26 00:01:27 Using config dir: /home/cbz/.config/supersonic
2023/06/26 00:01:27 Using cache dir: /home/cbz/.cache/supersonic
2023/06/26 00:01:27 Creating session lock file
2023/06/26 00:01:27 failed to load theme file "": open /home/cbz/.config/supersonic/themes: no such file or directory
2023/06/26 00:01:27 PlatformError: Wayland: Setting window icon not supported
2023/06/26 00:01:28 PlatformError: Wayland: Focusing a window requires user interaction
2023/06/26 00:01:28 PlatformError: Wayland: Window position retrieval not supported
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 PlatformError: Wayland: Window position setting not supported
2023/06/26 00:01:28 PlatformError: Wayland: Focusing a window requires user interaction
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230
505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
2023/06/26 00:01:28 Fyne error:  could not load SVG, falling back to static content:
2023/06/26 00:01:28   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/06/26 00:01:28   At: /home/cbz/.cache/paru/clone/supersonic-desktop/src/gopath/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20230505012127-ca61c153b2a5/internal/svg/svg.go:27
wl_surface@22: error 2: Buffer size (1251x676) is not divisible by scale (2)
2023/06/26 00:01:28 Running shutdown tasks...
@dweymouth
Copy link
Owner

Interesting, I'm not surprised there are some bugs with Wayland as the UI library (Fyne) doesn't officially support it - it's in experimental alpha. If this is the only Wayland error you're seeing though you could easily fix it by rounding to an even number here where it saves the previous window size to the config file on exit. I'll bring this up to the Fyne team too

@dweymouth dweymouth added bug Something isn't working has-workaround A bug that has a viable workaround labels Jul 14, 2023
@dweymouth dweymouth added this to the 0.5.0 milestone Jul 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working has-workaround A bug that has a viable workaround
Projects
None yet
Development

No branches or pull requests

2 participants