-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Fixes #2643 by restoring previous behaviour #2661
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
Conversation
|
Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/212d4a02bb2700bbc18e26e0f9f80a5281053128 for binaries and test log. |
|
Automatic sanity-testing: FAILED BUILD/TEST, see http://jenkins.bluematt.me/pull-tester/f48c7eb63ae43c55e6c70450757b33fdce8c58f3 for binaries and test log. This could happen for one of several reasons:
If you believe this to be in error, please ping BlueMatt on freenode or TheBlueMatt here. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ |
|
@TheBlueMatt: The error on pulltester doesn't seems to be related to these changes, right? |
src/qt/bitcoingui.cpp
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can't be needed here, as clientModel->getBlockSource() returns BLOCK_SOURCE_NETWORK only for getNumConnections() > 0 anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't needed for my case either, but I added it latter to try to mimic better the previous behavior, because it might trigger the same problem on other cases. Anyway, I'm trying to find the real cause.
|
I'm a bit wary of merging fixes that I don't understand, although it would be ok for 0.8.2. Can you debug where it crashes when the premature returns are not done? Candidates are: If clientModel would not be set at all it would crash with a SIGSEGV so I don't think that could be it. For the rest the function only updates Qt controls, a very unlikely cause of crashes. |
|
Yes, I'm trying to debug this further. But at least if 0.8.2 have to come out quick, this hotfix might be better than nothing... |
|
Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/af338a7890c3ab6a8530518c52c3b833af89c3d8 for binaries and test log. |
|
Meh, it doesn't fix it. It just bypasses it in that special case... Looks like in that environment it always crashes when it tries to show the progress bar... Now it hangs when I launch it with reindex, and it does it too in 0.8.1... |
|
Adding a -noprogressbar option would be overkill, right? |
|
So are we facing a Qt bug here? What Qt version is your version of Bitcoin-Qt using? |
|
I really doubt it's a Qt bug. |
|
@laanwj What is that magic number here telling? @rdponticelli Did you try yet what laanwj suggested above? |
|
Replacing clientModel->getVerificationProgress() by a constant it works. Might be the problem that on this setup the only block available is the genesis block? |
|
@Diapolo just an arbitrary number AFAIK @rdponticelli Good, that at least isolates the issue. So that function has a bug that makes it crash with only the genesis block. At least on your setup. I have not noticed this myself, when starting with an empty data directory. I'm unable to reproduce it. |
No description provided.