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 with KeepassXC secret service integration (keyring) #538

Open
hey2022 opened this issue Jan 23, 2025 · 0 comments
Open

Crash with KeepassXC secret service integration (keyring) #538

hey2022 opened this issue Jan 23, 2025 · 0 comments

Comments

@hey2022
Copy link

hey2022 commented Jan 23, 2025

I have this issue where supersonic won't show any music, and it crashes when pressing the home button or settings. I found this pull request #322 which mentions problems with keepassxc secret service integration, and I can confirm that it is the problem for me. I'm not sure if you know about this issue, as the pr was closed soon after, but I wanted to create this issue for visibility and tracking of the problem. For technical details about this issue, I believe the pr explains it much better than I can.

Not showing any music:
Image

KeepassXC with secret service integration and pressing home button after:

2025/01/24 06:01:50 Starting supersonic...
2025/01/24 06:01:50 Using config dir: /home/yiheng/.config/supersonic
2025/01/24 06:01:50 Using cache dir: /home/yiheng/.cache/supersonic
2025/01/24 06:01:50 failed to load theme file "": open /home/yiheng/.config/supersonic/themes: no such file or directory
2025/01/24 06:01:51 error getting password from keyring: org.freedesktop.Secret.Error.IsLocked
2025/01/24 06:01:51 Fyne error:  Preferences API requires a unique ID, use app.NewWithID() or the FyneApp.toml ID field
2025/01/24 06:01:51   At: fyne.io/fyne/[email protected]/app/app.go:60
panic: runtime error: invalid memory address or nil pointer dereferenceuser interaction
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xc34db2]

goroutine 30 [running]:
github.com/dweymouth/supersonic/ui/browsing.(*albumsPageAdapter).FilterButton(0xc00251ad80)
        github.com/dweymouth/supersonic/ui/browsing/albumspage.go:44 +0xd2
github.com/dweymouth/supersonic/ui/browsing.NewGridViewPage[...]({0x10929e0, 0xc00251ad80}, 0xc000c0bc60, {0x0, 0x0}, 0xc00042e0a0)
        github.com/dweymouth/supersonic/ui/browsing/gridviewpage.go:119 +0x7e
github.com/dweymouth/supersonic/ui/browsing.NewAlbumsPage(0xc0002b8c08, 0xc000c0bc60, 0xc0004d2dc0, 0xc000436000, {0x0, 0x0}, 0xc00042e0a0)
        github.com/dweymouth/supersonic/ui/browsing/albumspage.go:28 +0xc5
github.com/dweymouth/supersonic/ui/browsing.Router.CreatePage({0xc00029e408, 0xc0004d2dc0, {0x1081818, 0xc0007160d0}, 0xc000c0bc60}, {0xc0004561e0?, {0x0?, 0xc0002c2960?}})
        github.com/dweymouth/supersonic/ui/browsing/router.go:39 +0x17d
github.com/dweymouth/supersonic/ui/browsing.Router.NavigateTo({0xc00029e408, 0xc0004d2dc0, {0x1081818, 0xc0007160d0}, 0xc000c0bc60}, {0x1093408?, {0x0?, 0xc000456200?}})
        github.com/dweymouth/supersonic/ui/browsing/router.go:68 +0xbe
github.com/dweymouth/supersonic/ui.NewMainWindow.func1()
        github.com/dweymouth/supersonic/ui/mainwindow.go:63 +0x8c
fyne.io/fyne/v2/widget.(*Button).Tapped(0xc0004561e0, 0xc001ffdfa0?)
        fyne.io/fyne/[email protected]/widget/button.go:195 +0x4a
fyne.io/fyne/v2/internal/driver/glfw.(*window).mouseClickedHandleTapDoubleTap.func1()
        fyne.io/fyne/[email protected]/internal/driver/glfw/window.go:658 +0x22
fyne.io/fyne/v2/internal/driver/common.(*Window).RunEventQueue(...)
        fyne.io/fyne/[email protected]/internal/driver/common/window.go:35
created by fyne.io/fyne/v2/internal/driver/glfw.(*gLDriver).createWindow.func1 in goroutine 1
        fyne.io/fyne/[email protected]/internal/driver/glfw/window.go:1009 +0x136                        

Without secret service intergration, everything works fine:

2025/01/24 05:47:09 Starting supersonic...
2025/01/24 05:47:09 Using config dir: /home/yiheng/.config/supersonic
2025/01/24 05:47:09 Using cache dir: /home/yiheng/.cache/supersonic
2025/01/24 05:47:09 failed to load theme file "": open /home/yiheng/.config/supersonic/themes: no such file or directory
2025/01/24 05:47:10 error getting password from keyring: The name is not activatable
2025/01/24 05:47:10 Fyne error:  Preferences API requires a unique ID, use app.NewWithID() or the FyneApp.toml ID field
2025/01/24 05:47:10   At: fyne.io/fyne/[email protected]/app/app.go:60
2025/01/24 05:47:14 error setting keyring credentials: The name is not activatablection
2025/01/24 05:48:05 Running shutdown tasks...    

I'm running supersonic 0.13.2 with Navidrome on NixOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant