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

testnet module=miner panic: runtime error #238

Closed
wyonghao opened this issue Oct 16, 2022 · 0 comments
Closed

testnet module=miner panic: runtime error #238

wyonghao opened this issue Oct 16, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@wyonghao
Copy link
Contributor

Hello my
System info QNG Version=1.0.18+dev-4b7e43b Go version=go1.18.7
when I use:
./qng --testnet --miningaddr=Tk2cWHhntqZT3bV9cK6wJPybmM5CL1Zgk2zgEBS3YXHXXs3yCsoMH --miner --generate --evmenv="--http --http.port=18545 --http.api=net,web3,eth,qng"

It seems to be caused by "--generate" option. it this one no longer supported or there are other problems. Please see below error outputs:

2022-10-16|09:40:41.693 [INFO ] Start CPU Worker... module=miner
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x17f7890]

goroutine 2248 [running]:
github.com/Qitmeer/qng/meerevm/chain.(*MeerChain).MeerPool(...)
/home/ubuntu/meerlabs/qng/meerevm/chain/meerchain.go:291
github.com/Qitmeer/qng/meerevm/evm.(*VM).GetTxsFromMempool(0x0?)
/home/ubuntu/meerlabs/qng/meerevm/evm/vm.go:294 +0x20
github.com/Qitmeer/qng/vm.(*Service).GetTxsFromMempool(0x1?)
/home/ubuntu/meerlabs/qng/vm/service.go:240 +0x5c
github.com/Qitmeer/qng/services/mempool.(*TxPool).MiningDescs(0x401b79a000)
/home/ubuntu/meerlabs/qng/services/mempool/mempool.go:1208 +0x1dc
github.com/Qitmeer/qng/services/mining.NewBlockTemplate(0x40210e2240, 0x3a278c0, 0x40000805c0?, {0x2c82eb0, 0x401b79a000}, {0x2c7c2a0?, 0x4000618d00?}, 0x4000001440, {0x2c88260?, 0x40007c66c0}, ...)
/home/ubuntu/meerlabs/qng/services/mining/newblocktemplate.go:147 +0x274
github.com/Qitmeer/qng/services/miner.(*Miner).updateBlockTemplate(0x401b79a2c0, 0x18?)
/home/ubuntu/meerlabs/qng/services/miner/miner.go:317 +0x144
github.com/Qitmeer/qng/services/miner.(*CPUWorker).Start(0x401f33e1b0)
/home/ubuntu/meerlabs/qng/services/miner/cpuworker.go:77 +0xc0
github.com/Qitmeer/qng/services/miner.(*Miner).handler(0x401b79a2c0)
/home/ubuntu/meerlabs/qng/services/miner/miner.go:135 +0xc8c
created by github.com/Qitmeer/qng/services/miner.(*Miner).Start
/home/ubuntu/meerlabs/qng/services/miner/miner.go:92 +0xc8

@dindinw dindinw assigned lochjin and jamesvan2019 and unassigned lochjin Oct 16, 2022
@dindinw dindinw added the bug Something isn't working label Oct 16, 2022
@dindinw dindinw assigned lochjin and unassigned jamesvan2019 Oct 16, 2022
jamesvan2019 pushed a commit to jamesvan2019/qng that referenced this issue Oct 16, 2022
dindinw added a commit that referenced this issue Oct 16, 2022
[Fix #238]BUG:error caused by generate config
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

4 participants