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

chia plots create -k 20 -> RuntimeError #727

Closed
altendky opened this issue Jan 21, 2021 · 5 comments
Closed

chia plots create -k 20 -> RuntimeError #727

altendky opened this issue Jan 21, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@altendky
Copy link
Contributor

Describe the bug

$ venv/bin/chia plots create -k 20 -n 1 -b 4096 -r 8 -t /chia/temporary -d /chia/final/
22:26:46.652  src.plotting.create_plots        : WARNING  CREATING PLOTS WITH SIZE k=20, which is less than the minimum required for mainnet
22:26:46.652  src.plotting.create_plots        : INFO     Creating 1 plots of size 20, pool public key:  a55d8fdada643a43d86a889c2c746ce848c0e2d00f7c012fc4c6e77d1e2f9f54a99dd38af59f8284f2178b810ecc7a95 farmer public key: b0a374845f4f4d6eab62fc4c5e17965d82ad7eee105818e5bd0cfcb46275a16acc4cd30955779bec841a716473416b21
22:26:46.658  src.plotting.create_plots        : INFO     Adding directory /chia/final to harvester for farming
22:26:46.682  src.plotting.create_plots        : INFO     Starting plot 1/1
Caught plotting error: Stripe size too large
Traceback (most recent call last):
  File "venv/bin/chia", line 33, in <module>
    sys.exit(load_entry_point('chia-blockchain', 'console_scripts', 'chia')())
  File "/home/altendky/repos/chia-blockchain/src/cmds/chia.py", line 60, in main
    return chia(args, parser)
  File "/home/altendky/repos/chia-blockchain/src/cmds/chia.py", line 54, in chia
    return args.function(args, parser)
  File "/home/altendky/repos/chia-blockchain/src/cmds/plots.py", line 158, in handler
    create_plots(args, root_path)
  File "/home/altendky/repos/chia-blockchain/src/plotting/create_plots.py", line 153, in create_plots
    args.nobitfield,
RuntimeError: std::exception

To Reproduce
Steps to reproduce the behavior:

$ git rev-parse HEAD
b82f3ba8a2953de12bddf5c5d6a33e443b51bc8b
$ venv/bin/python --version --version
Python 3.7.9 (default, Oct  8 2020, 21:25:44) 
[GCC 9.3.0]
$ venv/bin/chia plots create -k 20 -n 1 -b 4096 -r 8 -t /chia/temporary -d /chia/final/
<see above>
$ venv/bin/pip freeze --all
aiohttp==3.7.3
aiosqlite @ git+https://github.com/mariano54/aiosqlite.git@28cb5754deec562ac931da8fca799fb82df97a12
aiter==0.13.20191203
argon2-cffi==20.1.0
async-timeout==3.0.1
attrs==20.3.0
bitstring==3.1.7
blspy==0.3.1
cbor2==5.2.0
cffi==1.14.4
chardet==3.0.4
-e git+git@github.com:Chia-Network/chia-blockchain@b82f3ba8a2953de12bddf5c5d6a33e443b51bc8b#egg=chia_blockchain
chiabip158==0.17
chiapos==0.12.41
chiavdf==0.13.2
clvm==0.7
clvm-tools==0.2.0
colorlog==4.7.2
concurrent-log-handler==0.9.19
cryptography==3.3.1
idna==3.1
importlib-metadata==3.4.0
jeepney==0.6.0
keyring==21.5.0
keyrings.cryptfile==1.3.4
miniupnpc==2.1
multidict==5.1.0
pip==20.3.3
portalocker==2.0.0
pycparser==2.20
pycryptodome==3.9.9
PyYAML==5.3.1
SecretStorage==3.3.0
setproctitle==1.1.10
setuptools==47.1.0
six==1.15.0
sortedcontainers==2.3.0
typing-extensions==3.7.4.3
websockets==8.1
wheel==0.36.2
yarl==1.6.3
zipp==3.4.0

Expected behavior
It seems to detect a bad situation (stripe size too large) so I would expect it to not RuntimeError following that.

Desktop (please complete the following information):

  • OS: Linux
  • OS Version/Flavor: Ubuntu 20.04.1 LTS
  • CPU: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
@altendky altendky added the bug Something isn't working label Jan 21, 2021
@hoffmang9
Copy link
Member

There are known issues with k's below 25. The way python imports the C++ plotting library means that it can only report the C failure. I'll add warning or disable under 25 in the python side.

@hoffmang9
Copy link
Member

79561ac

@hoffmang9
Copy link
Member

Excellent bug report though - thank you!

@altendky
Copy link
Contributor Author

Thanks for the quick resolution. :]

@mariano54
Copy link
Contributor

If you want to make super small plots though, you can decrease the stripe size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants