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
This error occurs after each generate.
https://github.com/LostRuins/koboldcpp/assets/51227152/5f33ffdd-f5ac-414c-9ec5-6d2595d044b0
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.