https://www.boundaryml.com logo
🟡 Panic Issue with BAML Go Collector v0.216.0
# questions
s
BAML Go Collector Panic (v0.216.0) Getting a panic when using Collector with Go: Decode: holder=&{NullValue:} panic: reflect: call of reflect.Value.Interface on zero Value How to reproduce: collector, _ := baml.NewCollector("my-collector") result, _ := baml.MyFunction(ctx, input, baml.WithCollector(collector)) // Panic happens during GC when finalizer runs Root cause: In utils.go:184, when the destructor returns a NullValue, serde.Decode() returns a zero reflect.Value, then .Interface() panics.
v
This is solved in 0.217!
a
I will publish 0.217.0 tonight
s
Because of this issue, the server does not stay up for more than 2 or 3 baml sessions. Until 0.217 is available, do you recommend downgrading to an earlier version that is safe from this issue? Thanks!
a
0.217.0 is now available!
s
Yay! works. Thank You!🙏
2 Views