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

Fatal Python error: ffi.from_handle() detected that the address passed points to garbage #11

Closed
rq4w7z opened this issue Jun 3, 2016 · 4 comments

Comments

@rq4w7z
Copy link

rq4w7z commented Jun 3, 2016

When I execute

proxybroker find --types HTTP HTTPS --lvl High --countries US --strict -l 10

I receive

Fatal Python error: ffi.from_handle() detected that the address passed points to garbage. If it is really the result of ffi.new_handle(), then the Python object has already been garbage collected

Thread 0x00000d08 (most recent call first):
  File "c:\python35\lib\threading.py", line 293 in wait
  File "c:\python35\lib\queue.py", line 164 in get
  File "c:\python35\lib\concurrent\futures\thread.py", line 64 in _worker
  File "c:\python35\lib\threading.py", line 862 in run
  File "c:\python35\lib\threading.py", line 914 in _bootstrap_inner
  File "c:\python35\lib\threading.py", line 882 in _bootstrap

Current thread 0x000052f4 (most recent call first):
  File "c:\python35\lib\site-packages\pycares\_cfficore\__init__.py", line 122 in _sock_state_cb
  File "c:\python35\lib\site-packages\pycares\_cfficore\__init__.py", line 455 in process_fd
  File "c:\python35\lib\site-packages\pycares\_cfficore\__init__.py", line 113 in wrapper
  File "c:\python35\lib\site-packages\aiodns\__init__.py", line 103 in _handle_event
  File "c:\python35\lib\asyncio\events.py", line 125 in _run
  File "c:\python35\lib\asyncio\base_events.py", line 1254 in _run_once
  File "c:\python35\lib\asyncio\base_events.py", line 295 in run_forever
  File "c:\python35\lib\asyncio\base_events.py", line 325 in run_until_complete
  File "c:\python35\lib\site-packages\proxybroker\cli.py", line 310 in cli
  File "C:\Python35\Scripts\proxybroker-script.py", line 9 in <module>

on last version from pip and from this repository.

Windows 8.1 x64, Python 3.5.1
cffi versions 1.5, 1.6

@constverum
Copy link
Owner

Until tomorrow no way to check on Win8x64 (but everything is fine on Win7x32).
However, it seems that this error is not ProxyBroker, but in pycares/cffi on x64.

Two suggestions:

  1. Try to install an old pycares version: pip install pycares==1.0.0. Then execute the specified command with the option --log DEBUG, and post here the output from the console:

    proxybroker --log DEBUG find --types HTTP HTTPS --lvl High --countries US --strict -l 10.

  2. Try execute code from the documentation aiodns. It was completed without errors?

@constverum
Copy link
Owner

constverum commented Jun 7, 2016

Found the source of the error.
A complete solution in the next release pycares.

Temporary solution: use pycares 1.0 or download the wheel of pycares 2.0 from appveyor and install it:
pip install pycares -f path_to/pycares-2.0.1-cp35-cp35m-win_amd64.whl

@constverum
Copy link
Owner

The problem is solved. You can use the latest version of pycares!

@rq4w7z
Copy link
Author

rq4w7z commented Jun 14, 2016

Thank you!

ckir pushed a commit to ckir/ProxyBroker that referenced this issue Jan 13, 2023
enhance the External ip checking process
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants