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

UvDriver warnings #328

Open
enumag opened this issue Aug 6, 2020 · 2 comments
Open

UvDriver warnings #328

enumag opened this issue Aug 6, 2020 · 2 comments

Comments

@enumag
Copy link
Contributor

enumag commented Aug 6, 2020

I just got these warnings:

PHP Warning:  uv_update_time(): passed UVLoop handle is already closed in .../vendor/amphp/amp/lib/Loop/UvDriver.php on line 193
PHP Warning:  uv_now(): passed UVLoop handle is already closed in .../vendor/amphp/amp/lib/Loop/UvDriver.php on line 196

It happened right after an uncaught exception was thrown. Both warnings appeared several times. Then the process finally stopped.

@trowski
Copy link
Member

trowski commented Jul 11, 2022

I happened to see this myself just the other day on v3 when attempting to schedule a timer in a destructor during shutdown. I think the UvLoop handle was destroyed prior to the attempt to schedule the timer. We may need to make the handle nullable and ignore calls to the loop after destruct.

@mtalaeii
Copy link

I have this issue in v3 too
using madelineproto as rest api (passed uv loop handle is already closed ....)

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

No branches or pull requests

4 participants