ethereum-mining / ethminer

Ethereum miner with OpenCL, CUDA and stratum support
GNU General Public License v3.0
5.98k stars 2.29k forks source link

[master] stratum: invalid epoch, dag memory size #1722

Closed hackmod closed 6 years ago

hackmod commented 6 years ago

Describe the bug invalid epoch, dag memory size for stratum cases. Please see screenshot.

getWork works with no problem.

branch point commit 07ea6f91be5135f0678a0aef775c05fa48a286aa Merge: 4df6898 1ec2342

Author: Andrea Lanfranchi <andrea.lanfranchi@isiweb.it>
Date:   Wed Nov 28 13:03:12 2018 +0100

    Merge pull request #1721 from ethereum-mining/clang-tidy

    Tune clang-tidy config and fix some warnings**

Screenshots (Optional) image

hackmod commented 6 years ago

personally, Im going to rebase the ProgPoW fork on top of the current master branch. but the current master branch is too unstable. anyway keep going greate work!!

AndreaLanfranchi commented 6 years ago

@hackmod the issue described has already been amended. At which commit level are you ?

AndreaLanfranchi commented 6 years ago

Also please post logs (not screenshots) as some lines are truncated

hackmod commented 6 years ago

(branch commit 07ea6f91be5 (current master))


$ ~/src/ethminer/build2/ethminer/ethminer -v 3 --cuda-devices 1 2 3 --farm-recheck 18000 -U stratum+tcp://xxxxxxx%2eetc0:x@asia.ethash-hub.miningpoolhu
b.com:20555

ethminer 0.18.0-alpha.1-12+commit.07ea6f91
Build: linux/release/gnu

 i 21:36:31 ethminer Configured pool asia.ethash-hub.miningpoolhub.com:20555
 i 21:36:31 ethminer Selected pool asia.ethash-hub.miningpoolhub.com:20555
 i 21:36:31 ethminer  >> {"id":1,"jsonrpc":"2.0","method":"mining.subscribe","params":[]}
 i 21:36:31 ethminer  << {"id":1,"result":[[["mining.set_difficulty","deadbeefcafebabe4c98030000000000"],["mining.notify","deadbeefcafebabe4c98030000000000"]],"27ff8096",4],"error":null}
 i 21:36:31 ethminer Stratum mode detected: STRATUM
 i 21:36:31 ethminer Subscribed!
 i 21:36:31 ethminer  >> {"id":3,"jsonrpc":"2.0","method":"mining.authorize","params":["xxxxx.etc0","x"]}
 i 21:36:31 ethminer  << {"id":null,"method":"mining.notify","params":["7d42","0xdd67994ff11cd14699505a230d3c231b91e9c68129691a65cdb639f9c9fe4fa6","0x9b47e1765cef9674400bef45620d53a845a595c8cdaafcb3993a3a119b5576cf","0x00000000ffb34c02420e9948eacd78cf33b059a88ade1ff0614f7f3c303cf3a7",true]}
 i 21:36:31 ethminer Epoch : 233
 i 21:36:31 ethminer Difficulty : 4.30 Gh
 i 21:36:31 ethminer Job: #dd67994f… asia.ethash-hub.miningpoolhub.com:20555
 i 21:36:34 ethminer  << {"id":3,"result":true,"error":null}
 i 21:36:34 ethminer Authorized worker xxxxx.etc0
 i 21:36:34 ethminer Established connection to asia.ethash-hub.miningpoolhub.com:20555 [13.124.125.164:20555]
 i 21:36:34 ethminer Spinning up miners...
cu 21:36:34 cuda-0   Using Pci Id : 03:00.0 P106-100 (Compute 6.1) Memory : 5.93 GB
cu 21:36:34 cuda-1   Using Pci Id : 04:00.0 P106-100 (Compute 6.1) Memory : 5.93 GB
cu 21:36:34 cuda-2   Using Pci Id : 05:00.0 P106-100 (Compute 6.1) Memory : 5.93 GB
 i 21:36:34 ethminer  << {"id":null,"method":"mining.notify","params":["7d43","0x908c77e4be52be9136954c5890e04cfc1a0b1131095f1955bb2e39964489182b","0x9b47e1765cef9674400bef45620d53a845a595c8cdaafcb3993a3a119b5576cf","0x00000000ffb34c02420e9948eacd78cf33b059a88ade1ff0614f7f3c303cf3a7",true]}
 i 21:36:34 ethminer Job: #908c77e4… asia.ethash-hub.miningpoolhub.com:20555 [13.124.125.164:20555]
cu 21:36:34 cuda-0   Epoch 892,558,107 requires 13055174282.53 GB memory.
cu 21:36:34 cuda-0   This device hasn't available. Mining suspended ...
cu 21:36:35 cuda-2   Epoch 808,465,460 requires 9836798741.55 GB memory.
cu 21:36:35 cuda-2   This device hasn't available. Mining suspended ...
cu 21:36:35 cuda-1   Generating DAG + Light : 260.00 B
cu 21:36:35 cuda-1   Unexpected error CUDA error in func ethash_generate_dag at line 132 an illegal memory access was encountered on CUDA device 04:00.0
cu 21:36:35 cuda-1   Mining suspended ...
 m 21:36:36 ethminer Speed 0.00 Mh/s gpu0 0.00 gpu1 0.00 gpu2 0.00 Time: 00:00
 m 21:36:36 ethminer Solutions A0 gpu0:A0 gpu1:A0 gpu2:A0
^C i 21:36:39 main     Got interrupt ...
 i 21:36:39 main     Disconnected from asia.ethash-hub.miningpoolhub.com:20555 [13.124.125.164:20555]
 i 21:36:39 main     Shutting down miners...
 i 21:36:41 main     Terminated!
AndreaLanfranchi commented 6 years ago

With same verbosity please. There were also stratum messages.

AndreaLanfranchi commented 6 years ago

Strange thing is cuda-0 and cuda-2 properly detect abnormal DAG size and stop while cuda-2 tries to generate a 260 B dag file wich has no meaning.

Which is your --dag-loadmode parameter ?

hackmod commented 6 years ago

no --dag-loadmode parameter

AndreaLanfranchi commented 6 years ago

Solved.

hackmod commented 6 years ago

works nicely!!