RoboCup-SSL / ssl-game-controller

The game controller for matches in the RoboCup Small Size league
GNU General Public License v3.0
18 stars 35 forks source link

The game controller crashes without internet connection #10

Closed avrrobot closed 5 years ago

avrrobot commented 5 years ago

If I start the game controller as described in the readme.md, but the computer doesn't have an active internet connection (i.e. wifi disabled, no LAN), the game controller crashes with the following stack trace:

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

goroutine 26 [running]: github.com/RoboCup-SSL/ssl-game-controller/internal/app/controller.(RefMessage).setState(0xc420080908, 0xc42018c200, 0x431ce0) /home/andi/go/src/github.com/RoboCup-SSL/ssl-game-controller/internal/app/controller/publisher.go:106 +0x70 github.com/RoboCup-SSL/ssl-game-controller/internal/app/controller.(RefMessage).Publish(0xc420080908, 0xc42018c200) /home/andi/go/src/github.com/RoboCup-SSL/ssl-game-controller/internal/app/controller/publisher.go:85 +0x35 github.com/RoboCup-SSL/ssl-game-controller/internal/app/controller.(Publisher).Publish(0xc420080900, 0xc42018c200) /home/andi/go/src/github.com/RoboCup-SSL/ssl-game-controller/internal/app/controller/publisher.go:80 +0x3b github.com/RoboCup-SSL/ssl-game-controller/internal/app/controller.(GameController).publishNetwork(0xc420080800) /home/andi/go/src/github.com/RoboCup-SSL/ssl-game-controller/internal/app/controller/controller.go:251 +0x5e created by github.com/RoboCup-SSL/ssl-game-controller/internal/app/controller.(*GameController).Run /home/andi/go/src/github.com/RoboCup-SSL/ssl-game-controller/internal/app/controller/controller.go:215 +0x1a3 exit status 2

g3force commented 5 years ago

should be fixed (at least I can not reproduce it with the latest version).

Can you check and close the issue?

avrrobot commented 5 years ago

Yes, the issue is not present anymore for me either.