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

segfault on wrong HUE_USERNAME #1

Open
relet opened this issue Jun 5, 2024 · 1 comment
Open

segfault on wrong HUE_USERNAME #1

relet opened this issue Jun 5, 2024 · 1 comment

Comments

@relet
Copy link
Member

relet commented Jun 5, 2024

{"time":"2024-06-04T21:28:01.93237962+02:00","level":"INFO","msg":"MQTT Broker announced on mDNS.","service name":"labrador","service type":"_mqtt._tcp","port":1883,"local IPs":["10.0.0.6","172.17.0.1"]}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x71980d]

goroutine 19 [running]:
github.com/celerway/labrador/gohue.(*HueClient).Load(0xc00011f080, {0x8b7c80?, 0xb7b180?})
	/home/celerway/labrador/gohue/controller.go:102 +0xad
github.com/celerway/labrador/broker.(*State).Run(0xc0001260c0, {0x8b7bd8, 0xc000134230})
	/home/celerway/labrador/broker/init.go:82 +0x50e
main.run.func1()
	/home/celerway/labrador/main.go:42 +0x3f
golang.org/x/sync/errgroup.(*Group).Go.func1()
	/root/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:78 +0x56
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 1
	/root/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:75 +0x96
@relet
Copy link
Member Author

relet commented Jun 5, 2024

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x71980d]

goroutine 19 [running]:
github.com/celerway/labrador/gohue.(*HueClient).Load(0xc000244750, {0x8b7c80?, 0xb7b180?})
	/home/celerway/labrador/gohue/controller.go:102 +0xad
github.com/celerway/labrador/broker.(*State).Run(0xc0001260c0, {0x8b7bd8, 0xc000134230})
	/home/celerway/labrador/broker/init.go:82 +0x50e
main.run.func1()
	/home/celerway/labrador/main.go:42 +0x3f
golang.org/x/sync/errgroup.(*Group).Go.func1()
	/root/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:78 +0x56
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 1
	/root/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:75 +0x96

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