cjdelisle / packetcrypt_rs

PacketCrypt in Rust
54 stars 45 forks source link

freeze bug when mining after some time #53

Open e3dalive2 opened 2 years ago

e3dalive2 commented 2 years ago

Hi, we've been testing your miner and found a possible bug that happens(from 15min to 6 hours). It just freezes miner. I've tried various compilers, GCC & rust, CLANG & rust, linux, windows and it seems that majority have this problem. Tried latest git build & latest stable version, both had it. Mostly happens in release mode. I think it's related to unstable network, on stable network it usually runs just fine. Pool: http://pool.pktpool.io Wallet: pkt1qs8km6dq2nfnhw7m5t3jj4t0jnsqa246fzkhw77 Num threads: 8 Release build Last log before freeze(I'm assuming somewhere in the pool code, I've yet to determine exact location)

1652860635 DEBUG packetcrypt-annmine\src\annmine.rs:429 [3263] uploading [1024] anns to [http://0.ah.pktpool.io/submit] 1652860637 INFO packetcrypt-annmine\src\annmine.rs:579 669 Ke/s 2.55Mb/s overflow: [0] uploading: [1024] accept/reject/overload: [3072/0/0] - goodrate: [100%] 1652860637 DEBUG packetcrypt-annmine\src\annmine.rs:483 [3263] handler [http://0.ah.pktpool.io/submit] replied: OK [1024] 1652860638 DEBUG packetcrypt-annmine\src\annmine.rs:429 [3264] uploading [1024] anns to [http://0.ah.pktpool.io/submit] 1652860641 DEBUG packetcrypt-annmine\src\annmine.rs:429 [3265] uploading [1024] anns to [http://0.ah.pktpool.io/submit] 1652860642 DEBUG packetcrypt-annmine\src\annmine.rs:483 [3264] handler [http://0.ah.pktpool.io/submit] replied: OK [1024] 1652860642 DEBUG packetcrypt-annmine\src\annmine.rs:483 [3265] handler [http://0.ah.pktpool.io/submit] replied: OK [1024] 1652860644 DEBUG packetcrypt-annmine\src\annmine.rs:429 [3266] uploading [1024] anns to [http://0.ah.pktpool.io/submit] 1652860646 DEBUG packetcrypt-annmine\src\annmine.rs:483 [3266] handler [http://0.ah.pktpool.io/submit] replied: OK [1024] 1652860647 INFO packetcrypt-annmine\src\annmine.rs:579 710 Ke/s 2.71Mb/s overflow: [0] uploading: [0] accept/reject/overload: [4096/0/0] - goodrate: [100%] 1652860647 DEBUG packetcrypt-annmine\src\annmine.rs:429 [3267] uploading [1024] anns to [http://0.ah.pktpool.io/submit] 1652860647 INFO packetcrypt-util\src\poolclient.rs:92 Discovered block [c342df031c5d535ae45953382b1198018c471595c3731751272d7271a24c3008 @ 1455815] 1652860647 DEBUG packetcrypt-util\src\poolclient.rs:58 We already know about block [fbccf6a6c45596a8f888b1965e5d45508855cc128eeb35021bb5b811dc72c21e @ 1455814] 1652860647 INFO packetcrypt-annmine\src\annmine.rs:265 Start mining with parent_block_height: [fbccf6a6c45596a8f888b1965e5d45508855cc128eeb35021bb5b811dc72c21e @ 1455814] old: [1]

After that usage drops to 0 and it seems to be stuck on tokio on some await(it doesn't return just hangs somewhere). No panic or error is displayed.