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

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

Open
MegaCarp opened this issue Jul 9, 2024 · 3 comments
Labels
flatpak needs-info An issue that needs more information

Comments

@MegaCarp
Copy link

MegaCarp commented Jul 9, 2024

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
Copy link
Owner

It looks like you may need to update Flatpak - see this similar issue from another project - PrismLauncher/PrismLauncher#866

@dweymouth
Copy link
Owner

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

@dweymouth dweymouth added the needs-info An issue that needs more information label Jul 25, 2024
@tommyalatalo
Copy link

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/[email protected]/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/[email protected]/window.go:349 +0x15d
fyne.io/fyne/v2/internal/driver/glfw.(*window).create.func1()
        fyne.io/fyne/[email protected]/internal/driver/glfw/window_desktop.go:751 +0x11f
fyne.io/fyne/v2/internal/driver/glfw.runOnMain(0x0?)
        fyne.io/fyne/[email protected]/internal/driver/glfw/loop.go:45 +0xd0
fyne.io/fyne/v2/internal/driver/glfw.(*window).create(0xc0004a5dc0)
        fyne.io/fyne/[email protected]/internal/driver/glfw/window_desktop.go:723 +0x56
fyne.io/fyne/v2/internal/driver/glfw.(*gLDriver).SetSystemTrayMenu.func1()
        fyne.io/fyne/[email protected]/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/[email protected]/internal/driver/glfw/driver_desktop.go:42 +0x4d
fyne.io/fyne/v2/app.(*fyneApp).SetSystemTrayMenu(0xeff74c?, 0xc0007e20f0?)
        fyne.io/fyne/[email protected]/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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flatpak needs-info An issue that needs more information
Projects
None yet
Development

No branches or pull requests

3 participants