-
Notifications
You must be signed in to change notification settings - Fork 613
Closed
Labels
Description
Describe the bug
Segmentation fault when using Gemini 2.5 Pro
Setup
Please complete the following information along with version numbers, if applicable.
- Arch Linux
- Zsh
- Kitty
To Reproduce
Steps to reproduce the behavior:
- Activate and select Gemini 2.5 Pro
- Initialize a new crush.md and folder in a repo or send any command that uses a tool.
Additional context
In the chat output it appears that you see the beginning of the tool script commands. For example "call:glob{pattern:" appears in chat when initializing a new repo and it's looking for the crush.md file.
Log at crash:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x50 pc=0x151c960]
goroutine 477 [running]:
google.golang.org/genai.(*Chat).SendStream(0x0, {0x24063a8, 0xc000278600}, {0xc000baa0a8, 0x1, 0x1})
/home/runner/go/pkg/mod/google.golang.org/genai@v1.19.0/chats.go:221 +0xa0
google.golang.org/genai.(*Chat).SendMessageStream(0x0, {0x24063a8, 0xc000278600}, {0xc0039d2620, 0x1, 0x4813ae?})
/home/runner/go/pkg/mod/google.golang.org/genai@v1.19.0/chats.go:213 +0x17c
github.com/charmbracelet/crush/internal/llm/provider.(*geminiClient).stream.func1()
/home/runner/work/crush/crush/internal/llm/provider/gemini.go:322 +0x2aa
created by github.com/charmbracelet/crush/internal/llm/provider.(*geminiClient).stream in goroutine 205
/home/runner/work/crush/crush/internal/llm/provider/gemini.go:305 +0x51f
neomantra