Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows environment asyncio\windows_events.py error #836

Open
linkingnie opened this issue May 9, 2024 · 6 comments
Open

windows environment asyncio\windows_events.py error #836

linkingnie opened this issue May 9, 2024 · 6 comments

Comments

@linkingnie
Copy link

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

@linkingnie
Copy link
Author

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

@linkingnie
Copy link
Author

This error occurs when using SSE requests.

@LostRuins
Copy link
Owner

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

@linkingnie
Copy link
Author

@LostRuins
Copy link
Owner

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?

@linkingnie
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants