5-12-11 11:43:49,794 - DEBUG comtypes._post_coinit...
# ask-ai
r
2025-12-11 114349,794 - DEBUG comtypes._post_coinit.unknwn - Release <POINTER(IUnknown) ptr=0x1dba8485c90 at 1dba983b4d0> Process inference_proc: Traceback (most recent call last): File "C:\Users\ASUS TUF\AppData\Roaming\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\asyncio\windows_events.py", line 462, in finish_socket_func return ov.getresult() ^^^^^^^^^^^^^^ OSError: [WinError 64] The specified network name is no longer available During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\ASUS TUF\Desktop\works\123 livekit\.venv\Lib\site-packages\livekit\agents\utils\aio\duplex_unix.py", line 57, in aclose await self._writer.wait_closed() File "C:\Users\ASUS TUF\AppData\Roaming\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\asyncio\streams.py", line 364, in wait_closed await self._protocol._get_close_waiter(self) File "C:\Users\ASUS TUF\AppData\Roaming\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\asyncio\proactor_events.py", line 286, in _loop_reading length = fut.result() ^^^^^^^^^^^^ File "C:\Users\ASUS TUF\AppData\Roaming\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\asyncio\windows_events.py", line 803, in _poll value = callback(transferred, key, ov) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\ASUS TUF\AppData\Roaming\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\asyncio\windows_events.py", line 466, in finish_socket_func raise ConnectionResetError(*exc.args) ConnectionResetError: [WinError 64] The specified network name is no longer available The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\ASUS TUF\AppData\Roaming\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\multiprocessing\process.py", line 314, in _bootstrap self.run() File "C:\Users\ASUS TUF\AppData\Roaming\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\multiprocessing\process.py", line 108, in run self._target(*self._args, **self._kwargs) File "C:\Users\ASUS TUF\Desktop\works\123 livekit\.venv\Lib\site-packages\livekit\agents\ipc\inference_proc_lazy_main.py", line 63, in proc_main client.run() File "C:\Users\ASUS TUF\Desktop\works\123 livekit\.venv\Lib\site-packages\livekit\agents\ipc\proc_client.py", line 85, in run loop.run_until_complete(self._task) File "C:\Users\ASUS TUF\AppData\Roaming\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\asyncio\base_events.py", line 691, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "C:\Users\ASUS TUF\Desktop\works\123 livekit\.venv\Lib\site-packages\livekit\agents\ipc\proc_client.py", line 161, in _monitor_task await self._acch.aclose() File "C:\Users\ASUS TUF\Desktop\works\123 livekit\.venv\Lib\site-packages\livekit\agents\utils\aio\duplex_unix.py", line 60, in aclose raise DuplexClosed() from e livekit.agents.utils.aio.duplex_unix.DuplexClosed
t
Thanks for reaching out, Av. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I see the traceback showing a Windows IPC/socket error (WinError 64) that bubbles into
DuplexClosed
while an inference subprocess is shutting down. I can help troubleshoot — a few quick questions to narrow this down: 1. Which LiveKit Agents package version are you running? (output of
pip show livekit-agents
or the version in your env) 2. Which Python version are you using (exact 3.x) and are you on native Windows, WSL2, or a VM? 3. What agent components/plugins are enabled (STT, VAD, inference model, others)? 4. Do you spawn many inference processes concurrently or use a custom concurrency/worker config? 5. Does the error happen consistently at a particular action (startup, shutdown, during inference), or intermittently? 6. Have you tried a graceful shutdown (awaiting
session.aclose()
/ not killing processes) and/or updating
livekit-agents
to the latest version? If you prefer, paste a minimal reproducible snippet that starts the agent and spawns the inference worker — I’ll review it for suspicious patterns (blocking calls in the event loop, rapid spawn/kill, missing awaits). Sources: Improving voice AI&#39;s turn detection with transformers | Events and error handling | LiveKit docs | Job lifecycle | LiveKit docs | Agents Framework | livekit/livekit_composite | DeepWiki | Understanding the STATE_MISMATCH Disconnect Reason