Skip to content

Crash on hoovering grid album when a custom theme is set in 0.15.2 #612

@wboubi

Description

@wboubi

With the latest version i have a crash when i enable my custom theme.

Os : ubuntu 24.04 LTS

2025/04/28 12:11:46 Fyne error:  Error parsing user locale
2025/04/28 12:11:46   Cause: language: tag is not well-formed
2025/04/28 12:11:46   At: /home/runner/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20250406173843-f5cb002423a5/lang/locale.go:35
2025/04/28 12:11:46 Starting supersonic...
2025/04/28 12:11:46 Using config dir: /home/***/.config/supersonic
2025/04/28 12:11:46 Using cache dir: /home/***/.cache/supersonic
2025/04/28 12:11:46 Fyne error:  Error parsing user locale
2025/04/28 12:11:46   Cause: language: tag is not well-formed
2025/04/28 12:11:46   At: /home/runner/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20250406173843-f5cb002423a5/lang/locale.go:35
2025/04/28 12:11:46 systray error: failed to register: The name org.kde.StatusNotifierWatcher was not provided by any .service files
2025/04/28 12:11:47 Playback error (SeekSeconds): failed to execute command [seek 0.0 absolute]: mpv error -12: MPV_ERROR -12 error running command
panic: interface conversion: color.Color is color.RGBA, not color.NRGBA

goroutine 1 [running, locked to thread]:
github.com/dweymouth/supersonic/ui/widgets.setPlayBtnTranslucency(0x0)
	/home/runner/work/supersonic/supersonic/ui/widgets/gridviewitem.go:376 +0x1a5
github.com/dweymouth/supersonic/ui/widgets.(*coverImage).MouseIn.func1(0x0)
	/home/runner/work/supersonic/supersonic/ui/widgets/gridviewitem.go:208 +0x69
fyne.io/fyne/v2/internal/animation.(*Runner).tickAnimation(0xc0003b2868?, 0xc001b76660)
	/home/runner/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20250406173843-f5cb002423a5/internal/animation/runner.go:170 +0x1d7
fyne.io/fyne/v2/internal/animation.(*Runner).runOneFrame(0xc0003b2868)
	/home/runner/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20250406173843-f5cb002423a5/internal/animation/runner.go:108 +0x8e
fyne.io/fyne/v2/internal/animation.(*Runner).TickAnimations(0xc0003b2868)
	/home/runner/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20250406173843-f5cb002423a5/internal/animation/runner.go:94 +0x1e
fyne.io/fyne/v2/internal/driver/glfw.(*gLDriver).runGL(0xc000603c20?)
	/home/runner/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20250406173843-f5cb002423a5/internal/driver/glfw/loop.go:168 +0x1d1
fyne.io/fyne/v2/internal/driver/glfw.(*gLDriver).Run(0xc0003b2840)
	/home/runner/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20250406173843-f5cb002423a5/internal/driver/glfw/driver.go:162 +0x72
fyne.io/fyne/v2/app.(*fyneApp).Run(0xc0003b28f0)
	/home/runner/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20250406173843-f5cb002423a5/app/app.go:77 +0x102
fyne.io/fyne/v2/internal/driver/glfw.(*window).ShowAndRun(0xc000517860)
	/home/runner/go/pkg/mod/github.com/dweymouth/fyne/v2@v2.3.0-rc1.0.20250406173843-f5cb002423a5/internal/driver/glfw/window.go:222 +0x64
github.com/dweymouth/supersonic/ui.(*MainWindow).ShowAndRun(...)
	/home/runner/work/supersonic/supersonic/ui/mainwindow.go:449
main.main()
	/home/runner/work/supersonic/supersonic/main.go:104 +0xb4c

It's seem to come from 0b199f9

Here my theme for reference (i only use darkmode so i never write lightmode)

[SupersonicTheme]
Name = "Dracula"
Version = "0.2"
SupportsDark = true
SupportsLight = false

[DarkColors]
PageBackground = "#282A36"
InputBackground = "#44475A"
InputBorder = "#44475A"
MenuBackground = "#282A36"
Hyperlink = "#BD93F9"
Pressed = "#44475A"
ListHeader = "#1E1F29"
PageHeader = "#1E1F29"
Background = "#1E1F29"
ScrollBar = "#44475A"
Button = "#282A36"
DisabledButton = "#1E1F29"
Selection = "#44475A"
Primary = "#BD93F9"
Focus = "#BD93F9"
Separator = "#44475A"
Foreground = "#F8F8F2"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions