Creepsky / creepMiner

Burstcoin C++ CPU and GPU Miner
GNU General Public License v3.0
172 stars 64 forks source link

The pool calculated a different deadline + during validate the plotfile the Miner chrashes with segmentation fault (1.8.2) + ignoring memory allocation #417

Closed BurnMe2 closed 6 years ago

BurnMe2 commented 6 years ago

Subject of the issue

Mining with POC2 plots causes this message: "The pool calculated a different deadline for your nonce than your miner has!"

I tried to check the plotfile with CreepMiner. Everytime i click the validate button in the webserver the CreepMiner crashes with the message Segmentation fault. I got this error some time ago on storing not plot files on the HDD but this time there is only one plotfile per HDD and nothing else.

During using forwarding feature with several PC the miner ignores the memory settings in the config and fully fills the RAM and the SWAP file and then it crashes.

Your environment

Steps to reproduce

Every restart of the Miner causes exactly the same behaviour on my machine

Expected behavior

Finding and submitting nonces without different deadline error

Actual behavior

The miner gives a mesage that the pool calculated a different deadline for my nonce than my miner has. On Validating the POC2 plot file with the Miner it crashes with error Segmentation fault error message.

Other information

Some days ago the miner flushes my memory until it was all filled with creepminer data. I was setting 34 GB but CreepMiner got more than 60 GB. At this time I had a lot more HDD and POC1 files in there. Actually only testing with POC2 files and a small amount of HDD (6 HDD each 10 TB, POC2 per Plotfile 9,8 TB).

In my actual log file i can see "Allocated memory: 0.0 MB". So i think there could be a memory allocation issue that causes this issue and perhaps that could be the problem for the segmentation fault issue too. But i am no developer.

Perhaps there could be a bad POC2 file cause this issue too, i think. I used the "cg_obup-PoC2" Plotter for creating my plotfiles. But all my POC2 files are affected with the "deadline error"

Cause i am on solo mining i think the calculated deadline from my pool is form my own Wallet BRS 2.2.1. So perhaps the wallet sends a wrong deadline message to the miner and perhaps the miner is working fine but the wallet is only sending wrong dealines ? I will try to set the a reward assignmnet again with the new BRS Wallet.

I don't know. In the end you can find my mining.config setting and log files (i deleted personal information in these files and set ... for these information)

mining2.config.txt creepMiner_20180626_063601.194979.txt

BurnMe2 commented 6 years ago

Hi,

setting the reward recipient with new Wallet BRS 2.2.1 didn't solve the problem.

When using my old POC1 that are still on some HDD the CreepMiner works slow but without any deadline issue.

BurnMe2 commented 6 years ago

Hi,

i did some more testing. Now the message "The pool calculated a different deadline .." appears even on PoC1 files during forwarding to the main Server.

I forwarded the CreepMiner to the main Miner thats is sending the nonces to the network. Even without any PoC2 the error appears on PoC1. Its a bit confusing and it seems like it has nothing to do with the Plotfile. I am using exact the same PoC1 as using before on older CreepMiner versions without any issue.

After some time the miner crashes with the message "Killed" in the terminal. I found the error on that. The CreepMiner is using the whole amount of RAM and the swapfile and fills everything. Then the process in the terminal gets kille when there no RAM or swapfile left and everything is filled. It seems that this memory allocation issue is exponential when using Forwarding from other Servers. The settings of max. 34 GB in the config file is ignored.

Actually i am testing the the newest PoC2 Plotter from PoC Consortium "engaver" and tell the results for PoC2 files.

BurnMe2 commented 6 years ago

Hi,

after plotting several PoC2 files (4 big plotfiles on 4 HDD) it tested again and the deadline error is gone for the first time and testing forwarding feature runs fine without memory filling. So my conclusion:

  1. Use engraver plotter for creating PoC2 files (it seems that the older cg_obup-PoC2 Plotter doesn't work correct)

  2. It seems when using PoC1 files and forwarding feature the memory is filled to 100 % and the deadline error is displayed too. So i switch to 100 % PoC2 in the next days ( or weeks :) ).

After all plotting is done i test again and tell the results here.

For me this issue can be closed. After closing i delete the config file and the log file in this thread.

If i get issues after all plotting is done i will make a new thread.

Creepsky commented 6 years ago

Thank you for testing all of this. I will close this issue now, but feel free to re-open it if you get the same or similar issues.