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 when selecting "Show Info" on album #295

Closed
adamshand opened this issue Dec 16, 2023 · 0 comments
Closed

Crash when selecting "Show Info" on album #295

adamshand opened this issue Dec 16, 2023 · 0 comments
Labels
bug Something isn't working server:jellyfin
Milestone

Comments

@adamshand
Copy link

Hey,

As per chat on Reddit, here's the logs for the crash.

Probably not useful, but just in case, these are the logs before I seledct "Show Info":

❯  Applications/Supersonic.app/Contents/MacOS/supersonic2023/12/16 19:46:08 Starting supersonic...
2023/12/16 19:46:08 Using config dir: /Users/adam/Library/Application Support/supersonic
2023/12/16 19:46:08 Using cache dir: /Users/adam/Library/Caches/supersonic
2023/12/16 19:46:08 Creating session lock file
2023/12/16 19:46:09 failed to load theme file "": open /Users/adam/Library/Application Support/supersonic/themes: no such file or directory
2023-12-16 19:46:09.034 supersonic[20410:655680] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:09 Fyne error:  could not load SVG, falling back to static content:
2023/12/16 19:46:09   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/12/16 19:46:09   At: /Users/drew/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20231123175732-3df0aca47d36/internal/svg/svg.go:28
2023/12/16 19:46:11 Error loading cover image: page not found, code: 404, msg: "Sometime In New York City [ Disc 02 ] - Live Jam does not have an image of type Primary"
2023/12/16 19:46:11 Error loading cover image: page not found, code: 404, msg: "Sometime In New York City [ Disc 01 ] does not have an image of type Primary"
2023/12/16 19:46:11 Error loading cover image: page not found, code: 404, msg: "Home Tapes does not have an image of type Primary"
2023/12/16 19:46:11 Error loading cover image: page not found, code: 404, msg: "Singles does not have an image of type Primary"
2023/12/16 19:46:11 Error loading cover image: page not found, code: 404, msg: "Plastic Ono Band does not have an image of type Primary"

And then this is the error once I select "Show Info":

panic: runtime error: slice bounds out of range [:-1]

goroutine 252 [running]:
github.com/dweymouth/supersonic/ui/dialogs.(*AlbumInfoDialog).infoLabel(0x103164ba8?, {0x14000778a80, 0x354})
        /Users/drew/supersonic/ui/dialogs/albuminfodialog.go:90 +0x74
github.com/dweymouth/supersonic/ui/dialogs.(*AlbumInfoDialog).buildMainContainer(0x14002c2c060?, 0x14002808150, {0x14002e08e20, 0xe}, {0x1034515d8?, 0x140025cc180})
        /Users/drew/supersonic/ui/dialogs/albuminfodialog.go:67 +0x188
github.com/dweymouth/supersonic/ui/dialogs.NewAlbumInfoDialog(0x10345a548?, {0x14002e08e20, 0xe}, {0x1034515d8, 0x140025cc180})
        /Users/drew/supersonic/ui/dialogs/albuminfodialog.go:36 +0x6c
github.com/dweymouth/supersonic/ui/controller.(*Controller).ShowAlbumInfoDialog.func1()
        /Users/drew/supersonic/ui/controller/controller.go:724 +0xf4
created by github.com/dweymouth/supersonic/ui/controller.(*Controller).ShowAlbumInfoDialog in goroutine 41
        /Users/drew/supersonic/ui/controller/controller.go:718 +0xfc
@dweymouth dweymouth added bug Something isn't working server:jellyfin labels Dec 16, 2023
@dweymouth dweymouth changed the title Crash when selecting "Show Info" on artist Crash when selecting "Show Info" on album Dec 16, 2023
@dweymouth dweymouth added this to the 0.8.2 milestone Dec 16, 2023
natilou pushed a commit to natilou/supersonic that referenced this issue Dec 24, 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 server:jellyfin
Projects
None yet
Development

No branches or pull requests

2 participants