invalid memory address or nil pointer dereference #13

Closed
opened 2024-03-12 16:44:30 +00:00 by skobkin · 1 comment
Owner
telegram-llm-bot  | 2024/03/12 03:56:52 INFO /hey
telegram-llm-bot  | panic: runtime error: invalid memory address or nil pointer dereference
telegram-llm-bot  | [signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x7dc17f]
telegram-llm-bot  |
telegram-llm-bot  | goroutine 14 [running]:
telegram-llm-bot  | telegram-ollama-reply-bot/bot.(*Bot).chatTypeStatsCounter(0xc0001636e0?, 0xc0002b97a0, {0x30e4db6, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...}, ...)
telegram-llm-bot  |     /build/bot/middleware.go:15 +0x9f
telegram-llm-bot  | github.com/mymmrac/telego/telegohandler.(*HandlerGroup).processUpdateWithMiddlewares(0xc000415000, 0xc0002b97a0, {0x30e4db6, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...}, ...)
telegram-llm-bot  |     /go/pkg/mod/github.com/mymmrac/telego@v0.29.1/telegohandler/handler_group.go:74 +0x283
telegram-llm-bot  | github.com/mymmrac/telego/telegohandler.(*HandlerGroup).processUpdate(0xc000415000, 0xc000441fb0?, {0x30e4db6, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...})
telegram-llm-bot  |     /go/pkg/mod/github.com/mymmrac/telego@v0.29.1/telegohandler/handler_group.go:50 +0x9e
telegram-llm-bot  | github.com/mymmrac/telego/telegohandler.(*BotHandler).Start.func1()
telegram-llm-bot  |     /go/pkg/mod/github.com/mymmrac/telego@v0.29.1/telegohandler/bot_handler.go:109 +0x1e5
telegram-llm-bot  | created by github.com/mymmrac/telego/telegohandler.(*BotHandler).Start in goroutine 1
telegram-llm-bot  |     /go/pkg/mod/github.com/mymmrac/telego@v0.29.1/telegohandler/bot_handler.go:98 +0x165
``` telegram-llm-bot | 2024/03/12 03:56:52 INFO /hey telegram-llm-bot | panic: runtime error: invalid memory address or nil pointer dereference telegram-llm-bot | [signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x7dc17f] telegram-llm-bot | telegram-llm-bot | goroutine 14 [running]: telegram-llm-bot | telegram-ollama-reply-bot/bot.(*Bot).chatTypeStatsCounter(0xc0001636e0?, 0xc0002b97a0, {0x30e4db6, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...}, ...) telegram-llm-bot | /build/bot/middleware.go:15 +0x9f telegram-llm-bot | github.com/mymmrac/telego/telegohandler.(*HandlerGroup).processUpdateWithMiddlewares(0xc000415000, 0xc0002b97a0, {0x30e4db6, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...}, ...) telegram-llm-bot | /go/pkg/mod/github.com/mymmrac/telego@v0.29.1/telegohandler/handler_group.go:74 +0x283 telegram-llm-bot | github.com/mymmrac/telego/telegohandler.(*HandlerGroup).processUpdate(0xc000415000, 0xc000441fb0?, {0x30e4db6, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...}) telegram-llm-bot | /go/pkg/mod/github.com/mymmrac/telego@v0.29.1/telegohandler/handler_group.go:50 +0x9e telegram-llm-bot | github.com/mymmrac/telego/telegohandler.(*BotHandler).Start.func1() telegram-llm-bot | /go/pkg/mod/github.com/mymmrac/telego@v0.29.1/telegohandler/bot_handler.go:109 +0x1e5 telegram-llm-bot | created by github.com/mymmrac/telego/telegohandler.(*BotHandler).Start in goroutine 1 telegram-llm-bot | /go/pkg/mod/github.com/mymmrac/telego@v0.29.1/telegohandler/bot_handler.go:98 +0x165 ```
skobkin added the
bug
label 2024-03-12 16:44:30 +00:00
skobkin self-assigned this 2024-03-12 16:44:30 +00:00
Author
Owner
telegram-llm-bot  | 2024/03/12 16:38:47 INFO /summarize !BADKEY="/summarize https://planetscale.com/blog/generics-can-make-your-go-code-slower"
telegram-llm-bot  | panic: runtime error: invalid memory address or nil pointer dereference
telegram-llm-bot  | [signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x7dc17f]
telegram-llm-bot  |
telegram-llm-bot  | goroutine 390 [running]:
telegram-llm-bot  | telegram-ollama-reply-bot/bot.(*Bot).chatTypeStatsCounter(0xc00007f700?, 0xc0002a77a0, {0x30e4dc5, 0x0, 0xc00177e008, 0x0, 0x0, 0x0, 0x0, 0x0, ...}, ...)
telegram-llm-bot  |     /build/bot/middleware.go:15 +0x9f
telegram-llm-bot  | github.com/mymmrac/telego/telegohandler.(*HandlerGroup).processUpdateWithMiddlewares(0xc000406000, 0xc0002a77a0, {0x30e4dc5, 0x0, 0xc00177e008, 0x0, 0x0, 0x0, 0x0, 0x0, ...}, ...)
telegram-llm-bot  |     /go/pkg/mod/github.com/mymmrac/telego@v0.29.1/telegohandler/handler_group.go:74 +0x283
telegram-llm-bot  | github.com/mymmrac/telego/telegohandler.(*HandlerGroup).processUpdate(0xc000406000, 0xc000989610?, {0x30e4dc5, 0x0, 0xc00177e008, 0x0, 0x0, 0x0, 0x0, 0x0, ...})
telegram-llm-bot  |     /go/pkg/mod/github.com/mymmrac/telego@v0.29.1/telegohandler/handler_group.go:50 +0x9e
telegram-llm-bot  | github.com/mymmrac/telego/telegohandler.(*BotHandler).Start.func1()
telegram-llm-bot  |     /go/pkg/mod/github.com/mymmrac/telego@v0.29.1/telegohandler/bot_handler.go:109 +0x1e5
telegram-llm-bot  | created by github.com/mymmrac/telego/telegohandler.(*BotHandler).Start in goroutine 1
telegram-llm-bot  |     /go/pkg/mod/github.com/mymmrac/telego@v0.29.1/telegohandler/bot_handler.go:98 +0x165
telegram-llm-bot  | 2024/03/12 16:39:26 INFO Running api as !BADKEY="map[id:6388461768 is_bot:true name:LLM Bot username:SkobkinLLMBot]"
``` telegram-llm-bot | 2024/03/12 16:38:47 INFO /summarize !BADKEY="/summarize https://planetscale.com/blog/generics-can-make-your-go-code-slower" telegram-llm-bot | panic: runtime error: invalid memory address or nil pointer dereference telegram-llm-bot | [signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x7dc17f] telegram-llm-bot | telegram-llm-bot | goroutine 390 [running]: telegram-llm-bot | telegram-ollama-reply-bot/bot.(*Bot).chatTypeStatsCounter(0xc00007f700?, 0xc0002a77a0, {0x30e4dc5, 0x0, 0xc00177e008, 0x0, 0x0, 0x0, 0x0, 0x0, ...}, ...) telegram-llm-bot | /build/bot/middleware.go:15 +0x9f telegram-llm-bot | github.com/mymmrac/telego/telegohandler.(*HandlerGroup).processUpdateWithMiddlewares(0xc000406000, 0xc0002a77a0, {0x30e4dc5, 0x0, 0xc00177e008, 0x0, 0x0, 0x0, 0x0, 0x0, ...}, ...) telegram-llm-bot | /go/pkg/mod/github.com/mymmrac/telego@v0.29.1/telegohandler/handler_group.go:74 +0x283 telegram-llm-bot | github.com/mymmrac/telego/telegohandler.(*HandlerGroup).processUpdate(0xc000406000, 0xc000989610?, {0x30e4dc5, 0x0, 0xc00177e008, 0x0, 0x0, 0x0, 0x0, 0x0, ...}) telegram-llm-bot | /go/pkg/mod/github.com/mymmrac/telego@v0.29.1/telegohandler/handler_group.go:50 +0x9e telegram-llm-bot | github.com/mymmrac/telego/telegohandler.(*BotHandler).Start.func1() telegram-llm-bot | /go/pkg/mod/github.com/mymmrac/telego@v0.29.1/telegohandler/bot_handler.go:109 +0x1e5 telegram-llm-bot | created by github.com/mymmrac/telego/telegohandler.(*BotHandler).Start in goroutine 1 telegram-llm-bot | /go/pkg/mod/github.com/mymmrac/telego@v0.29.1/telegohandler/bot_handler.go:98 +0x165 telegram-llm-bot | 2024/03/12 16:39:26 INFO Running api as !BADKEY="map[id:6388461768 is_bot:true name:LLM Bot username:SkobkinLLMBot]" ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: skobkin/telegram-ollama-reply-bot#13
No description provided.