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

Search cannot be canceled #4

Open
bllngr opened this issue Aug 28, 2018 · 0 comments
Open

Search cannot be canceled #4

bllngr opened this issue Aug 28, 2018 · 0 comments

Comments

@bllngr
Copy link

bllngr commented Aug 28, 2018

When a search is taking too long, it should be able to cancel it using Ctrl+C. This doesn't work (at least in Windows cmd/Powershell):

git_vanity.py DEC1A551F1ED
Attempting to find sha1 prefix `DEC1A551F1ED'
for commit `302e61425849fbfa779a9bb34a44673fe42cafbf'
[...]
Processing GS iteration 1
   Time:         0:00:00
   Last Speed:   N/A MH/s      (Avg: N/A MH/s)
   Tries remaining (optimistic):  100.000000% ...
   Chance (CDF):                  0.000000% ...
Processing GS iteration 11
   Time:         0:00:01.039226
   Last Speed:   40.4375 MH/s     (Avg: 40.3599 MH/s)
   Tries remaining (optimistic):  99.999985% ...
   Chance (CDF):                  0.000015% ...
From cffi callback <function _py_ref at 0x000001E8E92D6840>:
Traceback (most recent call last):
  File "C:\Python37\lib\site-packages\pyopencl\cffi_cl.py", line 72, in _py_ref
    @_ffi.callback('void*(void*)')
KeyboardInterrupt
Processing GS iteration 21
   Time:         0:00:02.065515
   Last Speed:   40.9083 MH/s     (Avg: 40.6127 MH/s)
   Tries remaining (optimistic):  99.999970% ...
   Chance (CDF):                  0.000030% ...

...and it just continues running. The only way to stop it is to kill the terminal or the python 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

1 participant