goose: v1.0.26 thread 'main' panicked at /home/runner/work/goose/goose/.hermit/rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/slice.rs:522:50:

New version, returns the following error:

Goose is running! Enter your instructions, or try asking what goose can do.


thread 'main' panicked at /home/runner/work/goose/goose/.hermit/rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/slice.rs:522:50:
capacity overflow

Happens on linux, even if I’m not running any extensions, etc. Pretty much any session I run.

Here’s my setup

~/projects/pipedb $ uname -a
Linux galaxy 6.13.12-061312-generic #202504200842 SMP PREEMPT_DYNAMIC Sun Apr 20 11:07:04 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux


~/projects/pipedb $ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 24.04.2 LTS
Release:	24.04
Codename:	noble

~/projects/pipedb $ goose --version
 1.0.26

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 1
  • Comments: 15 (4 by maintainers)

Most upvoted comments

looks like caused by https://github.com/block/goose/pull/2315, looking into it

Sorry if this isn’t the right thread, but I’m seeing the same capacity overflow panic in Goose version 1.0.27.


starting session | provider: aws\_bedrock model: us.anthropic.claude-sonnet-4-20250514-v1:0
logging to /Users/<username>/.local/share/goose/sessions/20250611\_125203.jsonl
working directory: /Users/<username>

Goose is running! Enter your instructions, or try asking what goose can do.

Context: ○○○○○○○○○○ 0% (0/32000 tokens)
( O)> how many r's are in the word strawberry

Goose responds:


To count the number of 'r's in the word "strawberry", I'll examine each letter:

**s-t-r-a-w-b-e-r-r-y**

Looking at each position:

* s: not an 'r'
* t: not an 'r'
* r: **this is an 'r'** (1st r)
* a: not an 'r'
* w: not an 'r'
* b: not an 'r'
* e: not an 'r'
* r: **this is an 'r'** (2nd r)
* r: **this is an 'r'** (3rd r)
* y: not an 'r'

There are **3 r's** in the word "strawberry".

Then it crashes with:


thread 'main' panicked at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/alloc/src/slice.rs:522:50:
capacity overflow
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

🖥️ Platform Info

ProductName: macOS ProductVersion: 15.5 BuildVersion: 24F74

Let me know if there’s anything I can do to help debug this!

yeah, we are releasing a new version to resolve