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

brclient: panic: runtime error when relaying news feed post #52

Closed
artikozel opened this issue Dec 17, 2022 · 0 comments · Fixed by #61
Closed

brclient: panic: runtime error when relaying news feed post #52

artikozel opened this issue Dec 17, 2022 · 0 comments · Fixed by #61
Labels
cli Issues pertaining to Bison Relay CLI client

Comments

@artikozel
Copy link
Contributor

Getting the following when relaying a news feed post. The app crashes, but upon relaunching the post appears as successfully relayed.

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

goroutine 1900 [running]:
[github.com/companyzero/bisonrelay/client.(*RemoteUser).Nick(...)](http://github.com/companyzero/bisonrelay/client.(*RemoteUser).Nick(...))
	[github.com/companyzero/bisonrelay/client/remoteuser.go:142](http://github.com/companyzero/bisonrelay/client/remoteuser.go:142)
main.newAppState.func17(0x0?, {{0xfc, 0xfe, 0x4f, 0x51, 0x21, 0xd7, 0x36, 0x59, 0x5f, ...}, ...}, ...)
	[github.com/companyzero/bisonrelay/brclient/appstate.go:2366](http://github.com/companyzero/bisonrelay/brclient/appstate.go:2366) +0x43
[github.com/companyzero/bisonrelay/client.(*Client).relayPost(0xc000bf6c40,](http://github.com/companyzero/bisonrelay/client.(*Client).relayPost(0xc000bf6c40,) {0x1a, 0x83, 0x70, 0x15, 0x73, 0xd5, 0x6d, 0x73, 0x92, ...}, ...)
	[github.com/companyzero/bisonrelay/client/client_posts.go:908](http://github.com/companyzero/bisonrelay/client/client_posts.go:908) +0x447
[github.com/companyzero/bisonrelay/client.(*Client).RelayPostToSubscribers(0xc000bf6c40,](http://github.com/companyzero/bisonrelay/client.(*Client).RelayPostToSubscribers(0xc000bf6c40,) {0x1a, 0x83, 0x70, 0x15, 0x73, 0xd5, 0x6d, 0x73, 0x92, ...}, ...)
	[github.com/companyzero/bisonrelay/client/client_posts.go:965](http://github.com/companyzero/bisonrelay/client/client_posts.go:965) +0xed
main.(*appState).relayPostToAll(0xc0003a2000, {0x1a, 0x83, 0x70, 0x15, 0x73, 0xd5, 0x6d, 0x73, 0x92, ...}, ...)
	[github.com/companyzero/bisonrelay/brclient/appstate.go:1677](http://github.com/companyzero/bisonrelay/brclient/appstate.go:1677) +0x145
created by main.postWindow.Update
	[github.com/companyzero/bisonrelay/brclient/postwin.go:792](http://github.com/companyzero/bisonrelay/brclient/postwin.go:792) +0x1cbd

Ubuntu 22.04, brclient-linux-amd64-0.1.1
@artikozel artikozel changed the title brclient: panic: runtime error when relaying news feed brclient: panic: runtime error when relaying news feed post Dec 17, 2022
@davecgh davecgh added the cli Issues pertaining to Bison Relay CLI client label Dec 17, 2022
miki-totefu pushed a commit to miki-totefu/bisonrelay that referenced this issue Dec 20, 2022
miki-totefu pushed a commit that referenced this issue Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Issues pertaining to Bison Relay CLI client
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants