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

Element keeps loosing my Rooms #5924

Closed
noantiq opened this issue Mar 27, 2022 · 24 comments · Fixed by matrix-org/matrix-ios-sdk#1475
Closed

Element keeps loosing my Rooms #5924

noantiq opened this issue Mar 27, 2022 · 24 comments · Fixed by matrix-org/matrix-ios-sdk#1475
Assignees
Labels
A-Room-List O-Occasional Affects or can be seen by some users regularly or most users rarely S-Critical Prevents work, causes data loss and/or has no workaround T-Defect Something isn't working: bugs, crashes, hangs and other reported problems

Comments

@noantiq
Copy link
Contributor

noantiq commented Mar 27, 2022

Steps to reproduce

  1. Open Element

Outcome

What did you expect?

My rooms, spaces and DMs are visible

What happened instead?

  • Most of my rooms are gone, only a couple of rooms are still visible
  • half of the rooms that are still visible are shown as empty and i can not read any message in these rooms
  • all spaces are gone
  • all DMs are gone
  • persists after killing the app, only fixed by clearing the cache
  • happened twice in two days now

Your phone model

iPhone 8

Operating system version

iOS 15.4

Application version

Element 1.8.8

Homeserver

Synapse 1.55.2

Will you send logs?

Yes

@noantiq noantiq added the T-Defect Something isn't working: bugs, crashes, hangs and other reported problems label Mar 27, 2022
@pixlwave pixlwave added A-Room-List S-Critical Prevents work, causes data loss and/or has no workaround O-Occasional Affects or can be seen by some users regularly or most users rarely labels Mar 28, 2022
@pixlwave
Copy link
Member

pixlwave commented Apr 1, 2022

There's a possibility the cause of this is related to #5930 given there's a rageshake mentioning both duplicate rooms and a lot of missing rooms at the same time.

@ChzenChzen
Copy link

Have the same problem on homeserver

This was referenced Apr 11, 2022
@ismailgulek ismailgulek self-assigned this Apr 13, 2022
@spiderfudge
Copy link

spiderfudge commented Apr 15, 2022

I noticed this issue as well Element iOS will randomly lose encryption keys and room data. I have been fixing it by reinstalling the app and logging back in. I suggest having a second device to verify until this bug is resolved.

@pixlwave
Copy link
Member

pixlwave commented May 10, 2022

As mentioned in #6136, this can apparently happen after opening element on a poor connection.

@imehrshad95
Copy link

imehrshad95 commented May 16, 2022

It is happening quite frequently to our iOS app, almost every day for some users. It happens nearly every time on low connection and on 4g network.

We used to use Matrix SDK version 0.22.0 and had this issue, so we thought upgrading the SDK could solve the issue but updating the SDK to 0.23.4 didn’t work out.

When rooms are gone, the user has to wait 10mins to max up to 1 hour to get the chats back without signing out and signing in. But if sign out and sign in can see the chats, as a quick way of restoring his chats, but cannot tell them to do so every day.

It's pretty embarrassing to get back to the users with no answer about this! Please let us know if we are needed to participate to solve this issue.

@imehrshad95
Copy link

imehrshad95 commented May 16, 2022

As an update, it happens on WIFI and very good connection too. So the theory of poor connection seems to be invalid. On a good connection, but after reopening our app (causes an init sync) the chats are back so no need to re-login.

@ChzenChzen
Copy link

It doesn’t depend in connection. We have the same issue on home server. I am admin and I don’t have this problems. But I don’t have a lot chats. Other members have this issue. The chat a lot and have many rooms. More than 5.

@imehrshad95
Copy link

Which version of synapse you are using @ChzenChzen? As I noticed from the discussion and bug reports, it started happening from 1.55.2. am I right?

@ChzenChzen
Copy link

@mehrshadJalilmair I don't know precise. But I had updated the server a couple of weeks ago, and this bug still exists.
4 times for 1 hour it happened ))))
image

@imehrshad95
Copy link

@ChzenChzen OK! I hope this will be solved soon. But I'm pretty sure it started happening after upgrading our synapse server.

@stefanceriu
Copy link
Member

Hello everybody 👋 Unfortunately this problem is turning out quite difficult to reproduce, not to mention track down and fix. I have built a new testflight version 1.8.15 (20220518170737) in which I've reverted some commits that might have introduced it. Please don't use any other version for this as it won't contain the intended changes.

Please help us test it and do let us know if you can still reproduce the problem. If you can try changing the search filters at the top or restarting the app to see if they have any effect.

Thank you!

@imehrshad95
Copy link

Thanks @stefanceriu for the update. I'll be testing this TF version. maybe I connect to our servers too, can I?

@stefanceriu
Copy link
Member

maybe I connect to our servers too, can I?

Sure thing, feel free to use it with any homeserver.

@matrixuser0
Copy link

@stefanceriu Using the TestFlight version you posted above, I am able to reproduce all the issues I had seen before on a daily basis, which include #5924/#6006 but also #5930 (which I assume is related). Took about 2 hours of to occur (I am an active user). This is on a custom homeserver hosted by Element Matrix Services. Many of our users are experiencing these issues. Clearing cache still is a valid workaround.

It is very easy for me to repro this, and I would be very happy to help in the resolution since this affects me on a daily/hourly basis. I am familiar with iOS development and can capture logs if needed. I can't currently get an Xcode development setup to build my own version of the app for experimentation though (plus I cannot afford to lose the state of my client since this is a production environment)

@stefanceriu
Copy link
Member

Uf, that's dissapointing 😔 Thank you for looking into it. No need to setup you enviroment but do please send us a rageshake with logs (settings/report bug) when you see it next time.

@matrixuser0
Copy link

@stefanceriu I'm not sure I'll be able to send unreviewed logs since this is a sensitive corporate workspace. is there an option to review/censor logs before sending?

@stefanceriu
Copy link
Member

I'm afraid not, no.

@matrixuser0
Copy link

@stefanceriu are there any logs that are emitted to system log which can help with root cause analysis?

@stefanceriu
Copy link
Member

I don't think so but even if they were we usually need to sift through a lot of them to figure out what's wrong. No worries though, we're on it.

@matrixuser0
Copy link

matrixuser0 commented May 26, 2022

@stefanceriu two notes: (1) If you need a tester for #1475 I'll be happy to help and have an easy time repro'ing (2) to me it feels that #5924 and #5930 are very related because they occur together and both seem to be the result of some messed up local caching

@stefanceriu
Copy link
Member

Yes please 🙇 . We'll let you know when it's available in a build.

@matrixuser0
Copy link

matrixuser0 commented Jun 2, 2022

@stefanceriu @ismailgulek is this supposed to be fixed in 1.8.17 Testflight build? I can still reproduce #5924/#6006 and #5930 in that build with similar frequency as before

EDIT Sorry I missed the second PR 1485 - will wait for a version that includes both

@ismailgulek
Copy link
Contributor

@stefanceriu @ismailgulek is this supposed to be fixed in 1.8.17 Testflight build? I can still reproduce #5924/#6006 and #5930 in that build with similar frequency as before

EDIT Sorry I missed the second PR 1485 - will wait for a version that includes both

Hey @matrixuser0, sorry to hear that. We tried to have a workaround for this issue that we couldn't reproduce reliably. Still working on the issue. And i think our workaround doesn't affect #5930

@matrixuser0
Copy link

I used to be able to reproduce this very regularly (multiple times per day) up until 1.8.17. I have not experienced this with 1.8.18 Testflight build yet after multiple days - same is true for #5930

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Room-List O-Occasional Affects or can be seen by some users regularly or most users rarely S-Critical Prevents work, causes data loss and/or has no workaround T-Defect Something isn't working: bugs, crashes, hangs and other reported problems
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants