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 after selecting cluster #142

Open
hamnis opened this issue Nov 1, 2024 · 1 comment
Open

Crash after selecting cluster #142

hamnis opened this issue Nov 1, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@hamnis
Copy link

hamnis commented Nov 1, 2024

Issue description

select a cluster with limited access rights. This uses the latest flatpak version.

crash:

panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: closure error: unexpected panic caught: runtime error: invalid memory address or nil pointer dereference

Closure added at:
	github.com/diamondburned/gotk4/pkg/glib/v2.IdleAdd at github.com/diamondburned/gotk4/[email protected]/glib/v2/glib.go:33679
	github.com/getseabird/seabird/internal/ui.(*WelcomeWindow).createContent.func3.1 at github.com/getseabird/seabird/internal/ui/welcome_window.go:132
	runtime.goexit at runtime/asm_amd64.s:1695
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x2797efa]

goroutine 1 [running, locked to thread]:
github.com/diamondburned/gotk4/pkg/core/closure.(*FuncStack).Panicf(0xc0007d4fc0, {0x309be3b, 0x1b}, {0xc000725258, 0x1, 0x1})
	github.com/diamondburned/gotk4/[email protected]/core/closure/funcstack.go:104 +0x908
github.com/diamondburned/gotk4/pkg/core/closure.(*FuncStack).TryRepanic(0xc0007d4fc0)
	github.com/diamondburned/gotk4/[email protected]/core/closure/funcstack.go:122 +0xc5
panic({0x2b9aae0?, 0x56e46a0?})
	runtime/panic.go:770 +0x132
github.com/getseabird/seabird/internal/ui/list.(*List).createColumns(0xc00079f800)
	github.com/getseabird/seabird/internal/ui/list/list.go:141 +0x7a
github.com/getseabird/seabird/internal/ui/list.(*List).onObjectsChange(0xc00079f800, {0x0, 0x0, 0x5626eb?})
	github.com/getseabird/seabird/internal/ui/list/list.go:112 +0x2f2
github.com/getseabird/seabird/internal/ui/common.OnChange[...]({0x34810d0, 0xc00020e360}, {0x3472ca8, 0xc0002a01c0}, 0xc000a01480)
	github.com/getseabird/seabird/internal/ui/common/on.go:27 +0x12a
github.com/getseabird/seabird/internal/ui/list.NewList({0x34810d0, 0xc00020e360}, 0xc0004db290, 0xc00020e8d0, 0xc0006fe000)
	github.com/getseabird/seabird/internal/ui/list/list.go:72 +0x478
github.com/getseabird/seabird/internal/ui.NewClusterWindow({0x34810d0, 0xc000124030}, 0xc0006d0c90, 0xc0004db290)
	github.com/getseabird/seabird/internal/ui/cluster_window.go:112 +0x874
github.com/getseabird/seabird/internal/ui.(*WelcomeWindow).createContent.func3.1.1()
	github.com/getseabird/seabird/internal/ui/welcome_window.go:140 +0xb8
github.com/diamondburned/gotk4/pkg/core/glib._gotk4_sourceFunc(0x1007)
	github.com/diamondburned/gotk4/[email protected]/core/glib/glib.go:352 +0xd9
github.com/diamondburned/gotk4/pkg/gio/v2._Cfunc_g_application_run(0x18652f30, 0x1, 0x186bd490)
	_cgo_gotypes.go:12555 +0x4b
github.com/diamondburned/gotk4/pkg/gio/v2.(*Application).Run.func3(0x18652f30, 0x1, 0x186bd490)
	github.com/diamondburned/gotk4/[email protected]/gio/v2/gio.go:36988 +0x67
github.com/diamondburned/gotk4/pkg/gio/v2.(*Application).Run(0xc0006120a8, {0xc000052090, 0x1, 0x1})
	github.com/diamondburned/gotk4/[email protected]/gio/v2/gio.go:36988 +0x1f1
github.com/getseabird/seabird/internal/ui.(*Application).Run(0x3079ffb?)
	github.com/getseabird/seabird/internal/ui/application.go:70 +0x2d
main.main()
	github.com/getseabird/seabird/main.go:31 +0xc5

expected result: not crash

Steps to reproduce

Select a cluster with limited access rights

System information

flatpak dev.skynomads.Seabird v0.5.1, Pop! OS, linux kernel: 6.9.3-76060903-generic

@jgillich jgillich added the bug Something isn't working label Nov 4, 2024
@cyberfrogg
Copy link

Not happening on version 0.4.2, commit cb6f99a4ac1b32a4c7d88f86b7da3ccd65d490f9126aa64010b993389c00b751.

Temporary using old flatpak version. Downgrade:

sudo flatpak update --commit=cb6f99a4ac1b32a4c7d88f86b7da3ccd65d490f9126aa64010b993389c00b751 dev.skynomads.Seabird

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants