Skip to content
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

Fix timeout error during state sync on some Android/Windows devices #70

Closed
AllFi opened this issue Aug 3, 2023 · 0 comments
Closed
Assignees

Comments

@AllFi
Copy link

AllFi commented Aug 3, 2023

We recently started encountering errors while syncing users on certain devices. This error sometimes leads to an inability to initialize zk the account and therefore to use our application.

After some local debugging I realized that the main issue is TimeoutError in IndexedDB.
image

I am not entirely sure but I think what happens in our case is something like this:

  1. It should be noted that the current implementation of IndexedDB wrapper doesn't wait for transaction to commit, so it just creates some pending txs that eventually should be automatically committed
  2. So, if we have pending database transactions and start parsing zeropool transactions, the Web Worker thread remains constantly busy, and as a result, the autocommit fails to complete within 60 seconds.
  3. Finally, we have some timeout error that leads to panic in wasm and aborting state sync

Refs:

PR: #69

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants