出现错误: runtime error: invalid memory address or nil pointer dereference #1194
Unanswered
FreddieGeorge
asked this question in
Q&A
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
每次启动都会出现如下warning,一直在刷屏,想问下怎么解决
[2021-11-25 16:20:55] [WARNING]: 处理事件 map[interval:5000 meta_event_type:heartbeat post_type:meta_event self_id:2749633049 status:map[app_enabled:true app_good:true app_initialized:true good:true online:true plugins_good: stat:0xc000231b18] time:1637828455] 时出现错误: runtime error: invalid memory address or nil pointer dereference
goroutine 282 [running]:
runtime/debug.Stack()
runtime/debug/stack.go:24 +0x65
github.com/Mrs4s/go-cqhttp/coolq.(*CQBot).dispatchEventMessage.func1.1()
github.com/Mrs4s/go-cqhttp/coolq/bot.go:509 +0x6a
panic({0x13715c0, 0x1bafca0})
runtime/panic.go:1038 +0x215
github.com/Mrs4s/go-cqhttp/server.(*HTTPClient).onBotPushEvent(0xc00008a1e0, 0xc414d7)
github.com/Mrs4s/go-cqhttp/server/http.go:240 +0x2af
github.com/Mrs4s/go-cqhttp/coolq.(*CQBot).dispatchEventMessage.func1(0xc0006107c0)
github.com/Mrs4s/go-cqhttp/coolq/bot.go:514 +0xc6
created by github.com/Mrs4s/go-cqhttp/coolq.(*CQBot).dispatchEventMessage
github.com/Mrs4s/go-cqhttp/coolq/bot.go:505 +0x10f
[2021-11-25 16:21:00] [WARNING]: 处理事件 map[interval:5000 meta_event_type:heartbeat post_type:meta_event self_id:2749633049 status:map[app_enabled:true app_good:true app_initialized:true good:true online:true plugins_good: stat:0xc000231b18] time:1637828460] 时出现错误: runtime error: invalid memory address or nil pointer dereference
goroutine 283 [running]:
runtime/debug.Stack()
runtime/debug/stack.go:24 +0x65
github.com/Mrs4s/go-cqhttp/coolq.(*CQBot).dispatchEventMessage.func1.1()
github.com/Mrs4s/go-cqhttp/coolq/bot.go:509 +0x6a
panic({0x13715c0, 0x1bafca0})
runtime/panic.go:1038 +0x215
github.com/Mrs4s/go-cqhttp/server.(*HTTPClient).onBotPushEvent(0xc00008a1e0, 0xc414d7)
github.com/Mrs4s/go-cqhttp/server/http.go:240 +0x2af
github.com/Mrs4s/go-cqhttp/coolq.(*CQBot).dispatchEventMessage.func1(0xc0006107c0)
github.com/Mrs4s/go-cqhttp/coolq/bot.go:514 +0xc6
created by github.com/Mrs4s/go-cqhttp/coolq.(*CQBot).dispatchEventMessage
github.com/Mrs4s/go-cqhttp/coolq/bot.go:505 +0x10f
Beta Was this translation helpful? Give feedback.
All reactions