0xPolygon / kurtosis-cdk

A Kurtosis package that deploys a private, portable, and modular Polygon CDK devnet
https://docs.polygon.technology/cdk
Apache License 2.0
28 stars 43 forks source link

"method handler crashed" when following README for `cdk-erigon` #158

Open 0xaatif opened 2 weeks ago

0xaatif commented 2 weeks ago

This line fails: https://github.com/0xPolygon/kurtosis-cdk/blob/821aeaa981ae42e40b96e022dfded25a1f41916b/README.md?plain=1#L70

$ polycli loadtest --rpc-url "$ETH_RPC_URL" --legacy --private-key "$PK" --verbosity 700 --requests 500 --rate-limit 10 --mode 2
12:40PM TRC Starting logger in console mode
12:40PM INF Starting Load Test
12:40PM INF Connecting with RPC endpoint to initialize load test parameters
12:40PM TRC Retrieved current gas price gasprice=1000000000
12:40PM TRC Current Block Number blocknumber=93
12:40PM TRC Current account balance balance=99998968979000000000000
12:40PM TRC Detected Chain ID chainID=10101
12:40PM TRC Params Input Params={"AdaptiveBackoffFactor":2,"AdaptiveCycleDuration":10,"AdaptiveRateLimit":false,"AdaptiveRateLimitIncrement":50,"BatchSize":999,"BlobFeeCap":100000,"ByteCount":1024,"CallOnly":false,"CallOnlyLatestBlock":false,"ChainID":10101,"ChainSupportBaseFee":false,"Concurrency":1,"ContractAddress":"","ContractCallData":"","ContractCallFunctionArgs":[],"ContractCallFunctionSignature":"","ContractCallPayable":false,"ContractETHAddress":"0x0000000000000000000000000000000000000000","CurrentBaseFee":null,"CurrentGasPrice":1000000000,"CurrentGasTipCap":null,"CurrentNonce":1009,"DelAddress":null,"ECDSAPrivateKey":{"Curve":{"B":7,"BitSize":256,"Gx":55066263022277343669578718895168534326250603453777594175500187360389116729240,"Gy":32670510020758816978083085130507043184471273380659243275938904335757337482424,"N":115792089237316195423570985008687907852837564279074904382605163141518161494337,"P":115792089237316195423570985008687907853269984665640564039457584007908834671663},"D":8523039197292183990613031917377213594046213693988906698282515304086197421605,"X":71861720007944413833354770221905654455850562162544793353863520913732499495719,"Y":68923951175458320224549189309087606244236136654873433918477596083766111902588},"ERC20Address":"","ERC721Address":"","EthAmountInWei":0.001,"ForceContractDeploy":false,"ForceGasLimit":0,"ForceGasPrice":0,"ForcePriorityGasPrice":0,"FromETHAddress":"0xe34aaf64b29273b7d567fcfc40544c014eee9970","Function":1,"InscriptionContent":"data:,{\"p\":\"erc-20\",\"op\":\"mint\",\"tick\":\"TEST\",\"amt\":\"1\"}","Iterations":1,"LegacyTransactionMode":true,"LtAddress":"","Mode":6,"Modes":["2"],"MultiMode":false,"ParsedModes":[6],"PrivateKey":"0x12d7de8621a77640c9241b2595ba78ce443d05e94090365ab3bb5e19df82c625","RPCUrl":"http://127.0.0.1:62801","RateLimit":10,"RecallLength":50,"Requests":500,"Seed":123456,"SendAmount":1000000000000000,"SendOnly":false,"ShouldProduceSummary":false,"SteadyStateTxPoolSize":1000,"SummaryOutputMode":"text","TimeLimit":-1,"ToAddress":"0xDEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEF","ToETHAddress":"0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef","ToRandom":false}
12:40PM ERR Unable to deploy ERC20 contract error="method handler crashed"
12:40PM ERR Error during the main load test loop error="method handler crashed"
12:40PM FTL Received critical error while running load test error="method handler crashed"

(I think I missed the service logs)

As does this one after - with a suspicious log method eth_estimateGas crashed: runtime error: invalid memory address or nil pointer dereference: https://github.com/0xPolygon/kurtosis-cdk/blob/821aeaa981ae42e40b96e022dfded25a1f41916b/README.md?plain=1#L71

$ polycli loadtest --rpc-url "$ETH_RPC_URL" --legacy --private-key "$PK" --verbosity 700 --requests 500 --rate-limit 3  --mode uniswapv3
12:43PM TRC Starting logger in console mode
12:43PM INF Starting Load Test
12:43PM INF Connecting with RPC endpoint to initialize load test parameters
12:43PM TRC Retrieved current gas price gasprice=1000000000
12:43PM TRC Current Block Number blocknumber=119
12:43PM TRC Current account balance balance=99998968979000000000000
12:43PM TRC Detected Chain ID chainID=10101
12:43PM TRC Params Input Params={"AdaptiveBackoffFactor":2,"AdaptiveCycleDuration":10,"AdaptiveRateLimit":false,"AdaptiveRateLimitIncrement":50,"BatchSize":999,"BlobFeeCap":100000,"ByteCount":1024,"CallOnly":false,"CallOnlyLatestBlock":false,"ChainID":10101,"ChainSupportBaseFee":false,"Concurrency":1,"ContractAddress":"","ContractCallData":"","ContractCallFunctionArgs":[],"ContractCallFunctionSignature":"","ContractCallPayable":false,"ContractETHAddress":"0x0000000000000000000000000000000000000000","CurrentBaseFee":null,"CurrentGasPrice":1000000000,"CurrentGasTipCap":null,"CurrentNonce":1009,"DelAddress":null,"ECDSAPrivateKey":{"Curve":{"B":7,"BitSize":256,"Gx":55066263022277343669578718895168534326250603453777594175500187360389116729240,"Gy":32670510020758816978083085130507043184471273380659243275938904335757337482424,"N":115792089237316195423570985008687907852837564279074904382605163141518161494337,"P":115792089237316195423570985008687907853269984665640564039457584007908834671663},"D":8523039197292183990613031917377213594046213693988906698282515304086197421605,"X":71861720007944413833354770221905654455850562162544793353863520913732499495719,"Y":68923951175458320224549189309087606244236136654873433918477596083766111902588},"ERC20Address":"","ERC721Address":"","EthAmountInWei":0.001,"ForceContractDeploy":false,"ForceGasLimit":0,"ForceGasPrice":0,"ForcePriorityGasPrice":0,"FromETHAddress":"0xe34aaf64b29273b7d567fcfc40544c014eee9970","Function":1,"InscriptionContent":"data:,{\"p\":\"erc-20\",\"op\":\"mint\",\"tick\":\"TEST\",\"amt\":\"1\"}","Iterations":1,"LegacyTransactionMode":true,"LtAddress":"","Mode":15,"Modes":["uniswapv3"],"MultiMode":false,"ParsedModes":[15],"PrivateKey":"0x12d7de8621a77640c9241b2595ba78ce443d05e94090365ab3bb5e19df82c625","RPCUrl":"http://127.0.0.1:62801","RateLimit":3,"RecallLength":50,"Requests":500,"Seed":123456,"SendAmount":1000000000000000,"SendOnly":false,"ShouldProduceSummary":false,"SteadyStateTxPoolSize":1000,"SummaryOutputMode":"text","TimeLimit":-1,"ToAddress":"0xDEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEF","ToETHAddress":"0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef","ToRandom":false}
12:43PM DBG 🦄 Deploying UniswapV3 contracts...
12:43PM DBG Step 0: WETH9 deployment
12:43PM ERR Unable to deploy contract error="method handler crashed"
12:43PM ERR Error during the main load test loop error="method handler crashed"
12:43PM FTL Received critical error while running load test error="method handler crashed"

$ kurtosis service logs cdk-v1 cdk-erigon-node-001
[cdk-erigon-node-001] [INFO] [06-17|11:42:19.355] [16/16 Finish] Finished
...
[cdk-erigon-node-001] [INFO] [06-17|11:43:07.525] RPC Daemon notified of new headers       from=117 to=119 hash=0x108c9c5c44f5be7d269e4cb8bc26509289a0b5c4b3aef8b9a2b3f6dc25a9c733 header sending=40.129µs log sending=239ns
[cdk-erigon-node-001] [INFO] [06-17|11:43:07.525] [1/16 L1Syncer] Starting L1 sync stage
[cdk-erigon-node-001] [INFO] [06-17|11:43:07.525] [1/16 L1Syncer] Saving L1 syncer progress latestCheckedBlock=774 newVerificationsCount=0 newSequencesCount=1
[cdk-erigon-node-001] [INFO] [06-17|11:43:07.525] [1/16 L1Syncer] Finished L1 sync stage
[cdk-erigon-node-001] [INFO] [06-17|11:43:07.525] [2/16 L1InfoTree] Starting L1 Info Tree stage
[cdk-erigon-node-001] [INFO] [06-17|11:43:07.525] [2/16 L1InfoTree] Info tree updates      count=0
[cdk-erigon-node-001] [INFO] [06-17|11:43:07.525] [2/16 L1InfoTree] Finished L1 Info Tree stage
[cdk-erigon-node-001] [INFO] [06-17|11:43:07.525] [3/16 Batches] Starting batches stage
[cdk-erigon-node-001] [INFO] [06-17|11:43:07.525] [3/16 Batches] Reading blocks from the datastream.
[cdk-erigon-node-001] [WARN] [06-17|11:43:10.140] Gas estimation capped by limited funds   original=1125899906842624 balance=0x152cf478f527e9883000 sent=0 maxFeePerGas=1000000000 fundable=99998968979000
[cdk-erigon-node-001] [WARN] [06-17|11:43:10.140] Caller gas above allowance, capping      requested=99998968979000 cap=50000000
[cdk-erigon-node-001] [EROR] [06-17|11:43:10.141] RPC method eth_estimateGas crashed: runtime error: invalid memory address or nil pointer dereference
[cdk-erigon-node-001] [service.go:217 panic.go:884 panic.go:260 signal_unix.go:841 call.go:246 eth_call.go:252 value.go:586 value.go:370 service.go:227 handler.go:494 handler.go:444 handler.go:392 handler.go:223 handler.go:316 asm_amd64.s:1598]
[cdk-erigon-node-001] [WARN] [06-17|11:43:10.141] Served                                   conn=172.16.0.4:43402 method=eth_estimateGas reqid=9 t=649.037µs err="method handler crashed"

Versions

kurtosis 0.90.1 kurtosis-cdk 821aeaa cast 0.2.0 (fd87888 2024-06-17T00:19:40.959752148Z) Polygon CLI Version v0.1.45-4-ge369181

Output

bug-report.txt