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

Device spontanously loses sync storage #23714

Closed
turt2live opened this issue Nov 7, 2022 · 2 comments
Closed

Device spontanously loses sync storage #23714

turt2live opened this issue Nov 7, 2022 · 2 comments
Labels
O-Frequent Affects or can be seen by most users regularly or impacts most users' first experience S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect X-Regression

Comments

@turt2live
Copy link
Member

Steps to reproduce

  1. Use the app
  2. Get told your messages are unable to decrypt suddenly (appears related)
  3. Restart the client
  4. Initial sync happens

Outcome

What did you expect?

For the app to restore safely and successfully

What happened instead?

My sync storage was wiped, causing an initial sync and empirically other issues with encryption

Operating system

Windows 11

Application version

Nightly (2022-11-04)

How did you install the app?

The Internet

Homeserver

t2l.io

Will you send logs?

Yes

@turt2live turt2live added T-Defect X-Regression S-Major Severely degrades major functionality or product features, with no satisfactory workaround O-Frequent Affects or can be seen by most users regularly or impacts most users' first experience labels Nov 7, 2022
@richvdh
Copy link
Member

richvdh commented Nov 15, 2022

Possibly related to #14174

@richvdh
Copy link
Member

richvdh commented Nov 15, 2022

From the rageshake:

2022-11-06T21:22:49.828Z E IndexedDBStore failure, degrading to MemoryStore Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.
InvalidStateError: Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.
    at Worker.<anonymous> (vector://vector/webapp/bundles/a0d2dee82d8a1dde44f2/init.js:86316:25)
2022-11-06T21:22:49.828Z I IndexedDBStore trying to delete degraded data
2022-11-06T21:22:49.873Z I IndexedDBStore delete after degrading succeeded

Presumably the reason that it loses all its storage is that it attempts to delete the store whenever there was an error. This appears to be an expected consequence of matrix-org/matrix-js-sdk#884.

I'm going to go ahead and close this as I think #14174 tracks the initial IndexedDB failure, and the loss of sync storage seems to be an expected consequence of that failure.

@richvdh richvdh closed this as completed Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-Frequent Affects or can be seen by most users regularly or impacts most users' first experience S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect X-Regression
Projects
None yet
Development

No branches or pull requests

2 participants