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

Bug: Panic runtime error: invalid memory address or nil pointer dereference #35

Open
InRiPa opened this issue Sep 29, 2023 · 0 comments

Comments

@InRiPa
Copy link

InRiPa commented Sep 29, 2023

Hi,

small thing. On a fresh install and nothing done so far the GUI looks like this:
fresh

Pressing now on the red cross button "Delete tunnel", results in:

{"level":"debug","time":"2023-09-29T07:31:14+02:00","message":"Settings init"}
{"level":"debug","time":"2023-09-29T07:31:14+02:00","message":"loading settings"}
{"level":"debug","time":"2023-09-29T07:31:14+02:00","message":"settings file doesnt exist"}
───────────────────────────────────────────────────────────────────────────────────────────────2023-09-29T07:31:14+02:00 |INFO| GTK Version


 major=3
 micro=38
 minor=24


(wireguird:6435): libayatana-appindicator-WARNING **: 07:31:14.273: Unable to get the session bus: Error spawning command line “dbus-launch --autolaunch=1dec5a7425a64a7f969f96c879bb9674 --binary-syntax --close-stderr”: Child process exited with code 1

(wireguird:6435): LIBDBUSMENU-GLIB-WARNING **: 07:31:14.273: Unable to get session bus: Error spawning command line “dbus-launch --autolaunch=1dec5a7425a64a7f969f96c879bb9674 --binary-syntax --close-stderr”: Child process exited with code 1
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/UnnoTed/wireguird/gui.(*Tunnels).Create at github.com/UnnoTed/wireguird/gui/tunnels.go:402
	github.com/UnnoTed/wireguird/gui.Create at github.com/UnnoTed/wireguird/gui/gui.go:77
	main.createWindow at github.com/UnnoTed/wireguird/main.go:142
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x75553f]

goroutine 1 [running]:
github.com/gotk3/gotk3/internal/closure.FuncStack.Panicf({{0x7b1740, 0xc0000b2348, 0x13}, {0xc000098318, 0x3, 0x3}}, {0x8aeb69, 0x1b}, {0xc0000a2da0, 0x1, ...})
	github.com/gotk3/[email protected]/internal/closure/funcstack.go:116 +0x91e
github.com/gotk3/gotk3/internal/closure.FuncStack.TryRepanic({{0x7b1740, 0xc0000b2348, 0x13}, {0xc000098318, 0x3, 0x3}})
	github.com/gotk3/[email protected]/internal/closure/funcstack.go:134 +0x145
panic({0x7d1660?, 0xb4a610?})
	runtime/panic.go:914 +0x21f
github.com/UnnoTed/wireguird/gui.(*Tunnels).Create.func7.1(0x0?, 0x0?)
	github.com/UnnoTed/wireguird/gui/tunnels.go:405 +0x3f
github.com/UnnoTed/wireguird/gui.(*Tunnels).Create.func7()
	github.com/UnnoTed/wireguird/gui/tunnels.go:434 +0x1b
reflect.Value.call({0x7b1740?, 0xc0000b2348?, 0x2?}, {0x8a4f1a, 0x4}, {0xbc66a0, 0x0, 0x7ce8e0?})
	reflect/value.go:596 +0xce7
reflect.Value.Call({0x7b1740?, 0xc0000b2348?, 0x213acf0?}, {0xbc66a0?, 0x0?, 0x0?})
	reflect/value.go:380 +0xb9
github.com/gotk3/gotk3/glib.goMarshal(0x559640?, 0x0, 0x1, 0x7ffc7e2f6e80, 0x487da5?, 0xc0000061a0?)
	github.com/gotk3/[email protected]/glib/glib.go:271 +0xa11
github.com/gotk3/gotk3/glib._Cfunc_g_application_run(0x1f6c790, 0x1, 0x1f62550)
	_cgo_gotypes.go:1553 +0x4b
github.com/gotk3/gotk3/glib.(*Application).Run.func4(0xc000182270?, {0xc0000160d0?, 0x1, 0x572e15?}, 0x5?)
	github.com/gotk3/[email protected]/glib/application.go:185 +0x74
github.com/gotk3/gotk3/glib.(*Application).Run(0x8ab602?, {0xc0000160d0?, 0x1, 0x1})
	github.com/gotk3/[email protected]/glib/application.go:185 +0x1b9
main.main()
	github.com/UnnoTed/wireguird/main.go:41 +0x347
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