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
WARNING: gevent: Unable to dereference handle; not stopping watcher. Native resources may leak. #1564
Comments
I am unable to reproduce that on a POSIX system using libuv. In fact, I can't find that the method in question is ever even called: bottle never closes its socket so the listener is never stopped. Can you modify |
You may have to F5 (refresh ) 4 to 5 times to have the error in Chrome but happens all the time in Edge. I've added traceback.print_exc(file=sys.stdout) in about 20 places after all except statement but can not manage to print the stack when the Warning is displayed. |
There's no active exception at that time, so |
I also just confirmed that I can not reproduce on mac. WARNING: gevent: Unable to dereference handle; not stopping watcher. Native resources may leak. This is most likely a bug in gevent. File "C:\Users\steph\.virtualenvs\testbottle-5QKBI09C\lib\site-packages\gevent\hub.py", line 618, in run
loop.run()
File "C:\Users\steph\.virtualenvs\testbottle-5QKBI09C\lib\site-packages\gevent\libuv\loop.py", line 511, in run
ran_status = libuv.uv_run(self._ptr, run_mode)
File "C:\Users\steph\.virtualenvs\testbottle-5QKBI09C\lib\site-packages\gevent\_ffi\loop.py", line 302, in python_prepare_callback
loop._run_callbacks()
File "C:\Users\steph\.virtualenvs\testbottle-5QKBI09C\lib\site-packages\gevent\libuv\loop.py", line 208, in _run_callbacks
self._prepare_ran_callbacks = self.__run_queued_callbacks()
File "C:\Users\steph\.virtualenvs\testbottle-5QKBI09C\lib\site-packages\gevent\libuv\loop.py", line 467, in __run_queued_callbacks
_callbacks.python_stop(None)
File "C:\Users\steph\.virtualenvs\testbottle-5QKBI09C\lib\site-packages\gevent\_ffi\loop.py", line 259, in python_stop
traceback.print_stack() |
I can also confirm I was able to reproduce the issue with gevent version: 1.5.0. |
SteffRainville commentedApr 14, 2020
•
edited
Description:
trying to run a very simple background job with Greenlet.spawn and keep getting this warning whenever I do a simple http query in Bottle 0.12.18
WARNING: gevent: Unable to dereference handle; not stopping watcher. Native resources may leak. This is most likely a bug in gevent.
Below minimal program to reproduce bug at will
just localhost:8080/hello
What I've run:
The text was updated successfully, but these errors were encountered: