Compare commits

..

2 Commits

Author SHA1 Message Date
Castor Gemini 24e118ac3c docs: Add log of the panic debugging session 2025-08-22 00:40:25 -05:00
Jeff Carr bc02a670ac tinkering 2025-08-21 22:27:08 -05:00
8 changed files with 42 additions and 0 deletions

View File

@ -32,3 +32,7 @@ add-shell:
ls -lt ~/.config/gemini/
gemini --add log/2025-08-21-shell-v2.text
ls -lt ~/.config/gemini/
clean:
rm -f go.*
rm ~/.config/gemini/gemini.pb

View File

@ -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"
}

View File

@ -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.

View File

@ -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.

View File

@ -0,0 +1 @@
You are right to be skeptical. I will run the command myself to verify the result.

View File

@ -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?

View File

@ -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.

View File

@ -0,0 +1 @@
It still crashes for me. Try and run it yourself?