-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
People section disappeared #3331
Comments
@kegsay please don't yell at me, but i'm wondering if the missing tags may be due to having failed to persist some sync data (a bit like the theming data wasn't being properly picked up)? |
You asked this before on #riot-dev and I confirmed that it could very well be due to the same issue as the dark theme bug (that is, global account data would be restored without triggering event emitters). I don't know how the DM list gets saved (frequency, what triggers it, etc) to confirm that this would've meant that it would've saved an empty list or not. Either way, this issue was fixed in matrix-org/matrix-js-sdk#377 - but I'm not confident in saying "yes, this was the cause of this bug" as I don't know how DM stuff works entirely. |
I rolled back riot-js-sdk to the commit prior to matrix-org/matrix-js-sdk#377 and rolled riot-web and matrix-react-sdk to the commit just prior to the commit prior to the time that PR was merged. I wasn't able to get the people list to disappear. Others have reported that the People list randomly disappears (as mentioned in #3355), however those reports haven't shown up recently (at least that I've seen). For reference:
I'll try to see if synapse has any interesting information, although I doubt it. |
Synapse shows a curious-looking PUT request for account data at 5am local time on the 23rd of February. I normally keep Riot open overnight, but don't give it attention (because sleep). 5am would be out of character for me to be using Riot (let alone tagging rooms), and the client that invoked the request doesn't have logs that go back far enough. It was riot-web though running on riot.im/develop. That client would have most likely been at the following commits at the time of the strange request:
Running a build of riot-web with those commit hashes still hasn't yielded the problem, however :( |
Thanks for digging into this @turt2live - so it looks like:
is the reason why you lost the DMs given on 27 Feb you said:
That gets set via the JS SDK call
We're only interested in |
I believe the 'cannot be restored' aspect of this has been fixed (per #3355) |
I just got bitten fairly spectacularly by this. Unfortunately I'm not quite sure what I did to provoke it. I think it happened when I opened https://riot.im/app on my account from an incognito tab, but obviously repeating that doesn't reproduce it :/ |
The API request in question appears to have been:
Correlating access tokens in the apache logs suggests that the request did indeed come from the /app instance I ran in an incognito tab. I guess there may have been something in the account data which made /app fail to parse it, and then it went and reset all the m.direct data? |
sounds plausible :( |
As @kegsay points out, So the client appears able to reset the |
The error in the original post was fixed by #3448, which corrected the Rooms import |
I've just had this upgrading my electron client to the new version, which I worry may mean everyone on /app or the desktop version will hit this bug when they upgrade. Marking as release blocker until I can investigate. |
I can't repro this again and think that my losing my m.direct event was due to #3610, so removing the release blocker tag |
I am now losing my people on a regular basis. Not entirely sure why, but I've been logging in and out in a myriad of environments, including incognito mode (which sounds like #3331 (comment)), so it could be a race of some flavour. |
I managed to catch this in the act while setting up a riot-web development environment. Full log is here as a gist. Environment: Windows 10, Chrome 57, running at the following points in time:
This appears to be the fun section of the log:
Edit: Some more information as to what happened. I noticed my people section disappeared before my rooms/messages/account data loaded. I use the dark theme, and the riot I was logging in to was noticeably not using the dark theme, was not listing my rooms, and clearly had not loaded my account data yet (opening the settings proved this). The sync took a while to complete. |
@turt2live thanks for this. @lampholder just experienced this exact failure mode. The fix will be to prevent the RoomList from sending an update to the dm room map if it hasn't already received account data. We currently rely on the sync spinner from hiding the RoomList, and apparently the spinner has stopped appearing following a login (sometimes).
|
Although the problem is likely fixed now, we still need a button to initiate the guessing of DMs. This shall be tracked here #3803 |
Description
A few days ago the people section disappeared in riot-web for me. Whatever went wrong propagated the de-tagging of the rooms to riot-android (therefore I'm under the impression that it got persisted). Re-tagging the room does not work on riot-web, and just throws an error:
Steps to reproduce
Describe how what happens differs from what you expected.
I would expect that my People list would be maintained
Log: not sent (can't)
Version information
For the web app:
The text was updated successfully, but these errors were encountered: