Hi everyone :wave: We believe we’ve identified a m...
# agents
m
Hi everyone 👋 We believe we’ve identified a memory leak in Livekit Agents JS. We’ve already reported it on GitHub, but we’re not sure if there’s anything else we could do to help resolve or debug the issue. Would anyone be able to point us in the right direction or help us investigate it further? Thanks a lot, and happy holidays! 🎄
r
Are you running the latest version. A couple of memory leaks were recently fixed.
m
Hi @refined-appointment-81829, we tested with the version 1.0.25 when I wrote. Just tested now with the 1.0.31 and updated the issue in Github with some screenshots. Now the behaviour is better and hangups during the call are properly handled but if you hangup really quick at the beginning of the call we can see the same issue, one process is abandoned alive. You can see screenshots here: https://github.com/livekit/agents-js/issues/927
Copy code
{"level":30,"time":1766747939289,"pid":701444,"hostname":"HBZF5B3","participant":"sip_1003","reason":"CLIENT_INITIATED","msg":"closing agent session due to participant disconnect (disable via `RoomInputOptions.closeOnDisconnect=False`)"}
{"level":30,"time":1766747939290,"pid":701444,"hostname":"HBZF5B3","msg":"mainTask: draining and no more speech tasks"}
{"level":30,"time":1766747939290,"pid":701444,"hostname":"HBZF5B3","msg":"AgentActivity mainTask: exiting"}
[12:18:59.111] DEBUG (lk-rtc/701444): Connect callback received
{"level":20,"time":1766747959622,"pid":701444,"hostname":"HBZF5B3","pid":701444,"jobID":"AJ_SbGWsrYsbbTE","msg":"shutting down"}
{"level":20,"time":1766747959624,"pid":701384,"hostname":"HBZF5B3","msg":"job exiting"}
{"level":40,"time":1766748018703,"pid":701384,"hostname":"HBZF5B3","msg":"job is unresponsive"}
{"level":20,"time":1766748018704,"pid":701444,"hostname":"HBZF5B3","pid":701444,"jobID":"AJ_SbGWsrYsbbTE","msg":"SIGTERM received in job proc"}