dweymouth / supersonic

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

Crash when selecting "Show Info" on album #295

Closed adamshand closed 6 months ago

adamshand commented 6 months ago

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