cdfmlr / muvtuber

Makes your AI vtuber
445 stars 75 forks source link

muvtuberdriver PriorityReduceFilter panic: invalid memory address or nil pointer dereference #29

Closed cdfmlr closed 1 year ago

cdfmlr commented 1 year ago
2023/04/10 14:32:31 INFO [PrioritizedChatbot] Chat(USER): "打call" => (ChatGPTChatbot): "哇哇哇,谢谢你给派蒙打call呢!派蒙非常感激你的支持和鼓励,有了你们的陪伴,派蒙才能够更加努力地做好直播,让大家开心和快乐!嘿嘿~"
2023/04/10 14:32:31 INFO [PrioritizedChatbot] Chat(USER): "妙啊"
2023/04/10 14:32:31 WARN [PrioritizedChatbot] *chatbot.ChatGPTChatbot.Chat(&{USER 妙啊 2}) failed: ChatGPTChatbot is cooling down (15s), try next chatbot
2023/04/10 14:32:31 INFO [PrioritizedChatbot] Chat(USER): "妙啊" => (MusharingChatbot): "what is teknolust"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x5dc2f8] 
goroutine 14 [running]:
main.(*PriorityReduceFilter).outputMaxPriorityOnes(0x4000382300, 0x4000393f68?)
    /app/filter.go:214 +0x4e8
main.(*PriorityReduceFilter).filter.func1()
    /app/filter.go:118 +0x9c
created by main.(*PriorityReduceFilter).filter
    /app/filter.go:108 +0xdc
cdfmlr commented 1 year ago

should been fixed in https://github.com/cdfmlr/muvtuberdriver/commit/41390d6aca94ff78f041d2052bf274cfd0286df7