dweymouth / supersonic

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

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

Open MegaCarp opened 1 month ago

MegaCarp commented 1 month 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 1 month 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 1 month ago

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