dweymouth / supersonic

A lightweight and full-featured cross-platform desktop client for self-hosted music servers
GNU General Public License v3.0
953 stars 46 forks source link

Error: "APIUnavailable: GLX: No GLXFBConfigs returned", application fails to start. #419

Open MegaCarp opened 4 months ago

MegaCarp commented 4 months ago

OS: Linux fedora-pc 6.8.12-201.fsync.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC TKG Wed Jun 19 10:00:02 UTC 2024 x86_64 GNU/Linux

package source: flatpak

Name              Application ID                                  Version          Branch      Installation
Supersonic     io.github.dweymouth.supersonic 0.12.0            stable         user

flatpak run io.github.dweymouth.supersonic

2024/07/09 19:39:16 Starting supersonic...
2024/07/09 19:39:16 Using config dir: /home/user/.var/app/io.github.dweymouth.supersonic/config/supersonic
2024/07/09 19:39:16 Using cache dir: /home/user/.var/app/io.github.dweymouth.supersonic/cache/supersonic
2024/07/09 19:39:16 failed to load theme file "": open /home/user/.var/app/io.github.dweymouth.supersonic/config/supersonic/themes: no such file or directory
go-gl/glfw: internal error: an uncaught error has occurred: APIUnavailable: GLX: No GLXFBConfigs returned
go-gl/glfw: Please report this in the Go package issue tracker.
go-gl/glfw: internal error: an invalid error was not accepted by the caller: FormatUnavailable: GLX: Failed to find a suitable GLXFBConfig
go-gl/glfw: Please report this in the Go package issue tracker.
panic: FormatUnavailable: GLX: Failed to find a suitable GLXFBConfig

goroutine 1 [running, locked to thread]:
github.com/go-gl/glfw/v3.3/glfw.acceptError({0xc0003eb8d0, 0x2, 0x404edc0?})
    /run/build/supersonic/vendor/github.com/go-gl/glfw/v3.3/glfw/error.go:181 +0x228
github.com/go-gl/glfw/v3.3/glfw.CreateWindow(0xa, 0xa, {0xeb78a1?, 0xe?}, 0x0, 0x0)
    /run/build/supersonic/vendor/github.com/go-gl/glfw/v3.3/glfw/window.go:349 +0x165
fyne.io/fyne/v2/internal/driver/glfw.(*window).create.func1()
    /run/build/supersonic/vendor/fyne.io/fyne/v2/internal/driver/glfw/window_desktop.go:747 +0x11f
fyne.io/fyne/v2/internal/driver/glfw.runOnMain(0x0?)
    /run/build/supersonic/vendor/fyne.io/fyne/v2/internal/driver/glfw/loop.go:45 +0xe2
fyne.io/fyne/v2/internal/driver/glfw.(*window).create(0xc00037b6c0)
    /run/build/supersonic/vendor/fyne.io/fyne/v2/internal/driver/glfw/window_desktop.go:719 +0x56
fyne.io/fyne/v2/internal/driver/glfw.(*gLDriver).SetSystemTrayMenu.func1()
    /run/build/supersonic/vendor/fyne.io/fyne/v2/internal/driver/glfw/driver_desktop.go:68 +0xfb
sync.(*Once).doSlow(0xe85660?, 0x1f12f01?)
    /usr/lib/sdk/golang/src/sync/once.go:74 +0xc2
sync.(*Once).Do(...)
    /usr/lib/sdk/golang/src/sync/once.go:65
fyne.io/fyne/v2/internal/driver/glfw.(*gLDriver).SetSystemTrayMenu(0xc00036c1c0, 0xc00040b230)
    /run/build/supersonic/vendor/fyne.io/fyne/v2/internal/driver/glfw/driver_desktop.go:39 +0x58
fyne.io/fyne/v2/app.(*fyneApp).SetSystemTrayMenu(0x164c210?, 0xc00040b230?)
    /run/build/supersonic/vendor/fyne.io/fyne/v2/app/app_xdg.go:101 +0x3c
github.com/dweymouth/supersonic/ui.(*MainWindow).SetupSystemTrayMenu(0xc0004a8080, {0xeb18e5, 0xa}, {0x104ef38?, 0xc0002d06e0})
    /run/build/supersonic/ui/mainwindow.go:249 +0x632
github.com/dweymouth/supersonic/ui.NewMainWindow({0x104ef38, 0xc0002d06e0}, {0xc0000766e8?, 0x44cf8d?}, {0xeb18e5, 0xa}, {0xeab468, 0x6}, 0xc000348a88)
    /run/build/supersonic/ui/mainwindow.go:75 +0x305
main.main()
    /run/build/supersonic/main.go:49 +0x290
dweymouth commented 4 months ago

It looks like you may need to update Flatpak - see this similar issue from another project - https://github.com/PrismLauncher/PrismLauncher/issues/866

dweymouth commented 4 months ago

Just curious if you were able to resolve this with a Flatpak update or anything else?

tommyalatalo commented 1 month ago

I have the same error after installing the app from the Nix package manager, not flatpak. My error message in its entirety:

❯ supersonic
2024/11/02 11:50:34 Error reading app config file: open /home/tommy/.config/supersonic/config.toml: no such file or directory
2024/11/02 11:50:34 Starting supersonic...
2024/11/02 11:50:34 Using config dir: /home/tommy/.config/supersonic
2024/11/02 11:50:34 Using cache dir: /home/tommy/.cache/supersonic
2024/11/02 11:50:34 failed to load theme file "": open /home/tommy/.config/supersonic/themes: no such file or directory
go-gl/glfw: internal error: an uncaught error has occurred: APIUnavailable: GLX: No GLXFBConfigs returned
go-gl/glfw: Please report this in the Go package issue tracker.
go-gl/glfw: internal error: an invalid error was not accepted by the caller: FormatUnavailable: GLX: Failed to find a suitable GLXFBConfig
go-gl/glfw: Please report this in the Go package issue tracker.
panic: FormatUnavailable: GLX: Failed to find a suitable GLXFBConfig

goroutine 1 [running, locked to thread]:
github.com/go-gl/glfw/v3.3/glfw.acceptError({0xc0003bf728, 0x2, 0x13109ab0?})
        github.com/go-gl/glfw/v3.3/glfw@v0.0.0-20240506104042-037f3cc74f2a/error.go:181 +0x225
github.com/go-gl/glfw/v3.3/glfw.CreateWindow(0xa, 0xa, {0xf0e3e4?, 0xe?}, 0x0, 0x0)
        github.com/go-gl/glfw/v3.3/glfw@v0.0.0-20240506104042-037f3cc74f2a/window.go:349 +0x15d
fyne.io/fyne/v2/internal/driver/glfw.(*window).create.func1()
        fyne.io/fyne/v2@v2.5.0/internal/driver/glfw/window_desktop.go:751 +0x11f
fyne.io/fyne/v2/internal/driver/glfw.runOnMain(0x0?)
        fyne.io/fyne/v2@v2.5.0/internal/driver/glfw/loop.go:45 +0xd0
fyne.io/fyne/v2/internal/driver/glfw.(*window).create(0xc0004a5dc0)
        fyne.io/fyne/v2@v2.5.0/internal/driver/glfw/window_desktop.go:723 +0x56
fyne.io/fyne/v2/internal/driver/glfw.(*gLDriver).SetSystemTrayMenu.func1()
        fyne.io/fyne/v2@v2.5.0/internal/driver/glfw/driver_desktop.go:71 +0xfb
sync.(*Once).doSlow(0xedaa20?, 0x1f6a401?)
        sync/once.go:76 +0xb4
sync.(*Once).Do(...)
        sync/once.go:67
fyne.io/fyne/v2/internal/driver/glfw.(*gLDriver).SetSystemTrayMenu(0xc0004d4a90, 0xc0007e20f0)
        fyne.io/fyne/v2@v2.5.0/internal/driver/glfw/driver_desktop.go:42 +0x4d
fyne.io/fyne/v2/app.(*fyneApp).SetSystemTrayMenu(0xeff74c?, 0xc0007e20f0?)
        fyne.io/fyne/v2@v2.5.0/app/app_xdg.go:105 +0x3c
github.com/dweymouth/supersonic/ui.(*MainWindow).SetupSystemTrayMenu(0xc000124980, {0xf0808f, 0xa}, {0x107e4b8?, 0xc0002e4960})
        github.com/dweymouth/supersonic/ui/mainwindow.go:268 +0x92c
github.com/dweymouth/supersonic/ui.NewMainWindow({0x107e4b8, 0xc0002e4960}, {0xc0000b4688?, 0xc0000b4698?}, {0xf0808f, 0xa}, {0xf01b1a, 0x6}, 0xc000323888)
        github.com/dweymouth/supersonic/ui/mainwindow.go:60 +0x306
main.main()
        github.com/dweymouth/supersonic/main.go:53 +0x293