-
Notifications
You must be signed in to change notification settings - Fork 94
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
btc/spv: Unable to synchronize wallet panic. #1690
Comments
All built on current master c68b82f . |
Just some things I've spotted, BTC SPV wallet runs Its hard to tell where exactly DEX initiates wallet connection (panic stacktrace provided above is cut off too early), but looks like could be from many places, couple solutions come to mind:
|
Thanks for researching that @LasTshaMAN! Seems like a historically common cause (other than the fundamental design of panicking, which I agree isn't great) is temporary compatibility issues between btcd and btcwallet. I wouldn't think it would matter much in our case since this isn't RPC stuff (not even running btcd), but we could try to repro with our btcsuite deps updated to the latest release, which was just a few weeks ago: We'd want to update these before we release v0.5 anyway, so might as well do it now. |
Probably should do this. In this case I started dexc again and was fine afterwards. So, disconnect and reconnect if panic for btc spv maybe good? |
Possibly. The
Not sure. Could get into an ugly reconnect loop. Might consider simply putting a One thing I'm noticing from your dexc logs is a second call to The second login with no prior logout:
I think we can try to catch the explicit panics from |
Another interesting thing from your logs is that the two
So, two concurrent login requests looks to be a big problem. |
No. Just logging in with the web server can take a very long time for me. |
related. #1636 |
I'm contemplating a solution here. Can we wrap |
The issue there is that the panic is after
Although having tried the above, it doesn't work. We can't recover a panic in a wild goroutine. I think this issue is less likely to happen now that we are blocking concurrent login requests. #1761 |
Ah. I see now. Damn. |
I think the circumstances are important here.
I have been testing coins on testnet. I have two clients set up with a few wallets each. At this time I just wanted to test on the dcr_eth market, so that's what I set up the server to have on it. The clients appeared to have started up fine, but after a short time I got a panic related to the btc wallet, which I didn't expect to use. For some reason this only happened on one client as well, although both have btc wallets.
The panic:
The logs for that client:
dexc1.txt
The text was updated successfully, but these errors were encountered: