Open roquie opened 4 years ago
Thank you for the report, I can reproduce the issue.
This is caused by a register_shutdown_function
callback, seems like UV automatically closes handles too early.
Is it a bug in ext-uv then?
Either that or within PHP itself. According to @bwoebi it's reproducible on PHP 7.4, but not with master. Could you open a report at the ext-uv repository?
I've a similar problem, though in my case it's a normal loop, I was not able to reproduce it easily. In my case I run my loop and it runs fine for 12+ hours, suddenly I am getting that Warning message (millions of them). It does not happen with the default loop implementation, that runs for 2+ weeks stable in identical code. I'll switch back to the default loop.
If I had my output into a logfile the error messages would have filled up the diskspace. I've no idea what triggers the error (looks like an internal bug to me) but it should throw a Error not a Warning. So the thing doesn't go "crazy" when it happens.
uv_run($loop = class UVLoop { }, $run_mode = 1) PHP Warning: uv_run(): passed UVLoop handle is already closed in src/ExtUvLoop.php on line 231
Code to reproduce (extension
uv.so
must be enabled):Output with infinity loop:
Other info:
MacOS Catalina 10.15.3
P.S. With disabled xdebug problem will still alive.