namecoin / namecoin-core

Namecoin full node + wallet based on the current Bitcoin Core codebase.
https://www.namecoin.org/
MIT License
463 stars 146 forks source link

0.15.99-beta2 namecoin-qt GUI freezing within 10-20 seconds #211

Open redblade7 opened 6 years ago

redblade7 commented 6 years ago

Hi,

Upon loading, the namecoin-qt from 0.15.99-beta2 freezes the GUI within about 10-20 seconds, making buttons and menu items unclickable.

However, per debug.log, Namecoin itself is still running and making connections as expected.

No problems after downgrading back to 0.15.99-beta1.

Using Gentoo 17.0 with KDE Plasma 5.

Thank you!

JeremyRand commented 6 years ago

I've reproduced this. Namecoin Core 0.15.99-name-tab-beta2, self-compiled (with Gitian), on Qubes 3.2 / Fedora 26.

No obvious errors show up in debug.log, but I do notice the following at the end of the log:

2018-02-26 00:56:43 UpdateTip: new best=0423f1b13ae1c565431ad8e679644bfd12378b1a71e5d3ebfe959cc933bc07b5 height=386703 version=0x00010104 log2_work=87.595004 tx=4738854 date='2018-02-25 00:28:01' progress=0.999649 cache=8.4MiB(60065txo)
2018-02-26 00:56:43 unexpected name_show response on refreshName=test/1: Namecoin is downloading blocks...
2018-02-26 00:56:43 UpdateTip: new best=ba889096fd0268bcf0ecd1b5862e24cc9434a1b84186f0494660b089155fa8df height=386704 version=0x00010104 log2_work=87.595063 tx=4738855 date='2018-02-25 00:31:44' progress=0.999650 cache=8.4MiB(60066txo)
2018-02-26 00:56:43 UpdateTip: new best=b8e62028c299da05ebf381c2c98d39348eae3fddea02a2101cd33ab2d9bdd9cb height=386705 version=0x00010104 log2_work=87.595122 tx=4738857 date='2018-02-25 00:32:43' progress=0.999650 cache=8.4MiB(60066txo)
2018-02-26 00:56:43 UpdateTip: new best=e038d99164c022c3f02b92e139675261c63bf3bfa0de896c37a0b5916d850918 height=386706 version=0x00010104 log2_work=87.595181 tx=4738859 date='2018-02-25 00:38:49' progress=0.999651 cache=8.4MiB(60070txo)
2018-02-26 00:56:43 UpdateTip: new best=794431a4f1853ef49a718ac06c11774e1965e562fdda76c7e3035b99695b7f23 height=386707 version=0x00010104 log2_work=87.59524 tx=4738865 date='2018-02-25 00:53:11' progress=0.999655 cache=8.6MiB(62131txo)
2018-02-26 00:56:43 Leaving InitialBlockDownload (latching to false)
2018-02-26 00:56:44 UpdateTip: new best=ea15c2c85895d2c2c97406808440ff2b95984faf0aa47d6e3f85b5ed22fb15a3 height=386708 version=0x00010104 log2_work=87.595299 tx=4738866 date='2018-02-25 01:05:08' progress=0.999658 cache=8.6MiB(62132txo)
2018-02-26 01:02:28 connect() to 86.126.43.250:8334 failed after select(): Connection refused (111)
2018-02-26 01:02:52 connect() to 173.239.232.122:8334 failed after select(): Connection refused (111)
2018-02-26 01:03:03 connect() to [2001:0:9d38:90d7:10ff:37fb:704e:8bfd]:8334 failed: Network is unreachable (101)
2018-02-26 01:04:49 connect() to [2001:0:9d38:90d7:24d0:2e37:a09e:171d]:8334 failed: Network is unreachable (101)
2018-02-26 01:10:19 connect() to [2001:0:5ef5:79fd:3471:12b1:bf21:1246]:8334 failed: Network is unreachable (101)
2018-02-26 01:16:44 socket sending timeout: 1201s
2018-02-26 01:16:44 socket sending timeout: 1201s
2018-02-26 01:16:44 socket sending timeout: 1201s
2018-02-26 01:16:44 socket sending timeout: 1201s
2018-02-26 01:16:44 socket sending timeout: 1201s
2018-02-26 01:16:44 socket sending timeout: 1201s
2018-02-26 01:16:44 socket sending timeout: 1201s

I believe that 2018-02-26 00:56:44 is pretty close to the time that the GUI froze. The freeze happened while it was syncing. So based on the fact that UpdateTip messages stop showing up in the log after that time (even though the chain wasn't fully synced at freeze), the freeze seems to have prevented blocks from being downloaded and/or validated, i.e. it's not just the GUI that's impacted.

This is on a mainnet wallet, which already had some transactions in it. However, it's not a valuable wallet (I use this wallet for testing stuff, I'm pretty sure it's only got a few NMC in it, and no valuable names), so if it's absolutely necessary, I'm probably okay with sending @brandonrobertz a copy of the wallet if it helps debug things.

JeremyRand commented 6 years ago

According to debug.log, Namecoin Core was launched at 2018-02-26 00:52:55. So it took about 4 minutes for the freeze to happen on my end.

JeremyRand commented 6 years ago

The bug doesn't seem to be dependent on whether the chain is still syncing, since I just fully synced with 0.15.99-name-tab-beta1, then relaunched 0.15.99-name-tab-beta2, and it froze after about 6 minutes. 1 UpdateTip message appears in debug.log prior to the freeze, so I can't rule out that the freeze is triggered by an incoming block.

ghost commented 6 years ago

same problem on MacOS/HighSierra.

redblade7 commented 6 years ago

I have not tried Namecoin Core v0.16.1, but I have a similar problem with Bitcoin Core v0.16.1, filed here:

https://github.com/bitcoin/bitcoin/issues/13606

JeremyRand commented 3 years ago

I think this doesn't affect current master, but since master doesn't have feature parity with Brandon's beta yet, I'll leave this open.