v13: hiddify-core crashes with a panic in sing-box grpc-lite transport (v1.13.0) - all users drop
Author: firexrwtCreated Sep 27, 2026Updated Sep 27, 2026
Version: 13.0.3 (upgraded from 12.3.x), non-docker, Ubuntu 22.04. hiddify-core bundles sing-box v1.13.0.
Symptom
hiddify-core occasionally dies with a panic in the gRPC transport. systemd restarts it after ~6 s, but every connection of every user going through hiddify-core (REALITY/gRPC nodes and everything xray hands over to core) drops at that moment:
panic: runtime error: slice bounds out of range [:-...]
github.com/sagernet/sing-box/transport/v2raygrpclite.(*GunConn).read(...)
github.com/sagernet/[email protected]/transport/v2raygrpclite/conn.go:93
...
hiddify-core.service: Main process exited, code=exited, status=2/INVALIDARGUMENTCause
It's an upstream sing-box bug in the grpc-lite transport (length handling in GunConn.read), not in Hiddify's own code. It's still present in sing-box v1.14.2 / current testing. I've reported the details to SagerNet privately, because the frame can be sent by a remote peer.
Ask
- Please bump hiddify-core's sing-box as soon as upstream ships a fix.
- Meanwhile, consider using the full gRPC transport (
grpcbuilt withwith_grpc) instead of grpc-lite for gRPC inbounds, if hiddify-core supports it. That code path doesn't go throughv2raygrpclite. - Consider recovering from panics per connection so one bad stream can't restart the whole core.
Related: #5566 (other hiddify-core restart/crash causes after the 13.0.3 upgrade).
Source: hiddify/Hiddify-Manager