getting an error while performing RPC with the lat...
# ask-ai
w
getting an error while performing RPC with the latest release v1.0.22
Copy code
2025-11-28T05:21:20.928 app[48edde1a312118] syd [info] thread 'tokio-runtime-worker' (679) panicked at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb/library/core/src/time.rs:1165:31:

2025-11-28T05:21:20.928 app[48edde1a312118] syd [info] overflow when subtracting durations
t
Thanks for reaching out, Jimmy. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I’m looking into the RPC panic you reported (panic: “overflow when subtracting durations” during RPC on v1.0.22). I don’t yet have a reproducer, so I need a few quick details to diagnose and suggest a fix. Could you share the following: 1. Which SDK/language and exact SDK version are you using (server or client)? 2. The RPC method name and a minimal snippet showing how you call
performRpc
(or equivalent), including any timeout value you set. 3. Where this runs (self-hosted LiveKit or LiveKit Cloud) and the server version (if different from v1.0.22). 4. Full relevant logs around the panic (a few lines before/after) and whether this happens consistently or intermittently. 5. Steps to reproduce, or whether it occurred after a specific action (e.g., long-running RPC, high latency, large payload). With those I can: • Check if a timeout or duration is being set to an invalid/negative value and show how to protect against it. • Suggest a temporary workaround (e.g., explicit timeout values) and next steps for a permanent fix. Would you like me to start by reviewing your RPC call snippet and timeout usage? Sources: Remote method calls | LiveKit docs