-
Notifications
You must be signed in to change notification settings - Fork 58
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
Web wallet failed sync - Failed sync leads to a hung sync #3227
Comments
So yesterday we had a network problem that may have caused you experiencing those errors. About the sync being stuck: I don't see how that can happen in case of error, because in case of errors you would see the "retry sync" button. So, either the sync was running but was apparently doing nothing because of the network problems, or it was your tinkering with the debugger to stop the execution. I'll investigate the situation more nonetheless, and I'll prepare a PR in the next days to address the "protocol driver not loaded" problem. |
The sync now seems to hang every time I log in, after a few syncs. In this instance, I logged in and left the window open, unattended, for under 1 hour, and the progress bar is now shown permanently. The error from the dev console is the only one, but I have no idea if the two are related; the pause on exceptions options were disabled. (Further testing showed that "Pause on caught exceptions" must be disabled, and the dev console error always shows up when the sync progress remains displayed permanently, so they are related. The issue also occurs if the dev console isn't open, but it may be necessary for the tab with the wallet to be hidden, that is, another tab may have to be displayed.) Once I saw the error, I logged in another account, in a private tab, and sent some dusk to the first account, but the recipient's balance didn't update, so it's clear that the sync is indeed hung. I've attached screenshots with the error, and also the full dev console log.
Below, the selected line in the middle is where the dev console takes me when I click the top file of the stack trace (index.Bkopiw9M.js): And below is for the update in the wallet store (walletStore.DPQaldIZ.js); this to me looks like it's catching all exceptions and returning empty: |
Ok, I think I understood what's happening, although it's not yet clear to me why it's happening so often to you. Thanks for the detailed report.
No this is completely unrelated and the error didn't happen there. |
@voidsculptorart a question though: when this last error occurred were you trying to make a shielded transaction or an unshielded one? |
I wasn't doing anything. I simply logged in the wallet and left it open. I'll test more to see if it's a matter of time / number of syncs, or it matters if the browser tab is hidden. (I tried a public transaction only after the sync hung, to check that it was indeed hung and not just a display artifact.) |
The bug itself seems to be what I described here: #3227 (comment) I verified that we had again problems with nginx last evening / night and this too is being investigated. I'll close #3228 as duplicate of this, as they seem to point to the very same problem. |
The bug you experienced is the same, it's just different when it happens (see #3227 (comment)). Some fixed were merged, not the one related to this issue which seems to come from the w3sper's library. See our changelog to see what is officially released and what is not: on the staging environment linked above you can find the features marked as "unreleased" in the changelog.
The problem here as stated in the comment linked above is that the web wallet doesn't receive an error, otherwise it would behave as you're expecting, but the error is just logged in the console. |
Web wallet failed sync - Failed sync leads to a hanged sync
Linked to issue "Web wallet failed sync - Invalid mnemonic phrase": #3226
Description
When the web wallet can't sync with the node and gets an internal server error from the node, the sync progress bar hangs permanently.
Steps To Reproduce
When the web wallet tries to sync with the node, the node must return an internal server error to the web wallet. I've previously observed this hanged sync (without an error from the node), and the only thing to do was to reload the entire webpage and log in again in the wallet.
Error Screenshots
The "Failed sync" error popped up:
After clicking the Resync button, the following error pops up in the dev console:
After continuing in the dev console, the progress bar hangs permanently:
Expected Behaviour
The sync progress bar should have a Resync button icon which allows the user to resync manually. Perhaps don't allow the resync if less than 5 seconds from the previous sync start have passed.
Platform
Brave desktop browser (normal tab, not private)
The text was updated successfully, but these errors were encountered: