Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Crash during idle #186

Closed
Bios-Marcel opened this issue Oct 13, 2019 · 2 comments
Closed

Crash during idle #186

Bios-Marcel opened this issue Oct 13, 2019 · 2 comments
Labels
bug Something isn't working can't reproduce

Comments

@Bios-Marcel
Copy link
Owner

I have no clue what exactly happened, but I can't reproduce it or fix it :D

~/code/cordless (master *)$ go run .
panic: Bug in chatview, a message could not be found. [recovered]
	panic: Bug in chatview, a message could not be found.

goroutine 1 [running]:
github.com/Bios-Marcel/tview.(*Application).Run.func1(0xc000275200)
	/home/marcel/go/pkg/mod/github.com/!bios-!marcel/tview@v0.0.0-20191011210517-9ff18389d0f6/application.go:160 +0x82
panic(0xcaebc0, 0xfd9470)
	/usr/local/go/src/runtime/panic.go:522 +0x1b5
github.com/Bios-Marcel/cordless/ui.(*ChatView).Rerender(0xc0000b6b40)
	/home/marcel/code/cordless/ui/chatview.go:399 +0x2c5
github.com/Bios-Marcel/cordless/ui.(*ChatView).addMessageInternal(0xc0000b6b40, 0xc00179f680)
	/home/marcel/code/cordless/ui/chatview.go:314 +0x21b
github.com/Bios-Marcel/cordless/ui.(*ChatView).AddMessage(0xc0000b6b40, 0xc00179f680)
	/home/marcel/code/cordless/ui/chatview.go:329 +0x2a0
github.com/Bios-Marcel/cordless/ui.(*Window).startMessageHandlerRoutines.func1.1()
	/home/marcel/code/cordless/ui/window.go:1495 +0x37
github.com/Bios-Marcel/cordless/ui.(*Window).QueueUpdateDrawSynchronized.func1()
	/home/marcel/code/cordless/ui/window.go:1468 +0x2f
github.com/Bios-Marcel/tview.(*Application).QueueUpdateDraw.func1()
	/home/marcel/go/pkg/mod/github.com/!bios-!marcel/tview@v0.0.0-20191011210517-9ff18389d0f6/application.go:579 +0x2f
github.com/Bios-Marcel/tview.(*Application).Run(0xc000275200, 0x0, 0x0)
	/home/marcel/go/pkg/mod/github.com/!bios-!marcel/tview@v0.0.0-20191011210517-9ff18389d0f6/application.go:274 +0x5da
github.com/Bios-Marcel/cordless/app.Run()
	/home/marcel/code/cordless/app/app.go:157 +0x266
main.main()
	/home/marcel/code/cordless/main.go:19 +0xd7
exit status 2

@Bios-Marcel Bios-Marcel added the bug Something isn't working label Oct 13, 2019
@Bios-Marcel
Copy link
Owner Author

Closing, as it didn't ever happen again, therefore it's either fixed or a really rare edge case.

@dinodude7777
Copy link

Just happened to me running Manjaro

panic: Bug in chatview, a message could not be found. [recovered]
	panic: Bug in chatview, a message could not be found.

goroutine 1 [running]:
github.com/Bios-Marcel/tview.(*Application).Run.func1(0xc0004a2f30)
	/home/dino/go/pkg/mod/github.com/!bios-!marcel/tview@v0.0.0-20200222160847-9e022c4dffcd/application.go:160 +0x82
panic(0xc98dc0, 0xf82f30)
	/usr/lib/go/src/runtime/panic.go:969 +0x166
github.com/Bios-Marcel/cordless/ui.(*ChatView).Reprint(0xc0007dacf0)
	ui/chatview.go:416 +0x6ad
github.com/Bios-Marcel/cordless/ui.(*ChatView).addMessageInternal(0xc0007dacf0, 0xc0013f18c0)
	ui/chatview.go:332 +0x21e
github.com/Bios-Marcel/cordless/ui.(*ChatView).AddMessage(0xc0007dacf0, 0xc0013f18c0)
	ui/chatview.go:354 +0x237
github.com/Bios-Marcel/cordless/ui.(*Window).startMessageHandlerRoutines.func1.2()
	ui/window.go:1745 +0x37
github.com/Bios-Marcel/cordless/ui.(*Window).QueueUpdateDrawSynchronized.func1()
	ui/window.go:1714 +0x2f
github.com/Bios-Marcel/tview.(*Application).QueueUpdateDraw.func1()
	/home/dino/go/pkg/mod/github.com/!bios-!marcel/tview@v0.0.0-20200222160847-9e022c4dffcd/application.go:579 +0x2f
github.com/Bios-Marcel/tview.(*Application).Run(0xc0004a2f30, 0x0, 0x0)
	/home/dino/go/pkg/mod/github.com/!bios-!marcel/tview@v0.0.0-20200222160847-9e022c4dffcd/application.go:274 +0x665
github.com/Bios-Marcel/cordless/app.Run()
	app/app.go:158 +0x266
main.main()
	main.go:37 +0x246

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

No branches or pull requests

2 participants