docs: Add log of the panic debugging session
This commit is contained in:
parent
bc02a670ac
commit
24e118ac3c
|
@ -0,0 +1,32 @@
|
||||||
|
uuid: "panic-debug-log-01"
|
||||||
|
version: "v0.0.4 go.wit.com/lib/protobuf/chatpb"
|
||||||
|
Chats: {
|
||||||
|
from: USER
|
||||||
|
ctime: { seconds: 1724170000 }
|
||||||
|
ContentFile: "content/panic_q1.content"
|
||||||
|
}
|
||||||
|
Chats: {
|
||||||
|
from: GEMINI
|
||||||
|
ctime: { seconds: 1724170060 }
|
||||||
|
ContentFile: "content/panic_a1.content"
|
||||||
|
}
|
||||||
|
Chats: {
|
||||||
|
from: USER
|
||||||
|
ctime: { seconds: 1724170120 }
|
||||||
|
ContentFile: "content/panic_q2.content"
|
||||||
|
}
|
||||||
|
Chats: {
|
||||||
|
from: GEMINI
|
||||||
|
ctime: { seconds: 1724170180 }
|
||||||
|
ContentFile: "content/panic_a2.content"
|
||||||
|
}
|
||||||
|
Chats: {
|
||||||
|
from: USER
|
||||||
|
ctime: { seconds: 1724170240 }
|
||||||
|
ContentFile: "content/panic_q3.content"
|
||||||
|
}
|
||||||
|
Chats: {
|
||||||
|
from: GEMINI
|
||||||
|
ctime: { seconds: 1724170300 }
|
||||||
|
ContentFile: "content/panic_a3.content"
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
Yes, I can absolutely look at the panic output. That's the best way to diagnose this kind of issue. Please run the command again and paste the entire panic output here. Based on your description, the most likely cause is that the top-level *Chats protobuf that you are calling Marshal() on is nil.
|
|
@ -0,0 +1 @@
|
||||||
|
Yes, absolutely. I can help you fix it. Please tell me the full path to the file containing the code that performs the append operation, and I will guide you through the fix.
|
|
@ -0,0 +1 @@
|
||||||
|
You are right to be skeptical. I will run the command myself to verify the result.
|
|
@ -0,0 +1 @@
|
||||||
|
wierd. I swear I'm doing a copy, but the Marshal() is still panicing. I'm doing a Clone() then doing an append, then trying to do Marshal() I made a new command for this. I'm running it as "~/go/bin/gemini --add log/BACnet.text". Maybe you can look at the panic() output?
|
|
@ -0,0 +1 @@
|
||||||
|
I updated the gemini binary, but it still crashes. I think you are correct on how to fix it. However, the code is in a different place. I can tell you where it is if you want to try to help fix it.
|
|
@ -0,0 +1 @@
|
||||||
|
It still crashes for me. Try and run it yourself?
|
Loading…
Reference in New Issue