LostRuins / koboldcpp

A simple one-file way to run various GGML and GGUF models with KoboldAI's UI

Home Page:https://github.com/lostruins/koboldcpp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

windows environment asyncio\windows_events.py error

linkingnie opened this issue · comments

Traceback (most recent call last):
File "asyncio\windows_events.py", line 434, in select
RuntimeError: <_overlapped.Overlapped object at 0x0000022333E7A540> still has pending operation at deallocation, the process may crash

Add the following code to avoid errors:
if platform.system() == 'Windows':
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())

This error occurs when using SSE requests.

Is this error only present on exit? I have not observed any issues with SSE

Hmm alright, i'll take a look, a bit hesitant to change it because I don't know what that fully does.

Can you try changing the Streaming mode in settings from SSE to Poll? Would that solve your issue?

OK, thanks. This error does not seem to affect the generation. I have modified the code to remove the error message. But I still want to report it to you.