RuntimeError: cannot use from_handle() on NULL pointer
Author: 2161478Created Jun 30, 2021Updated Dec 24, 2025
- gevent version: 21.1.2 from pypi
- Python version: 3.9 downloaded from python.org
- Operating System: Windows 10 64 Bit Build 19042.1052
Description:
I was doing some requests then have encountered this issue: RuntimeError: cannot user from_handle() on NULL pointer WARNING: gevent: Unhandled error with no watcher
I only get this from time to time so I have a hard time replicating it.
File: "gevent\libuv\loop.ppy", line 46, in python_queue_callback def python_queue_callback(self, watcher_ptr, revents):
watcher_handle = watcher_ptr.data
the_watcher = self.from_handle(watcher_handle)
the_watcher.loop._queue_callback(watcher_ptr, revents)
Source: gevent/gevent