You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Caused by a regression in4.37.10 for an edge case.
This isn't happening on Python 3.12 (or newer).
Python 3.12 made improvements to asyncio:
There's a recent SeleniumBase asyncio memory-saving feature that works great on Python 3.12 (and newer), but it causes some asyncio errors on 3.11 and older because those versions of Python have an asyncio issue that wasn't fixed until Python 3.12.
ERROR:asyncio:Task was destroyed but it is pending!
task: <Task cancelling name='Task-3' coro=<Listener.listener_loop() running at ~/SeleniumBase/seleniumbase/undetected/cdp_driver/connection.py:575> wait_for=<Future pending cb=[Task.task_wakeup()]>>
The text was updated successfully, but these errors were encountered:
I tested this on Python 3.11 and was able to reproduce the bug. I resolved the issue by modifying the Listener.cancel method. With this change, the leak no longer occurs in Python 3.11. The root cause was that Listener.cancel was not awaiting the cancellation process, but only on 3.11 (That is weird).
asyncio
errors on Python 3.11 (and older)Caused by a regression in
4.37.10
for an edge case.This isn't happening on Python 3.12 (or newer).
Python 3.12 made improvements to
asyncio
:There's a recent SeleniumBase
asyncio
memory-saving feature that works great on Python 3.12 (and newer), but it causes someasyncio
errors on 3.11 and older because those versions of Python have anasyncio
issue that wasn't fixed until Python 3.12.This reproduces the issue on Python
3.11
:The text was updated successfully, but these errors were encountered: